mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-30 12:34:47 +08:00
21 lines
429 B
Python
21 lines
429 B
Python
from liteyuki.utils.base.data import Database, LiteModel
|
|
|
|
|
|
class MessageEventModel(LiteModel):
|
|
TABLE_NAME: str = "message_event"
|
|
time: int = 0
|
|
|
|
bot_id: str = ""
|
|
adapter: str = ""
|
|
|
|
user_id: str = ""
|
|
group_id: str = ""
|
|
|
|
message_id: str = ""
|
|
message: list = []
|
|
message_text: str = ""
|
|
message_type: str = ""
|
|
|
|
|
|
msg_db = Database("data/liteyuki/msg.ldb")
|
|
msg_db.auto_migrate(MessageEventModel()) |