mirror of
https://github.com/Troplo/Colubrina.git
synced 2024-11-23 03:36:42 +11:00
43 lines
829 B
JavaScript
43 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');
|
||
|
*/
|
||
|
}
|
||
|
}
|