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

18 lines
721 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 TgHipin(BaseModel):
id = IntegerField(primary_key=True) # 整型主键
tg_id = IntegerField(null=True) # Telegram ID整型可为空
phone = CharField(max_length=255, null=True) # 手机号,最大长度 255可为空
fraction = CharField(max_length=255, null=True) # 分数,最大长度 255可为空
url = CharField(max_length=255, null=True) # 分数,最大长度 255可为空
num = IntegerField(null=True) # 分数,最大长度 255可为空
class Meta:
database = db # 所属数据库
table_name = 'tg_hipin' # 表名