backend/data/migrations/20200502193249_meeting.js

18 lines
476 B
JavaScript
Raw Normal View History

2020-05-02 19:06:34 +00:00
exports.up = (knex) => {
return knex.schema.createTable('meeting', (table) => {
table.uuid('id').primary();
table.string('title').notNullable();
table.string('description');
table.time('start_time');
table.string('timezone').notNullable();
table.integer('duration').notNullable();
table.boolean('status').notNullable();
table.string('password');
table.timestamps(true, true);
});
};
exports.down = (knex) => {
return knex.schema.dropTable('meeting');
};