18 lines
476 B
JavaScript
18 lines
476 B
JavaScript
|
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');
|
||
|
};
|