UNPKG

dbl-coins-invest

Version:

Sharade DBL package over other coins invest services

40 lines (39 loc) 1.13 kB
'use strict'; module.exports = { up: function up(queryInterface, Sequelize) { return queryInterface.createTable('subscriptions', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, subscription: { type: Sequelize.TEXT }, type: { type: Sequelize.ENUM('email', 'webPush', 'appPush'), allowNull: true }, createdAt: { type: Sequelize.DATE, allowNull: false }, updatedAt: { allowNull: false, type: Sequelize.DATE }, accountId: { type: Sequelize.INTEGER, references: { model: 'accounts', key: 'id' }, allowNull: true } }); }, down: function down(queryInterface, Sequelize) { return queryInterface.dropTable('subscriptions'); } };