text: "use strict";
  module.exports = {
    up: async (queryInterface, Sequelize) => {
      await queryInterface.createTable("UserNotificationAccesses", {
        id: {
          allowNull: false,
          autoIncrement: true,
          primaryKey: true,
          type: Sequelize.INTEGER,
        },
        userId: {
          type: Sequelize.INTEGER,
          references: {
            model: "Users",
            key: "id",
          },
          onDelete: "CASCADE",
        },
        notificationId: {
          type: Sequelize.INTEGER,
          references: {
            model: "Notifications",
            key: "id",
          },
          onDelete: "CASCADE",
        },
        createdAt: {
          allowNull: false,
          type: Sequelize.DATE,
        },
        updatedAt: {
          allowNull: false,
          type: Sequelize.DATE,
        },
      });
    },
    down: async (queryInterface, Sequelize) => {
      await queryInterface.dropTable("UserNotificationAccesses");
    },
  };
  