mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-13 04:02:56 +08:00
Add backend models, services, and API for Scenario Mode
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
co-authored by
whyour
parent
bba6c9aa29
commit
712ff80448
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user