mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-25 20:49:12 +11:00
42 lines
829 B
JavaScript
42 lines
829 B
JavaScript
"use strict"
|
|
|
|
module.exports = {
|
|
async up(queryInterface, Sequelize) {
|
|
await queryInterface.createTable("Pins", {
|
|
id: {
|
|
type: Sequelize.BIGINT,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
pinnedById: {
|
|
type: Sequelize.BIGINT,
|
|
allowNull: false
|
|
},
|
|
messageId: {
|
|
type: Sequelize.BIGINT,
|
|
allowNull: false
|
|
},
|
|
chatId: {
|
|
type: Sequelize.BIGINT,
|
|
allowNull: false
|
|
},
|
|
createdAt: {
|
|
type: Sequelize.DATE,
|
|
allowNull: false
|
|
},
|
|
updatedAt: {
|
|
type: Sequelize.DATE,
|
|
allowNull: false
|
|
}
|
|
})
|
|
},
|
|
|
|
async down(queryInterface, Sequelize) {
|
|
/**
|
|
* Add reverting commands here.
|
|
*
|
|
* Example:
|
|
* await queryInterface.dropTable('users');
|
|
*/
|
|
}
|
|
}
|