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

17 lines
623 B
Python

from peewee import *
from models import db, BaseModel
class TgWeb(BaseModel):
id = AutoField(primary_key=True) # 自增主键
hub_name = CharField(max_length=255, null=True) # 允许NULL的字符串
ip_id = IntegerField(null=True) # 允许NULL的整型
is_tg_start = IntegerField(null=True) # 允许NULL的整型
one_phone_number = CharField(max_length=255, null=True) # 允许NULL的字符串
telephone = CharField(max_length=255, null=True) # 允许NULL的字符串
class Meta:
database = db # 使用共享数据库连接
table_name = 'tg_web' # 显式指定表名