添加数据库模块

This commit is contained in:
iammm0
2026-01-07 11:56:33 +08:00
parent fea8c6971c
commit 56dffc300b
6 changed files with 166 additions and 0 deletions

17
api/database/__init__.py Normal file
View File

@@ -0,0 +1,17 @@
"""
数据库模块
"""
from .database import get_db, get_async_db, init_db
from .models import User, Conversation, Segment, Chapter, Book
__all__ = [
"get_db",
"get_async_db",
"init_db",
"User",
"Conversation",
"Segment",
"Chapter",
"Book",
]