aboutsummaryrefslogtreecommitdiffstats
path: root/db/normalized/ln_keys.js
blob: 74f9ebad53f7c95250868a5161fa90fd5435e99b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
exports.up = function(knex) {
  return knex.schema.createTable('ln_keys', function(t) {
    t.increments('id').unsigned().primary();

    t.int('user_id').notNull();
    t.foreign('user_id').references('users.id');

    t.string('hex').notNull();
    
    t.timestamps();
  })
}

exports.down = function(knex) {
  return knex.schema.dropTable('ln_keys');
};