Flop kick (#28)

* FlopKick transformer
This commit is contained in:
Elizabeth
2018-09-26 09:42:52 -05:00
committed by GitHub
parent a0ba6ca6bd
commit 31516ea87e
25 changed files with 1247 additions and 100 deletions
@@ -0,0 +1,3 @@
DROP TABLE maker.flop_kick;
ALTER TABLE public.checked_headers
DROP COLUMN flop_kick_checked;
@@ -0,0 +1,15 @@
CREATE TABLE maker.flop_kick (
id SERIAL PRIMARY KEY,
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
bid_id NUMERIC NOT NULL,
lot NUMERIC NOT NULL,
bid NUMERIC NOT NULL,
gal VARCHAR,
"end" TIMESTAMP WITH TIME ZONE,
tx_idx INTEGER NOT NULL,
raw_log JSONB,
UNIQUE (header_id, tx_idx)
);
ALTER TABLE public.checked_headers
ADD COLUMN flop_kick_checked BOOLEAN NOT NULL DEFAULT FALSE;
+69
View File
@@ -340,6 +340,43 @@ CREATE SEQUENCE maker.flip_kick_id_seq
ALTER SEQUENCE maker.flip_kick_id_seq OWNED BY maker.flip_kick.id;
--
-- Name: flop_kick; Type: TABLE; Schema: maker; Owner: -
--
CREATE TABLE maker.flop_kick (
id integer NOT NULL,
header_id integer NOT NULL,
bid_id numeric NOT NULL,
lot numeric NOT NULL,
bid numeric NOT NULL,
gal character varying,
"end" timestamp with time zone,
tx_idx integer NOT NULL,
raw_log jsonb
);
--
-- Name: flop_kick_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
--
CREATE SEQUENCE maker.flop_kick_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: flop_kick_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
--
ALTER SEQUENCE maker.flop_kick_id_seq OWNED BY maker.flop_kick.id;
--
-- Name: frob; Type: TABLE; Schema: maker; Owner: -
--
@@ -670,6 +707,7 @@ CREATE TABLE public.checked_headers (
id integer NOT NULL,
header_id integer NOT NULL,
price_feeds_checked boolean DEFAULT false NOT NULL,
flop_kick_checked boolean DEFAULT false NOT NULL,
deal_checked boolean DEFAULT false NOT NULL,
dent_checked boolean DEFAULT false NOT NULL,
flip_kick_checked boolean DEFAULT false NOT NULL,
@@ -1050,6 +1088,13 @@ ALTER TABLE ONLY maker.drip_file_vow ALTER COLUMN id SET DEFAULT nextval('maker.
ALTER TABLE ONLY maker.flip_kick ALTER COLUMN id SET DEFAULT nextval('maker.flip_kick_id_seq'::regclass);
--
-- Name: flop_kick id; Type: DEFAULT; Schema: maker; Owner: -
--
ALTER TABLE ONLY maker.flop_kick ALTER COLUMN id SET DEFAULT nextval('maker.flop_kick_id_seq'::regclass);
--
-- Name: frob id; Type: DEFAULT; Schema: maker; Owner: -
--
@@ -1305,6 +1350,22 @@ ALTER TABLE ONLY maker.flip_kick
ADD CONSTRAINT flip_kick_pkey PRIMARY KEY (id);
--
-- Name: flop_kick flop_kick_header_id_tx_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
--
ALTER TABLE ONLY maker.flop_kick
ADD CONSTRAINT flop_kick_header_id_tx_idx_key UNIQUE (header_id, tx_idx);
--
-- Name: flop_kick flop_kick_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
--
ALTER TABLE ONLY maker.flop_kick
ADD CONSTRAINT flop_kick_pkey PRIMARY KEY (id);
--
-- Name: frob frob_header_id_tx_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
--
@@ -1643,6 +1704,14 @@ ALTER TABLE ONLY maker.flip_kick
ADD CONSTRAINT flip_kick_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
--
-- Name: flop_kick flop_kick_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
--
ALTER TABLE ONLY maker.flop_kick
ADD CONSTRAINT flop_kick_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
--
-- Name: frob frob_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
--