backend/data/migrations/20200502193341_participant.js

18 lines
491 B
JavaScript
Raw Normal View History

2020-05-02 19:06:34 +00:00
exports.up = (knex) => {
return knex.schema.createTable('participant', (table) => {
table.uuid('id').primary();
2020-05-04 16:47:05 +00:00
table.integer('account_id').unsigned();
table.string('email');
table.uuid('meeting_id').unsigned().notNullable();
2020-05-02 19:06:34 +00:00
table.boolean('quorum');
table.boolean('mandatory');
table.boolean('host').notNullable();
table.boolean('answered').notNullable();
2020-05-02 19:06:34 +00:00
table.timestamps(true, true);
});
};
exports.down = (knex) => {
return knex.schema.dropTable('participant');
};