Untitled
unknown
plain_text
a year ago
464 B
8
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