Basic User and Guild registration
This commit is contained in:
@@ -8,13 +8,13 @@ module.exports = {
|
||||
primaryKey: true,
|
||||
type: Sequelize.INTEGER
|
||||
},
|
||||
gid: {
|
||||
guildID: {
|
||||
type: Sequelize.STRING
|
||||
},
|
||||
adminRole: {
|
||||
adminRoleID: {
|
||||
type: Sequelize.STRING
|
||||
},
|
||||
owderId: {
|
||||
owderID: {
|
||||
type: Sequelize.STRING
|
||||
},
|
||||
createdAt: {
|
||||
|
||||
33
migrations/20220417132721-create-user.js
Normal file
33
migrations/20220417132721-create-user.js
Normal file
@@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
module.exports = {
|
||||
async up(queryInterface, Sequelize) {
|
||||
await queryInterface.createTable('Users', {
|
||||
id: {
|
||||
allowNull: false,
|
||||
autoIncrement: true,
|
||||
primaryKey: true,
|
||||
type: Sequelize.INTEGER
|
||||
},
|
||||
userID: {
|
||||
type: Sequelize.STRING
|
||||
},
|
||||
banned: {
|
||||
type: Sequelize.BOOLEAN
|
||||
},
|
||||
registredAt: {
|
||||
type: Sequelize.DATE
|
||||
},
|
||||
createdAt: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE
|
||||
},
|
||||
updatedAt: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE
|
||||
}
|
||||
});
|
||||
},
|
||||
async down(queryInterface, Sequelize) {
|
||||
await queryInterface.dropTable('Users');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user