implement HD sweep

This commit is contained in:
Josh Harvey 2016-06-01 14:45:58 +03:00
parent 0140e01c9f
commit 8f081ebf00
4 changed files with 67 additions and 1 deletions

View file

@ -6,8 +6,9 @@ exports.up = function (next) {
session_id uuid PRIMARY KEY,
crypto_code text NOT NULL,
hd_serial integer NOT NULL,
swept boolean NOT NULL default false,
created timestamptz NOT NULL default now(),
unique (crypto_code, hd_serial),
unique (crypto_code, hd_serial)
)`
]
db.multi(sql, next)