修改filterRelation字段限制

This commit is contained in:
whyour
2022-11-14 22:59:01 +08:00
parent 91dbb7770d
commit 734cc94048
2 changed files with 5 additions and 12 deletions
+5 -1
View File
@@ -46,6 +46,10 @@ export const CrontabViewModel = sequelize.define<CronViewInstance>(
isDisabled: DataTypes.NUMBER,
filters: DataTypes.JSON,
sorts: DataTypes.JSON,
filterRelation: { type: DataTypes.STRING, defaultValue: 'and' },
filterRelation: {
type: DataTypes.STRING,
allowNull: true,
defaultValue: 'and',
},
},
);