import { Op, type QueryInterface } from 'sequelize';

const GLOBAL_STATIC_CONTENT_TYPES = Object.freeze([
  'classroom-timer-backgrounds',
  'classroom-timer-sounds',
  'classroom-timer-presets',
  'classroom-timer-tips',
  'personality-quiz-questions',
  'personality-types',
  'personality-quiz-features',
  'personality-workplace-content',
]);

export default {
  up: async (queryInterface: QueryInterface) => {
    await queryInterface.bulkDelete('content_catalog', {
      content_type: {
        [Op.in]: GLOBAL_STATIC_CONTENT_TYPES,
      },
    });
  },

  down: async () => {
    // Intentionally no-op: these records moved to frontend static constants.
  },
};
