'use strict'; module.exports = { async up(queryInterface, Sequelize) { await queryInterface.createTable('Cards', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, identifier: { allowNull: false, type: Sequelize.STRING }, characterID: { allowNull: false, type: Sequelize.INTEGER, references: { model: 'Characters', key: 'id' } }, ownerID: { type: Sequelize.INTEGER, allowNull: false, references: { model: 'Users', key: 'id' } }, enabled: { allowNull: false, type: Sequelize.BOOLEAN }, createdAt: { allowNull: false, type: Sequelize.DATE }, updatedAt: { allowNull: false, type: Sequelize.DATE } }); }, async down(queryInterface, Sequelize) { await queryInterface.dropTable('Cards'); } };