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');
|
2020-08-26 15:22:59 +00:00
|
|
|
table.datetime('start_time');
|
2020-05-02 19:06:34 +00:00
|
|
|
table.integer('duration').notNullable();
|
|
|
|
table.boolean('status').notNullable();
|
|
|
|
table.string('password');
|
|
|
|
table.timestamps(true, true);
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
exports.down = (knex) => {
|
|
|
|
return knex.schema.dropTable('meeting');
|
|
|
|
};
|