UNPKG

synt_backend

Version:

Synt light-weight node backend service

31 lines (30 loc) 686 B
"use strict"; module.exports = { up: async (queryInterface, Sequelize) => { await queryInterface.createTable("NotificationSettings", { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER, }, type: { type: Sequelize.ENUM("email", "push"), }, name: { type: Sequelize.STRING, }, createdAt: { allowNull: false, type: Sequelize.DATE, }, updatedAt: { allowNull: false, type: Sequelize.DATE, }, }); }, down: async (queryInterface) => { await queryInterface.dropTable("NotificationSettings"); }, };