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,29 @@
"use strict";
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.createTable("Settings", {
key: {
type: Sequelize.STRING,
primaryKey: true,
allowNull: false,
},
value: {
type: Sequelize.TEXT,
allowNull: false,
},
createdAt: {
type: Sequelize.DATE,
allowNull: false,
},
updatedAt: {
type: Sequelize.DATE,
allowNull: false,
},
});
},
down: queryInterface => {
return queryInterface.dropTable("Settings");
},
};