diff --git a/backend/src/database/seeds/20230326221400-create-ASC-settings.ts b/backend/src/database/seeds/20230326221400-create-ASC-settings.ts new file mode 100644 index 00000000..54a57790 --- /dev/null +++ b/backend/src/database/seeds/20230326221400-create-ASC-settings.ts @@ -0,0 +1,22 @@ +import { QueryInterface } from "sequelize"; + +module.exports = { + up: (queryInterface: QueryInterface) => { + return queryInterface.bulkInsert( + "Settings", + [ + { + key: "ASC", + value: "disabled", + createdAt: new Date(), + updatedAt: new Date() + } + ], + {} + ); + }, + + down: (queryInterface: QueryInterface) => { + return queryInterface.bulkDelete("Settings", {}); + } +}; diff --git a/backend/src/database/seeds/20230326221600-create-created-settings.ts b/backend/src/database/seeds/20230326221600-create-created-settings.ts new file mode 100644 index 00000000..46904e6c --- /dev/null +++ b/backend/src/database/seeds/20230326221600-create-created-settings.ts @@ -0,0 +1,22 @@ +import { QueryInterface } from "sequelize"; + +module.exports = { + up: (queryInterface: QueryInterface) => { + return queryInterface.bulkInsert( + "Settings", + [ + { + key: "created", + value: "disabled", + createdAt: new Date(), + updatedAt: new Date() + } + ], + {} + ); + }, + + down: (queryInterface: QueryInterface) => { + return queryInterface.bulkDelete("Settings", {}); + } +};