mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +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()) |