0
0
mirror of https://gitflic.ru/project/maks1ms/ocab.git synced 2025-03-15 14:53:49 +03:00
ocab/src/ocab_modules/standard/database/models/messages.py

16 lines
423 B
Python
Raw Normal View History

import peewee as pw
2024-07-10 11:28:42 +03:00
from .db import database_proxy
class Messages(pw.Model):
2024-07-10 11:28:42 +03:00
class Meta:
database = database_proxy
message_chat_id = pw.IntegerField(null=False)
message_id = pw.IntegerField(null=False)
message_sender_id = pw.IntegerField(null=False)
answer_to_message_id = pw.IntegerField(null=True)
message_ai_model = pw.TextField(null=True)
message_text = pw.TextField(null=False)