mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-07 12:50:03 +08:00
feat✨: 更新内置插件
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
from typing import Dict
|
||||
|
||||
from tortoise import fields
|
||||
|
||||
from zhenxun.services.db_context import Model
|
||||
|
||||
from .sign_user import SignUser
|
||||
|
||||
|
||||
class UserProps(Model):
|
||||
|
||||
id = fields.IntField(pk=True, generated=True, auto_increment=True)
|
||||
"""自增id"""
|
||||
user_id = fields.CharField(255, unique=True, description="用户id")
|
||||
"""用户id"""
|
||||
name = fields.CharField(255, description="道具名称")
|
||||
"""道具名称"""
|
||||
property: Dict[str, int] = fields.JSONField(default={}) # type: ignore
|
||||
"""道具"""
|
||||
platform = fields.CharField(255, null=True)
|
||||
"""平台"""
|
||||
|
||||
class Meta:
|
||||
table = "user_props"
|
||||
table_description = "用户道具表"
|
||||
Reference in New Issue
Block a user