docker,字段更改

This commit is contained in:
lhx
2025-09-27 10:23:00 +08:00
parent 524be063d0
commit e6fe0fab48
4 changed files with 20 additions and 20 deletions

View File

@@ -6,10 +6,10 @@ class Account(Base):
__tablename__ = "accounts"
id = Column(Integer, primary_key=True, index=True, autoincrement=True)
account = Column(String(50), unique=True, index=True, nullable=False, comment="账号")
username = Column(String(50), unique=True, index=True, nullable=False, comment="用户名")
password = Column(String(100), nullable=False, comment="密码")
status = Column(Integer, default=1, comment="状态: 1-正常, 0-禁用")
today_updated = Column(Integer, default=0, comment="是否更新")
section = Column(String(100), comment="标段")
project_name = Column(String(100), comment="项目名称")
created_at = Column(DateTime, server_default=func.now(), comment="创建时间")
updated_at = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment="更新时间")