aboutsummaryrefslogtreecommitdiffstats
path: root/db/normalized/ln_keys.js
blob: 7922e40e9860fc48375463d54dc4614bbf4a077c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export const 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();
  })
};

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