Files
tg_code/job_models/wallet_address.py
Administrator 37e9d4038c gfregfregfr
2025-11-12 12:50:39 +08:00

19 lines
1.4 KiB
Python
Raw 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 *
from models import db
class WalletAddress(Model):
id = IntegerField(primary_key=True) # 主键字段
v4r2_address = CharField(null=True, max_length=255) # 可为空的字符字段,最大长度 255
v5r1_address = CharField(null=True, max_length=255) # 可为空的字符字段,最大长度 255
words = CharField(null=True, max_length=255) # 可为空的字符字段,最大长度 255
tg_id = IntegerField(default=0) # 整数字段,默认值为 0
server_ip = CharField(null=True, max_length=255) # 可为空的字符字段,最大长度 255注释为 "服务器ip"
ld_name = CharField(null=True, max_length=255) # 可为空的字符字段,最大长度 255注释为 "模拟器名称"
stast = IntegerField(null=True) # 可为空的整数字段,注释为 "绑定状态0使用中1绑定成功"
logged_in_wallet_time = CharField(null=True, max_length=255) # 可为空的字符字段,最大长度 255注释为 "绑定钱包时间"
logged_in_wallet_set = CharField(null=True, max_length=255) # 可为空的字符字段,最大长度 255注释为 "钱包绑定人"
balance = CharField(null=True, max_length=255) # 可为空的字符字段,最大长度 255注释为 "钱包绑定人"
class Meta:
database = db # 指定数据库连接
table_name = 'wallet_address' # 指定表名