UNPKG

@grouparoo/core

Version:
48 lines (47 loc) 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = { up: async (queryInterface, DataTypes) => { await queryInterface.createTable("notifications", { guid: { type: DataTypes.STRING(40), primaryKey: true, }, from: { type: DataTypes.TEXT, allowNull: false, }, subject: { type: DataTypes.TEXT, allowNull: false, }, body: { type: DataTypes.TEXT, allowNull: false, }, cta: { type: DataTypes.TEXT, allowNull: true, }, ctaLink: { type: DataTypes.TEXT, allowNull: true, }, createdAt: { type: DataTypes.DATE, allowNull: false, }, updatedAt: { type: DataTypes.DATE, allowNull: false, }, readAt: { type: DataTypes.DATE, allowNull: true, }, }); }, down: async (queryInterface) => { await queryInterface.dropTable("notifications"); }, };