mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-12-27 16:56:11 +11:00
33 lines
706 B
JavaScript
33 lines
706 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
|
|
},
|
|
other: {
|
|
type: Sequelize.JSON
|
|
},
|
|
expiredAt: {
|
|
type: Sequelize.DATE
|
|
},
|
|
createdAt: {
|
|
allowNull: false,
|
|
type: Sequelize.DATE
|
|
},
|
|
updatedAt: {
|
|
allowNull: false,
|
|
type: Sequelize.DATE
|
|
}
|
|
})
|
|
},
|
|
down: async (queryInterface, Sequelize) => {
|
|
await queryInterface.dropTable("Sessions")
|
|
}
|
|
}
|