细节优化
This commit is contained in:
@@ -60,6 +60,11 @@ class KnowledgeBase(UUIDPrimaryKeyMixin, TimestampMixin, Base):
|
||||
nullable=True,
|
||||
comment="token 末 8 位明文,供后台识别",
|
||||
)
|
||||
token_expires_at: Mapped[str | None] = mapped_column(
|
||||
String(32),
|
||||
nullable=True,
|
||||
comment="链接过期时间,NULL=长期有效",
|
||||
)
|
||||
|
||||
# 关系
|
||||
user = relationship("User", back_populates="knowledge_bases", lazy="selectin")
|
||||
|
||||
Reference in New Issue
Block a user