Files
to_session/models/tg_tomo.py
Administrator a0720d80dc fefdwef
2025-11-12 12:54:37 +08:00

19 lines
891 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from peewee import *
# 假设 db 已经在其他地方定义并连接到数据库
from models import db, BaseModel
class TgTomo(BaseModel):
id = IntegerField(primary_key=True) # 整型主键,自增
tg_id = IntegerField(null=True) # Telegram ID整型可为空
phone = CharField(max_length=255, null=True) # 电话号码,最大长度 255可为空
url = CharField(max_length=255, null=True) # URL最大长度 255可为空
fraction = CharField(max_length=255, null=True) # 分数,最大长度 255可为空
user_data = CharField(max_length=255, null=True) # 分数,最大长度 255可为空
num = IntegerField(null=True) # Telegram ID整型可为空
task_num = IntegerField(null=True) # Telegram ID整型可为空
class Meta:
database = db # 所属数据库
table_name = 'tg_tomo' # 表名