forked from Supositware/Haha-Yes
38 lines
No EOL
819 B
JavaScript
38 lines
No EOL
819 B
JavaScript
/* eslint-disable no-unused-vars */
|
|
/* eslint-disable indent */
|
|
'use strict';
|
|
module.exports = {
|
|
up: (queryInterface, Sequelize) => {
|
|
return queryInterface.createTable('Tags', {
|
|
id: {
|
|
allowNull: false,
|
|
autoIncrement: true,
|
|
primaryKey: true,
|
|
type: Sequelize.INTEGER,
|
|
},
|
|
trigger: {
|
|
type: Sequelize.TEXT,
|
|
},
|
|
response: {
|
|
type: Sequelize.TEXT,
|
|
},
|
|
ownerID: {
|
|
type: Sequelize.BIGINT,
|
|
},
|
|
serverID: {
|
|
type: Sequelize.BIGINT,
|
|
},
|
|
createdAt: {
|
|
allowNull: false,
|
|
type: Sequelize.DATE
|
|
},
|
|
updatedAt: {
|
|
allowNull: false,
|
|
type: Sequelize.DATE
|
|
}
|
|
});
|
|
},
|
|
down: (queryInterface, Sequelize) => {
|
|
return queryInterface.dropTable('Tags');
|
|
}
|
|
}; |