lite-rpc/migrations/create.sql

30 lines
729 B
MySQL
Raw Normal View History

-- 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,
signature VARCHAR(88) NOT NULL,
2023-01-27 12:35:29 -08:00
recent_slot BIGINT NOT NULL,
forwarded_slot BIGINT NOT NULL,
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,
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,
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
);