aboutsummaryrefslogtreecommitdiffstats
path: root/db/normalized/ln_keys.js
diff options
context:
space:
mode:
Diffstat (limited to 'db/normalized/ln_keys.js')
-rw-r--r--db/normalized/ln_keys.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/normalized/ln_keys.js b/db/normalized/ln_keys.js
new file mode 100644
index 00000000..74f9ebad
--- /dev/null
+++ b/db/normalized/ln_keys.js
@@ -0,0 +1,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');
+}; \ No newline at end of file