feat(model): 添加status字段表示启用状态

- 在myapp模块的ApplicationModel中新增status字段,标识应用是否启用
- 在demo模块的DemoModel中新增status字段,标识示例条目是否启用
- 修改代码生成模块相关模型,替换BaseMixin为CreatorMixin
- 删除代码生成模块中Python模板相关文件与Vue前端代码模板,优化代码结构和清理无用模板文件
This commit is contained in:
zhangtao
2025-09-17 01:33:53 +08:00
parent d36b86e446
commit 700d76ad5a
41 changed files with 1463 additions and 91 deletions
@@ -72,6 +72,7 @@ class UserModel(CreatorMixin):
username: Mapped[str] = mapped_column(String(32),nullable=False,unique=True,comment="用户名/登录账号")
password: Mapped[str] = mapped_column(String(255),nullable=False,comment="密码哈希")
name: Mapped[str] = mapped_column(String(32),nullable=False,comment="昵称")
status: Mapped[bool] = mapped_column(Boolean(), default=True, nullable=False, comment="是否启用(True:启用 False:禁用)")
mobile: Mapped[Optional[str]] = mapped_column(String(20),nullable=True,unique=True,comment="手机号")
email: Mapped[Optional[str]] = mapped_column(String(64),nullable=True,unique=True,comment="邮箱")
gender: Mapped[Optional[str]] = mapped_column(String(1), default='0',nullable=True,comment="性别(0:男 1:女 2:未知)")