feat: add JWT authentication and AGENTS.md

This commit is contained in:
祀梦
2026-05-17 11:21:41 +08:00
parent 40eb2dadb0
commit 3c03866021
19 changed files with 554 additions and 1632 deletions

View File

@@ -31,6 +31,9 @@ class UserSettings(Base):
default_sort_by = Column(String(20), default="created_at")
default_sort_order = Column(String(10), default="desc")
# 认证
password_hash = Column(String(255), default="")
# 时间戳
created_at = Column(DateTime, default=utcnow)
updated_at = Column(DateTime, default=utcnow, onupdate=utcnow)