UNPKG

synt_backend

Version:

Synt light-weight node backend service

47 lines (44 loc) 1.01 kB
"use strict"; module.exports = { async up(queryInterface, Sequelize) { await queryInterface.createTable("Reminders", { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER, }, VMEId: { type: Sequelize.INTEGER, references: { model: "VMEs", key: "id", }, allowNull: false, defaultValue: Sequelize.UUIDV4, onUpdate: "CASCADE", onDelete: "CASCADE", }, recipient: { type: Sequelize.ENUM("synt", "custom", "owners", "everyone"), }, message: { type: Sequelize.STRING, }, dateOfReceiving: { type: Sequelize.STRING, }, createdAt: { allowNull: false, type: Sequelize.DATE, }, updatedAt: { allowNull: false, type: Sequelize.DATE, }, }); }, async down(queryInterface) { await queryInterface.dropTable("Reminders"); }, };