All checks were successful
continuous-integration/drone/push Build is passing
- 新增 platform_scheduled_tasks, platform_task_logs, platform_script_vars, platform_secrets 数据库表 - 实现 ScriptSDK 提供 AI/通知/DB/HTTP/变量存储/参数获取等功能 - 实现安全的脚本执行器,支持沙箱环境和禁止危险操作 - 实现 APScheduler 调度服务,支持简单时间点和 CRON 表达式 - 新增定时任务 API 路由,包含 CRUD、执行、日志、密钥管理 - 新增定时任务前端页面,支持脚本编辑、测试运行、日志查看
34 lines
832 B
Python
34 lines
832 B
Python
"""数据模型"""
|
|
from .tenant import Tenant, Subscription, Config
|
|
from .tenant_app import TenantApp
|
|
from .tenant_wechat_app import TenantWechatApp
|
|
from .tool_config import ToolConfig
|
|
from .app import App
|
|
from .stats import AICallEvent, TenantUsageDaily
|
|
from .logs import PlatformLog
|
|
from .alert import AlertRule, AlertRecord, NotificationChannel
|
|
from .pricing import ModelPricing, TenantBilling
|
|
from .scheduled_task import ScheduledTask, TaskLog, ScriptVar, Secret
|
|
|
|
__all__ = [
|
|
"Tenant",
|
|
"Subscription",
|
|
"Config",
|
|
"TenantApp",
|
|
"TenantWechatApp",
|
|
"ToolConfig",
|
|
"App",
|
|
"AICallEvent",
|
|
"TenantUsageDaily",
|
|
"PlatformLog",
|
|
"AlertRule",
|
|
"AlertRecord",
|
|
"NotificationChannel",
|
|
"ModelPricing",
|
|
"TenantBilling",
|
|
"ScheduledTask",
|
|
"TaskLog",
|
|
"ScriptVar",
|
|
"Secret"
|
|
]
|