2024-01-22 06:22:11 -08:00
|
|
|
-- note: this schema is only used for postgres_logger
|
2023-03-31 11:05:17 -07:00
|
|
|
CREATE SCHEMA lite_rpc;
|
|
|
|
|
2023-01-27 12:35:29 -08:00
|
|
|
CREATE TABLE lite_rpc.Txs (
|
|
|
|
id SERIAL NOT NULL PRIMARY KEY,
|
2024-01-22 06:22:11 -08:00
|
|
|
signature VARCHAR(88) NOT NULL,
|
2023-01-27 12:35:29 -08:00
|
|
|
recent_slot BIGINT NOT NULL,
|
|
|
|
forwarded_slot BIGINT NOT NULL,
|
2023-04-06 08:28:10 -07:00
|
|
|
forwarded_local_time TIMESTAMP WITH TIME ZONE NOT NULL,
|
2023-01-27 12:35:29 -08:00
|
|
|
processed_slot BIGINT,
|
|
|
|
cu_consumed BIGINT,
|
|
|
|
cu_requested BIGINT,
|
2023-04-16 15:16:53 -07:00
|
|
|
cu_price BIGINT,
|
2023-01-27 21:03:42 -08:00
|
|
|
quic_response SMALLINT
|
2023-01-27 12:35:29 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE lite_rpc.Blocks (
|
|
|
|
slot BIGINT NOT NULL PRIMARY KEY,
|
|
|
|
leader_id BIGINT NOT NULL,
|
2023-04-14 14:10:25 -07:00
|
|
|
parent_slot BIGINT NOT NULL,
|
2023-04-06 08:28:10 -07:00
|
|
|
cluster_time TIMESTAMP WITH TIME ZONE NOT NULL,
|
2023-04-14 14:10:25 -07:00
|
|
|
local_time TIMESTAMP WITH TIME ZONE
|
2023-01-27 12:35:29 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE lite_rpc.AccountAddrs (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
addr VARCHAR(45) NOT NULL
|
|
|
|
);
|