Add backend models, services, and API for Scenario Mode

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-08 17:24:32 +00:00
co-authored by whyour
parent bba6c9aa29
commit 712ff80448
6 changed files with 896 additions and 0 deletions
+4
View File
@@ -6,6 +6,8 @@ import { AppModel } from '../data/open';
import { SystemModel } from '../data/system';
import { SubscriptionModel } from '../data/subscription';
import { CrontabViewModel } from '../data/cronView';
import { ScenarioModel } from '../data/scenario';
import { ScenarioLogModel } from '../data/scenarioLog';
import { sequelize } from '../data';
export default async () => {
@@ -17,6 +19,8 @@ export default async () => {
await EnvModel.sync();
await SubscriptionModel.sync();
await CrontabViewModel.sync();
await ScenarioModel.sync();
await ScenarioLogModel.sync();
// 初始化新增字段
try {