设置 权限流水

This commit is contained in:
zk
2026-05-20 18:00:12 +08:00
parent 51b5dbb345
commit 6e4bd4712b
5 changed files with 6 additions and 21 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ class UserFuncUsageLog(Base):
"""用户功能使用记录表 bg_user_func_usage_log"""
__tablename__ = "bg_user_func_usage_log"
id: Mapped[int] = mapped_column(BigInteger, primary_key=True, autoincrement=True)
id: Mapped[int] = mapped_column(BigInteger, primary_key=True, autoincrement=False)
user_id: Mapped[int] = mapped_column(BigInteger, nullable=False, comment="用户ID")
func_code: Mapped[str] = mapped_column(String(12), nullable=False, comment="功能编码")
func_code: Mapped[str] = mapped_column(String(36), nullable=False, comment="功能编码")
create_time: Mapped[datetime] = mapped_column(DateTime, default=datetime.now, comment="使用时间")