feat: added settings api on beackend

This commit is contained in:
canove
2020-09-04 05:08:30 -03:00
parent f52e7a667c
commit bc376e2b1c
15 changed files with 160 additions and 29 deletions

View File

@@ -0,0 +1,22 @@
"use strict";
module.exports = {
up: queryInterface => {
return queryInterface.bulkInsert(
"Settings",
[
{
key: "userCreation",
value: "enabled",
createdAt: new Date(),
updatedAt: new Date(),
},
],
{}
);
},
down: queryInterface => {
return queryInterface.bulkDelete("Settings", null, {});
},
};