Sistem-Pakar-Diagnosa-Penya.../backend/migrations/20250318174019-create-gejal...

25 lines
570 B
JavaScript

'use strict';
/** @type {import('sequelize-cli').Migration} */
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.createTable('Gejala', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
kode: {
type: Sequelize.STRING,
allowNull: true
},
nama: {
type: Sequelize.STRING,
allowNull: true
},
});
},
async down(queryInterface, Sequelize) {
await queryInterface.dropTable('Gejala');
}
};