blob: 65d3eb429d1486b97b636a62692241c63658c3be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
exports.up = function(knex) {
return knex.schema.createTable('waiting_list', function(t) {
t.increments('id').unsigned().primary();
t.string('email').notNull();
t.string('phone').notNull();
t.enu('status', ['pending', 'activated', 'expired', 'cancelled']).notNull();
t.integer('user_id').nullable();
t.foreign('user_id').references('users.id');
t.text('notes').nullable();
t.timestamps();
})
}
exports.down = function(knex) {
return knex.schema.dropTable('waiting_list');
}
|