summaryrefslogtreecommitdiffstats
path: root/server/migrations/20190226151600-create-event.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/migrations/20190226151600-create-event.js')
-rw-r--r--server/migrations/20190226151600-create-event.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/server/migrations/20190226151600-create-event.js b/server/migrations/20190226151600-create-event.js
new file mode 100644
index 0000000..59cab86
--- /dev/null
+++ b/server/migrations/20190226151600-create-event.js
@@ -0,0 +1,31 @@
+'use strict'
+module.exports = {
+ up: (queryInterface, Sequelize) => {
+ return queryInterface.createTable('events', {
+ id: {
+ allowNull: false,
+ autoIncrement: true,
+ primaryKey: true,
+ type: Sequelize.INTEGER
+ },
+ name: {
+ type: Sequelize.STRING
+ },
+ description: {
+ type: Sequelize.STRING(2048)
+ },
+ config: {
+ type: Sequelize.INTEGER
+ },
+ times: {
+ type: Sequelize.STRING(4096)
+ },
+ important: {
+ type: Sequelize.BOOLEAN
+ }
+ })
+ },
+ down: (queryInterface, Sequelize) => {
+ return queryInterface.dropTable('permissions')
+ }
+}