改用mysql

This commit is contained in:
amb
2026-09-02 11:19:49 +08:00
parent 410bd30b2e
commit 73c4d83f42
24 changed files with 831 additions and 258 deletions
+6
View File
@@ -39,6 +39,12 @@ class User(UUIDPrimaryKeyMixin, TimestampMixin, Base):
nullable=False,
comment="状态 (active/disabled)",
)
role: Mapped[str] = mapped_column(
String(16),
default="customer",
nullable=False,
comment="角色 (internal=内部员工 / customer=客户)",
)
plan_id: Mapped[str] = mapped_column(
String(32),
ForeignKey("plans.id"),