30 lines
690 B
JavaScript
30 lines
690 B
JavaScript
|
exports.up = (knex) => {
|
||
|
return knex.schema.createTable('participant', (table) => {
|
||
|
table.increments('id').primary();
|
||
|
table
|
||
|
.integer('account_id')
|
||
|
.unsigned()
|
||
|
.notNullable()
|
||
|
.references('account.id')
|
||
|
.onDelete('cascade');
|
||
|
table
|
||
|
.uuid('meeting_id')
|
||
|
.unsigned()
|
||
|
.notNullable()
|
||
|
.references('meeting.id')
|
||
|
.onDelete('cascade');
|
||
|
table.time('earliest_time');
|
||
|
table.time('latest_time');
|
||
|
table.boolean('quorum');
|
||
|
table.boolean('mandatory');
|
||
|
table.boolean('host');
|
||
|
table.boolean('answered');
|
||
|
table.string('timezone').notNullable();
|
||
|
table.timestamps(true, true);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = (knex) => {
|
||
|
return knex.schema.dropTable('participant');
|
||
|
};
|