mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-27 09:37:27 +01:00
More LN, more robust, more info
This commit is contained in:
@@ -4,12 +4,20 @@ INSERT INTO cyphernode_props (property, value) VALUES ("pay_index", "0");
|
||||
|
||||
CREATE TABLE ln_invoice (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
label TEXT UNIQUE,
|
||||
bolt11 TEXT UNIQUE,
|
||||
payment_hash TEXT,
|
||||
msatoshi INTEGER,
|
||||
status TEXT,
|
||||
pay_index INTEGER,
|
||||
msatoshi_received INTEGER,
|
||||
paid_at INTEGER,
|
||||
description TEXT,
|
||||
expires_at INTEGER,
|
||||
callback_url TEXT,
|
||||
calledback INTEGER DEFAULT FALSE,
|
||||
callback_failed INTEGER DEFAULT FALSE,
|
||||
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
CREATE INDEX idx_lninvoice_label ON ln_invoice (label);
|
||||
CREATE INDEX idx_lninvoice_bolt11 ON ln_invoice (bolt11);
|
||||
CREATE INDEX idx_lninvoice_status ON ln_invoice (status);
|
||||
|
||||
Reference in New Issue
Block a user