feat: expand AI workflow support and refresh docs
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
import os
|
||||
import sys
|
||||
from logging.config import fileConfig
|
||||
from pathlib import Path
|
||||
|
||||
from sqlalchemy import engine_from_config
|
||||
from sqlalchemy import pool
|
||||
|
||||
from alembic import context
|
||||
|
||||
# 将当前目录添加到 sys.path,以便能够导入 app 模块
|
||||
sys.path.append(os.getcwd())
|
||||
SERVER_DIR = Path(__file__).resolve().parents[1]
|
||||
if str(SERVER_DIR) not in sys.path:
|
||||
sys.path.append(str(SERVER_DIR))
|
||||
|
||||
# 导入配置和模型
|
||||
from app.core.config import settings
|
||||
from app.db import Base
|
||||
# 导入所有模型以确保它们被注册到 Base.metadata
|
||||
from app.models import user, group, business, session
|
||||
from app.models import business, chat, group, logs, session, user
|
||||
|
||||
# this is the Alembic Config object, which provides
|
||||
# access to the values within the .ini file in use.
|
||||
|
||||
Reference in New Issue
Block a user