'use strict'; /** @type {import('sequelize-cli').Migration} */ module.exports = { async up(queryInterface, Sequelize) { await queryInterface.createTable('Wanteds', { tmdbId: { type: Sequelize.STRING, primaryKey: true, allowNull: false, }, mediaType: { type: Sequelize.STRING, allowNull: false, defaultValue: 'movie' }, title: { type: Sequelize.STRING }, year: { type: Sequelize.STRING }, status: { type: Sequelize.STRING, allowNull: false, defaultValue: 'wanted' }, requestedBy: { type: Sequelize.STRING }, createdAt: { allowNull: false, type: Sequelize.DATE }, updatedAt: { allowNull: false, type: Sequelize.DATE }, }); }, async down(queryInterface, Sequelize) { await queryInterface.dropTable('Wanteds'); } };