mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-23 11:46:44 +11:00
40 lines
827 B
JavaScript
40 lines
827 B
JavaScript
|
"use strict"
|
||
|
module.exports = {
|
||
|
up: async (queryInterface, Sequelize) => {
|
||
|
await queryInterface.createTable("Sessions", {
|
||
|
id: {
|
||
|
allowNull: false,
|
||
|
autoIncrement: true,
|
||
|
primaryKey: true,
|
||
|
type: Sequelize.INTEGER
|
||
|
},
|
||
|
session: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
compassUserId: {
|
||
|
type: Sequelize.BIGINT
|
||
|
},
|
||
|
sussiId: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
other: {
|
||
|
type: Sequelize.JSON
|
||
|
},
|
||
|
instance: {
|
||
|
type: Sequelize.STRING
|
||
|
},
|
||
|
createdAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
},
|
||
|
updatedAt: {
|
||
|
allowNull: false,
|
||
|
type: Sequelize.DATE
|
||
|
}
|
||
|
})
|
||
|
},
|
||
|
down: async (queryInterface, Sequelize) => {
|
||
|
await queryInterface.dropTable("Sessions")
|
||
|
}
|
||
|
}
|