feat: 初始提交
This commit is contained in:
41
backend/app/models/__init__.py
Normal file
41
backend/app/models/__init__.py
Normal file
@@ -0,0 +1,41 @@
|
||||
"""集中导出 ORM 模型,确保 SQLAlchemy 元数据在初始化时被正确加载。"""
|
||||
|
||||
from .admin_setting import AdminSetting
|
||||
from .llm_config import LLMConfig
|
||||
from .novel import (
|
||||
BlueprintCharacter,
|
||||
BlueprintRelationship,
|
||||
Chapter,
|
||||
ChapterEvaluation,
|
||||
ChapterOutline,
|
||||
ChapterVersion,
|
||||
NovelBlueprint,
|
||||
NovelConversation,
|
||||
NovelProject,
|
||||
)
|
||||
from .prompt import Prompt
|
||||
from .update_log import UpdateLog
|
||||
from .usage_metric import UsageMetric
|
||||
from .user import User
|
||||
from .user_daily_request import UserDailyRequest
|
||||
from .system_config import SystemConfig
|
||||
|
||||
__all__ = [
|
||||
"AdminSetting",
|
||||
"LLMConfig",
|
||||
"NovelConversation",
|
||||
"NovelBlueprint",
|
||||
"BlueprintCharacter",
|
||||
"BlueprintRelationship",
|
||||
"ChapterOutline",
|
||||
"Chapter",
|
||||
"ChapterVersion",
|
||||
"ChapterEvaluation",
|
||||
"NovelProject",
|
||||
"Prompt",
|
||||
"UpdateLog",
|
||||
"UsageMetric",
|
||||
"User",
|
||||
"UserDailyRequest",
|
||||
"SystemConfig",
|
||||
]
|
||||
Reference in New Issue
Block a user