添加授权依赖

This commit is contained in:
zk
2026-03-13 15:37:01 +08:00
parent f26585a130
commit 95028cdef9
6 changed files with 210 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
"""用户功能使用记录表"""
from datetime import datetime
from sqlalchemy import BigInteger, String, DateTime
from sqlalchemy.orm import Mapped, mapped_column
from app.core.database import Base
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)
user_id: Mapped[int] = mapped_column(BigInteger, nullable=False, comment="用户ID")
func_code: Mapped[str] = mapped_column(String(12), nullable=False, comment="功能编码")
create_time: Mapped[datetime] = mapped_column(DateTime, default=datetime.now, comment="使用时间")