账号添加宇恒一号用户id管理

This commit is contained in:
lhx
2025-12-10 11:05:14 +08:00
parent 2d69729a64
commit 814f3fed09
4 changed files with 11 additions and 3 deletions

View File

@@ -15,8 +15,9 @@ class Account(Base):
updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment="更新时间")
update_time = Column(String(1000), nullable=False, comment="更新时间跨度")
max_variation = Column(Integer, default=1, comment="变化量的绝对值,单位是毫米")
yh_id = Column(String(1000), comment="宇恒一号用户id")
# 模型转字典
def to_dict(self):
"""将模型实例转换为字典,支持 Pydantic 序列化"""