zhenxun_bot/zhenxun/plugins/bym_ai/models/bym_gift_log.py
2025-07-01 16:56:34 +08:00

20 lines
555 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from tortoise import fields
from zhenxun.services.db_context import Model
class GiftLog(Model):
id = fields.IntField(pk=True, generated=True, auto_increment=True)
"""自增id"""
user_id = fields.CharField(255)
"""用户id"""
uuid = fields.CharField(255)
"""礼物uuid"""
type = fields.IntField()
"""类型0获得1使用"""
create_time = fields.DatetimeField(auto_now_add=True)
"""创建时间"""
class Meta: # pyright: ignore [reportIncompatibleVariableOverride]
table = "bym_gift_log"