import { QueryInterface, DataTypes } from "sequelize"; module.exports = { up: (queryInterface: QueryInterface) => { return queryInterface.createTable("SchedulingNotifies", { id: { type: DataTypes.INTEGER, autoIncrement: true, primaryKey: true, allowNull: false }, schedulingId: { type: DataTypes.INTEGER, references: { model: "Schedules", key: "id" }, onUpdate: "CASCADE", onDelete: "CASCADE", allowNull: false }, ticketId: { type: DataTypes.INTEGER, references: { model: "Tickets", key: "id" }, onUpdate: "CASCADE", onDelete: "CASCADE", allowNull: false }, cpf_cnpj: { type: DataTypes.STRING, allowNull: true }, schedulingDate: { type: DataTypes.DATE, allowNull: false }, reminder: { type: DataTypes.STRING, allowNull: true }, message: { type: DataTypes.STRING, allowNull: false }, status: { type: DataTypes.STRING, allowNull: true }, createdAt: { type: DataTypes.DATE, allowNull: false }, updatedAt: { type: DataTypes.DATE, allowNull: false } }); }, down: (queryInterface: QueryInterface) => { return queryInterface.dropTable("SchedulingNotifies"); } };