text: "use strict";
  module.exports = {
    up: (queryInterface, Sequelize) => {
      return queryInterface.createTable(
        "user_blacklisted_tokens",
        {
          id: {
            type: Sequelize.INTEGER,
            allowNull: false,
            primaryKey: true,
            autoIncrement: true,
          },
          user_id: {
            type: Sequelize.INTEGER,
            allowNull: false,
            references: {
              model: "users",
              key: "id",
            },
          },
          token: {
            type: Sequelize.TEXT,
            allowNull: false,
          },
          expires_at: {
            type: Sequelize.BIGINT,
            allowNull: false,
          },
        },
        {
          timestamp: false,
          createdAt: false,
          updatedAt: false,
        }
      );
    },
    down: (queryInterface) => {
      return queryInterface.dropTable("user_blacklisted_tokens");
    },
  };
  