Add forwarding history sync from lnd to db

This commit is contained in:
Yaacov Akiba Slama
2021-02-05 07:11:53 +02:00
parent 22b2b365ed
commit aca8c4f2c0
9 changed files with 173 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
CREATE TABLE public.forwarding_history (
"timestamp" bigint NOT NULL,
chanid_in bigint NOT NULL,
chanid_out bigint NOT NULL,
amt_msat_in bigint NOT NULL,
amt_msat_out bigint NOT NULL,
CONSTRAINT timestamp_pkey PRIMARY KEY ("timestamp")
);
CREATE INDEX forwarding_history_chanid_in_idx ON public.forwarding_history (chanid_in);
CREATE INDEX forwarding_history_chanid_out_idx ON public.forwarding_history (chanid_out);