refactor: 更新数据库和模型

- 更新数据库连接和会话管理
- 更新数据模型以支持用户认证
- 添加RefreshToken模型用于刷新令牌管理
This commit is contained in:
徐在坤
2026-01-18 15:57:47 +08:00
parent 9132447db7
commit 3a4c9f0838
3 changed files with 40 additions and 4 deletions

View File

@@ -2,13 +2,14 @@
数据库模块
"""
from .database import get_db, get_async_db, init_db
from .models import User, Conversation, Segment, Chapter, Book
from .models import User, Conversation, Segment, Chapter, Book, RefreshToken
__all__ = [
"get_db",
"get_async_db",
"init_db",
"User",
"RefreshToken",
"Conversation",
"Segment",
"Chapter",