mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-30 19:15:27 +01:00
Batchers manage batches
This commit is contained in:
@@ -68,20 +68,20 @@ CREATE TABLE recipient (
|
||||
webhook_url TEXT,
|
||||
calledback INTEGER DEFAULT FALSE,
|
||||
calledback_ts INTEGER,
|
||||
batch_id INTEGER REFERENCES batch,
|
||||
label TEXT,
|
||||
batcher_id INTEGER REFERENCES batcher,
|
||||
label TEXT
|
||||
);
|
||||
CREATE INDEX idx_recipient_address ON recipient (address);
|
||||
CREATE INDEX idx_recipient_label ON recipient (label);
|
||||
|
||||
CREATE TABLE batch (
|
||||
CREATE TABLE batcher (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
label TEXT UNIQUE,
|
||||
conf_target INTEGER,
|
||||
feerate REAL,
|
||||
inserted_ts INTEGER DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
INSERT INTO batch (id, label, conf_target, feerate) VALUES (1, "default", 6, NULL);
|
||||
INSERT INTO batcher (id, label, conf_target, feerate) VALUES (1, "default", 6, NULL);
|
||||
|
||||
CREATE TABLE watching_by_txid (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
|
||||
Reference in New Issue
Block a user