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

25 lines
1.2 KiB
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 HubWeb(BaseModel):
id = AutoField(primary_key=True) # 自增主键
hub_name = CharField(max_length=255, null=True) # hub 名称,最大长度 255可为空
ip_id = IntegerField(null=True) # IP 地址,最大长度 255可为空
x_id = IntegerField(null=True)
x_start = IntegerField(null=True)
project_start = IntegerField(null=True)
x_num = IntegerField(null=True)
soon_wallet_id = IntegerField(null=True)
soon_start = IntegerField(null=True)
address = CharField(max_length=255, null=True) # hub 名称,最大长度 255可为空
words = CharField(max_length=255, null=True) # hub 名称,最大长度 255可为空
private_key = CharField(max_length=255, null=True) # hub 名称,最大长度 255可为空
cookie = CharField(max_length=255, null=True) # hub 名称,最大长度 255可为空
bit_id = CharField(max_length=255, null=True) # hub 名称,最大长度 255可为空
class Meta:
database = db # 所属数据库
table_name = 'hub_web' # 表名