mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-10 22:30:02 +08:00
版本更新
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from tortoise import fields
|
||||
|
||||
from zhenxun.services.db_context import Model
|
||||
|
||||
|
||||
class BotConnectLog(Model):
|
||||
id = fields.IntField(pk=True, generated=True, auto_increment=True)
|
||||
"""自增id"""
|
||||
bot_id = fields.CharField(255, description="Bot id")
|
||||
"""Bot id"""
|
||||
platform = fields.CharField(255, null=True, description="平台")
|
||||
"""平台"""
|
||||
connect_time = fields.DatetimeField(description="连接时间")
|
||||
"""日期"""
|
||||
type = fields.IntField(null=True, description="1: 连接, 0: 断开")
|
||||
"""1: 连接, 0: 断开"""
|
||||
create_time = fields.DatetimeField(auto_now_add=True)
|
||||
"""创建时间"""
|
||||
|
||||
class Meta: # type: ignore
|
||||
table = "bot_connect_log"
|
||||
table_description = "bot连接表"
|
||||
Reference in New Issue
Block a user