Files
toho-miku/migrations/20220417130917-create-guild.js
2022-04-17 15:19:12 +02:00

33 lines
697 B
JavaScript

'use strict';
module.exports = {
async up(queryInterface, Sequelize) {
await queryInterface.createTable('Guilds', {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER
},
gid: {
type: Sequelize.STRING
},
adminRole: {
type: Sequelize.STRING
},
owderId: {
type: Sequelize.STRING
},
createdAt: {
allowNull: false,
type: Sequelize.DATE
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE
}
});
},
async down(queryInterface, Sequelize) {
await queryInterface.dropTable('Guilds');
}
};