Use sequelize

This commit is contained in:
2022-04-17 15:19:12 +02:00
parent 6eccae8721
commit be2991cd50
8 changed files with 1316 additions and 31 deletions

View File

@@ -0,0 +1,33 @@
'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');
}
};