Untitled
unknown
plain_text
2 years ago
464 B
10
Indexable
// categories
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable('categories', {
id: {
allowNull: false,
autoIncrement: true,
type: Sequelize.INTEGER,
primaryKey: true
},
name: {
allowNull: false,
type: Sequelize.STRING
},
});
},
down: async (queryInterface, _Sequelize) => {
await queryInterface.dropTable('categories');
},
};Editor is loading...
Leave a Comment