2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- PostgreSQL database dump
|
|
|
|
--
|
|
|
|
|
2019-02-19 21:01:07 +00:00
|
|
|
-- Dumped from database version 10.6
|
|
|
|
-- Dumped by pg_dump version 10.6
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
SET statement_timeout = 0;
|
|
|
|
SET lock_timeout = 0;
|
|
|
|
SET idle_in_transaction_session_timeout = 0;
|
|
|
|
SET client_encoding = 'UTF8';
|
|
|
|
SET standard_conforming_strings = on;
|
2018-04-11 16:02:29 +00:00
|
|
|
SELECT pg_catalog.set_config('search_path', '', false);
|
2018-01-16 15:11:23 +00:00
|
|
|
SET check_function_bodies = false;
|
|
|
|
SET client_min_messages = warning;
|
|
|
|
SET row_security = off;
|
|
|
|
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
|
|
|
-- Name: maker; Type: SCHEMA; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SCHEMA maker;
|
|
|
|
|
|
|
|
|
2019-01-28 22:52:47 +00:00
|
|
|
--
|
|
|
|
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
|
|
|
|
|
|
|
|
|
2018-09-12 14:30:40 +00:00
|
|
|
--
|
|
|
|
-- Name: notify_pricefeed(); Type: FUNCTION; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE FUNCTION public.notify_pricefeed() RETURNS trigger
|
|
|
|
LANGUAGE plpgsql
|
|
|
|
AS $$
|
|
|
|
BEGIN
|
|
|
|
PERFORM pg_notify(
|
|
|
|
CAST('postgraphile:price_feed' AS text),
|
2018-09-26 16:45:35 +00:00
|
|
|
json_build_object('__node__', json_build_array('price_feeds', NEW.id))::text
|
|
|
|
);
|
2018-09-12 14:30:40 +00:00
|
|
|
RETURN NEW;
|
|
|
|
END;
|
|
|
|
$$;
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
SET default_tablespace = '';
|
|
|
|
|
|
|
|
SET default_with_oids = false;
|
|
|
|
|
2018-08-22 17:44:35 +00:00
|
|
|
--
|
|
|
|
-- Name: bite; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.bite (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-04 18:56:44 +00:00
|
|
|
urn text,
|
2018-10-16 19:51:26 +00:00
|
|
|
ink numeric,
|
|
|
|
art numeric,
|
|
|
|
iart numeric,
|
2018-08-22 17:44:35 +00:00
|
|
|
tab numeric,
|
2018-10-16 19:51:26 +00:00
|
|
|
nflip numeric,
|
2018-08-22 17:44:35 +00:00
|
|
|
tx_idx integer NOT NULL,
|
2018-10-19 16:15:01 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-08-22 17:44:35 +00:00
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bite_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.bite_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: bite_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.bite_id_seq OWNED BY maker.bite.id;
|
|
|
|
|
|
|
|
|
2018-09-12 14:10:34 +00:00
|
|
|
--
|
|
|
|
-- Name: cat_file_chop_lump; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_file_chop_lump (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-09-12 14:10:34 +00:00
|
|
|
what text,
|
|
|
|
data numeric,
|
|
|
|
tx_idx integer NOT NULL,
|
2018-10-22 18:28:42 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-12 14:10:34 +00:00
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_chop_lump_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_file_chop_lump_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_chop_lump_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_file_chop_lump_id_seq OWNED BY maker.cat_file_chop_lump.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_flip; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_file_flip (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
ilk text,
|
|
|
|
what text,
|
|
|
|
flip text,
|
|
|
|
tx_idx integer NOT NULL,
|
2018-10-22 18:28:42 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-12 14:10:34 +00:00
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_flip_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_file_flip_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_flip_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_file_flip_id_seq OWNED BY maker.cat_file_flip.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_pit_vow; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_file_pit_vow (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
what text,
|
|
|
|
data text,
|
|
|
|
tx_idx integer NOT NULL,
|
2018-10-22 18:28:42 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-12 14:10:34 +00:00
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_pit_vow_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_file_pit_vow_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_pit_vow_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_file_pit_vow_id_seq OWNED BY maker.cat_file_pit_vow.id;
|
|
|
|
|
|
|
|
|
2019-02-18 14:16:59 +00:00
|
|
|
--
|
|
|
|
-- Name: cat_flip_ilk; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_flip_ilk (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 13:04:35 +00:00
|
|
|
flip numeric NOT NULL,
|
2019-02-18 14:16:59 +00:00
|
|
|
ilk text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_ilk_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_flip_ilk_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_ilk_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_flip_ilk_id_seq OWNED BY maker.cat_flip_ilk.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_ink; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_flip_ink (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 13:04:35 +00:00
|
|
|
flip numeric NOT NULL,
|
2019-02-18 14:16:59 +00:00
|
|
|
ink numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_ink_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_flip_ink_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_ink_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_flip_ink_id_seq OWNED BY maker.cat_flip_ink.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_tab; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_flip_tab (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 13:04:35 +00:00
|
|
|
flip numeric NOT NULL,
|
2019-02-18 14:16:59 +00:00
|
|
|
tab numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_tab_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_flip_tab_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_tab_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_flip_tab_id_seq OWNED BY maker.cat_flip_tab.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_urn; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_flip_urn (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 13:04:35 +00:00
|
|
|
flip numeric NOT NULL,
|
2019-02-18 14:16:59 +00:00
|
|
|
urn text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_urn_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_flip_urn_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_urn_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_flip_urn_id_seq OWNED BY maker.cat_flip_urn.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_chop; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_ilk_chop (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
ilk text,
|
|
|
|
chop numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_chop_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_ilk_chop_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_chop_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_ilk_chop_id_seq OWNED BY maker.cat_ilk_chop.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_flip; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_ilk_flip (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
ilk text,
|
|
|
|
flip text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_flip_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_ilk_flip_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_flip_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_ilk_flip_id_seq OWNED BY maker.cat_ilk_flip.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_lump; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_ilk_lump (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
ilk text,
|
|
|
|
lump numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_lump_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_ilk_lump_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_lump_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_ilk_lump_id_seq OWNED BY maker.cat_ilk_lump.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_live; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_live (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
live numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_live_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_live_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_live_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_live_id_seq OWNED BY maker.cat_live.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_nflip; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_nflip (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
nflip numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_nflip_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_nflip_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_nflip_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_nflip_id_seq OWNED BY maker.cat_nflip.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_pit; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_pit (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
pit text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_pit_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_pit_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_pit_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_pit_id_seq OWNED BY maker.cat_pit.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vat; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_vat (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
vat text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vat_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_vat_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vat_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_vat_id_seq OWNED BY maker.cat_vat.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vow; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.cat_vow (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
vow text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vow_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.cat_vow_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vow_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.cat_vow_id_seq OWNED BY maker.cat_vow.id;
|
|
|
|
|
|
|
|
|
2018-09-13 14:06:26 +00:00
|
|
|
--
|
|
|
|
-- Name: deal; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.deal (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
bid_id numeric NOT NULL,
|
2018-10-19 16:24:46 +00:00
|
|
|
contract_address character varying,
|
|
|
|
log_idx integer NOT NULL,
|
2018-09-13 14:06:26 +00:00
|
|
|
tx_idx integer NOT NULL,
|
2018-10-19 16:24:46 +00:00
|
|
|
raw_log jsonb
|
2018-09-13 14:06:26 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: deal_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.deal_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: deal_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.deal_id_seq OWNED BY maker.deal.id;
|
|
|
|
|
|
|
|
|
2018-09-11 19:01:45 +00:00
|
|
|
--
|
|
|
|
-- Name: dent; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.dent (
|
2018-09-18 14:27:14 +00:00
|
|
|
id integer NOT NULL,
|
2018-09-11 19:01:45 +00:00
|
|
|
header_id integer NOT NULL,
|
|
|
|
bid_id numeric NOT NULL,
|
|
|
|
lot numeric,
|
|
|
|
bid numeric,
|
|
|
|
guy bytea,
|
|
|
|
tic numeric,
|
2018-10-19 16:48:37 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-11 19:01:45 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: dent_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
2018-09-11 19:01:45 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
CREATE SEQUENCE maker.dent_id_seq
|
2018-09-11 19:01:45 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: dent_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
2018-09-11 19:01:45 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
ALTER SEQUENCE maker.dent_id_seq OWNED BY maker.dent.id;
|
2018-09-11 19:01:45 +00:00
|
|
|
|
|
|
|
|
2018-09-12 00:34:33 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_drip; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.drip_drip (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-19 16:55:53 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-12 00:34:33 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_drip_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.drip_drip_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_drip_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.drip_drip_id_seq OWNED BY maker.drip_drip.id;
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_file_ilk; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.drip_file_ilk (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-09-04 16:35:38 +00:00
|
|
|
vow text,
|
|
|
|
tax numeric,
|
2018-10-19 20:30:07 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-04 16:35:38 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_ilk_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.drip_file_ilk_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_ilk_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.drip_file_ilk_id_seq OWNED BY maker.drip_file_ilk.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_repo; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.drip_file_repo (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
what text,
|
|
|
|
data numeric,
|
2018-10-19 20:30:07 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-04 16:35:38 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_repo_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.drip_file_repo_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_repo_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.drip_file_repo_id_seq OWNED BY maker.drip_file_repo.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_vow; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.drip_file_vow (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
what text,
|
|
|
|
data text,
|
2018-10-19 20:30:07 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-04 16:35:38 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_vow_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.drip_file_vow_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_vow_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.drip_file_vow_id_seq OWNED BY maker.drip_file_vow.id;
|
|
|
|
|
|
|
|
|
2018-11-06 17:11:09 +00:00
|
|
|
--
|
|
|
|
-- Name: flap_kick; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.flap_kick (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
bid_id numeric NOT NULL,
|
|
|
|
lot numeric NOT NULL,
|
|
|
|
bid numeric NOT NULL,
|
|
|
|
gal text,
|
|
|
|
"end" timestamp with time zone,
|
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
log_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: flap_kick_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.flap_kick_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: flap_kick_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.flap_kick_id_seq OWNED BY maker.flap_kick.id;
|
|
|
|
|
|
|
|
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
|
|
|
-- Name: flip_kick; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.flip_kick (
|
2018-09-18 14:27:14 +00:00
|
|
|
id integer NOT NULL,
|
2018-08-07 15:51:34 +00:00
|
|
|
header_id integer NOT NULL,
|
2018-09-18 14:27:14 +00:00
|
|
|
bid_id numeric NOT NULL,
|
2018-08-07 15:51:34 +00:00
|
|
|
lot numeric,
|
|
|
|
bid numeric,
|
2018-10-23 21:33:04 +00:00
|
|
|
gal text,
|
2018-08-07 15:51:34 +00:00
|
|
|
"end" timestamp with time zone,
|
2018-10-23 21:33:04 +00:00
|
|
|
urn text,
|
2018-08-16 21:36:35 +00:00
|
|
|
tab numeric,
|
2018-09-10 21:02:11 +00:00
|
|
|
tx_idx integer NOT NULL,
|
2018-10-23 21:33:04 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-04 20:50:29 +00:00
|
|
|
raw_log jsonb
|
2018-08-07 15:51:34 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: flip_kick_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
CREATE SEQUENCE maker.flip_kick_id_seq
|
2018-08-07 15:51:34 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: flip_kick_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
ALTER SEQUENCE maker.flip_kick_id_seq OWNED BY maker.flip_kick.id;
|
2018-08-07 15:51:34 +00:00
|
|
|
|
|
|
|
|
2018-09-26 14:42:52 +00:00
|
|
|
--
|
|
|
|
-- 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,
|
2018-10-23 21:33:04 +00:00
|
|
|
gal text,
|
2018-09-26 14:42:52 +00:00
|
|
|
"end" timestamp with time zone,
|
|
|
|
tx_idx integer NOT NULL,
|
2018-10-23 21:33:04 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-26 14:42:52 +00:00
|
|
|
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;
|
|
|
|
|
|
|
|
|
2018-08-09 21:55:02 +00:00
|
|
|
--
|
|
|
|
-- Name: frob; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.frob (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-04 18:56:44 +00:00
|
|
|
urn text,
|
2018-08-28 19:16:39 +00:00
|
|
|
dink numeric,
|
|
|
|
dart numeric,
|
2018-08-09 21:55:02 +00:00
|
|
|
ink numeric,
|
|
|
|
art numeric,
|
2018-08-30 23:51:56 +00:00
|
|
|
iart numeric,
|
2018-10-22 19:37:59 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-08-30 23:51:56 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
2018-08-09 21:55:02 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: frob_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.frob_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: frob_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.frob_id_seq OWNED BY maker.frob.id;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: ilks; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.ilks (
|
|
|
|
id integer NOT NULL,
|
|
|
|
ilk text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ilks_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.ilks_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ilks_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.ilks_id_seq OWNED BY maker.ilks.id;
|
|
|
|
|
|
|
|
|
2019-01-28 22:52:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_drip; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.pit_drip (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
drip text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_drip_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.pit_drip_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_drip_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.pit_drip_id_seq OWNED BY maker.pit_drip.id;
|
|
|
|
|
|
|
|
|
2018-09-05 18:51:18 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_file_debt_ceiling; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.pit_file_debt_ceiling (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
what text,
|
|
|
|
data numeric,
|
2018-10-22 19:06:06 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-05 18:51:18 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_file_debt_ceiling_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.pit_file_debt_ceiling_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_file_debt_ceiling_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.pit_file_debt_ceiling_id_seq OWNED BY maker.pit_file_debt_ceiling.id;
|
|
|
|
|
|
|
|
|
2018-08-29 14:12:29 +00:00
|
|
|
--
|
2018-09-05 14:24:28 +00:00
|
|
|
-- Name: pit_file_ilk; Type: TABLE; Schema: maker; Owner: -
|
2018-08-29 14:12:29 +00:00
|
|
|
--
|
|
|
|
|
2018-09-05 14:24:28 +00:00
|
|
|
CREATE TABLE maker.pit_file_ilk (
|
2018-08-29 14:12:29 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-08-29 14:12:29 +00:00
|
|
|
what text,
|
2018-09-05 14:24:28 +00:00
|
|
|
data numeric,
|
2018-10-22 19:06:06 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-08-29 14:12:29 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-09-05 14:24:28 +00:00
|
|
|
-- Name: pit_file_ilk_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
2018-08-29 14:12:29 +00:00
|
|
|
--
|
|
|
|
|
2018-09-05 14:24:28 +00:00
|
|
|
CREATE SEQUENCE maker.pit_file_ilk_id_seq
|
2018-08-29 14:12:29 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-09-05 14:24:28 +00:00
|
|
|
-- Name: pit_file_ilk_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
2018-08-29 14:12:29 +00:00
|
|
|
--
|
|
|
|
|
2018-09-05 14:24:28 +00:00
|
|
|
ALTER SEQUENCE maker.pit_file_ilk_id_seq OWNED BY maker.pit_file_ilk.id;
|
|
|
|
|
|
|
|
|
2019-01-28 22:52:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_ilk_line; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.pit_ilk_line (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-01-28 22:52:47 +00:00
|
|
|
line numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_line_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.pit_ilk_line_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_line_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.pit_ilk_line_id_seq OWNED BY maker.pit_ilk_line.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_spot; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.pit_ilk_spot (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-01-28 22:52:47 +00:00
|
|
|
spot numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_spot_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.pit_ilk_spot_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_spot_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.pit_ilk_spot_id_seq OWNED BY maker.pit_ilk_spot.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_line; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.pit_line (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
line numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_line_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.pit_line_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_line_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.pit_line_id_seq OWNED BY maker.pit_line.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_live; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.pit_live (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
live numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_live_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.pit_live_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_live_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.pit_live_id_seq OWNED BY maker.pit_live.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_vat; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.pit_vat (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
vat text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_vat_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.pit_vat_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_vat_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.pit_vat_id_seq OWNED BY maker.pit_vat.id;
|
|
|
|
|
|
|
|
|
2018-07-24 16:38:49 +00:00
|
|
|
--
|
2018-08-14 21:59:41 +00:00
|
|
|
-- Name: price_feeds; Type: TABLE; Schema: maker; Owner: -
|
2018-07-24 16:38:49 +00:00
|
|
|
--
|
|
|
|
|
2018-08-14 21:59:41 +00:00
|
|
|
CREATE TABLE maker.price_feeds (
|
2018-07-24 16:38:49 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2018-10-22 19:54:09 +00:00
|
|
|
medianizer_address text,
|
2018-09-10 21:57:17 +00:00
|
|
|
usd_value numeric,
|
2018-10-22 19:54:09 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-08-14 21:59:41 +00:00
|
|
|
tx_idx integer NOT NULL,
|
2018-09-10 21:57:17 +00:00
|
|
|
raw_log jsonb
|
2018-07-24 16:38:49 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-08-14 21:59:41 +00:00
|
|
|
-- Name: price_feeds_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
2018-07-24 16:38:49 +00:00
|
|
|
--
|
|
|
|
|
2018-08-14 21:59:41 +00:00
|
|
|
CREATE SEQUENCE maker.price_feeds_id_seq
|
2018-07-24 16:38:49 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-08-14 21:59:41 +00:00
|
|
|
-- Name: price_feeds_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
2018-07-24 16:38:49 +00:00
|
|
|
--
|
|
|
|
|
2018-08-14 21:59:41 +00:00
|
|
|
ALTER SEQUENCE maker.price_feeds_id_seq OWNED BY maker.price_feeds.id;
|
2018-07-26 20:51:49 +00:00
|
|
|
|
|
|
|
|
2018-08-16 21:36:35 +00:00
|
|
|
--
|
|
|
|
-- Name: tend; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.tend (
|
2018-09-18 14:27:14 +00:00
|
|
|
id integer NOT NULL,
|
2018-08-16 21:36:35 +00:00
|
|
|
header_id integer NOT NULL,
|
2018-09-04 20:50:29 +00:00
|
|
|
bid_id numeric NOT NULL,
|
2018-08-16 21:36:35 +00:00
|
|
|
lot numeric,
|
|
|
|
bid numeric,
|
2018-10-22 21:07:19 +00:00
|
|
|
guy text,
|
2018-08-16 21:36:35 +00:00
|
|
|
tic numeric,
|
2018-10-22 21:07:19 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-08-16 21:36:35 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: tend_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
2018-08-16 21:36:35 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
CREATE SEQUENCE maker.tend_id_seq
|
2018-08-16 21:36:35 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: tend_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
2018-08-16 21:36:35 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
ALTER SEQUENCE maker.tend_id_seq OWNED BY maker.tend.id;
|
2018-08-16 21:36:35 +00:00
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_dai; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_dai (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
guy text,
|
|
|
|
dai numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_dai_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_dai_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_dai_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_dai_id_seq OWNED BY maker.vat_dai.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_debt; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_debt (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
debt numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_debt_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_debt_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_debt_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_debt_id_seq OWNED BY maker.vat_debt.id;
|
|
|
|
|
|
|
|
|
2018-10-11 17:16:10 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_flux; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_flux (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-11 17:16:10 +00:00
|
|
|
src text,
|
|
|
|
dst text,
|
|
|
|
rad numeric,
|
|
|
|
tx_idx integer NOT NULL,
|
2018-10-23 21:33:04 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-10-11 17:16:10 +00:00
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_flux_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_flux_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_flux_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_flux_id_seq OWNED BY maker.vat_flux.id;
|
|
|
|
|
|
|
|
|
2018-10-03 10:44:23 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_fold; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_fold (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-04 15:48:06 +00:00
|
|
|
urn text,
|
2018-10-03 10:44:23 +00:00
|
|
|
rate numeric,
|
2018-10-22 21:18:40 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-10-03 10:44:23 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_fold_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_fold_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_fold_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_fold_id_seq OWNED BY maker.vat_fold.id;
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_gem; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_gem (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-02-06 15:38:47 +00:00
|
|
|
guy text,
|
|
|
|
gem numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_gem_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_gem_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_gem_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_gem_id_seq OWNED BY maker.vat_gem.id;
|
|
|
|
|
|
|
|
|
2018-10-08 21:39:57 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_grab; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_grab (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-08 21:39:57 +00:00
|
|
|
urn text,
|
|
|
|
v text,
|
|
|
|
w text,
|
|
|
|
dink numeric,
|
|
|
|
dart numeric,
|
2018-10-22 21:29:02 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-10-08 21:39:57 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_grab_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_grab_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_grab_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_grab_id_seq OWNED BY maker.vat_grab.id;
|
|
|
|
|
|
|
|
|
2018-10-10 16:56:06 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_heal; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_heal (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2018-10-22 21:39:49 +00:00
|
|
|
urn text,
|
|
|
|
v text,
|
2018-10-17 21:01:48 +00:00
|
|
|
rad numeric,
|
2018-10-22 21:39:49 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-10-10 16:56:06 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_heal_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_heal_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_heal_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_heal_id_seq OWNED BY maker.vat_heal.id;
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_ilk_art; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_ilk_art (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-02-06 15:38:47 +00:00
|
|
|
art numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_art_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_ilk_art_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_art_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_ilk_art_id_seq OWNED BY maker.vat_ilk_art.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_ink; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_ilk_ink (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-02-06 15:38:47 +00:00
|
|
|
ink numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_ink_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_ilk_ink_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_ink_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_ilk_ink_id_seq OWNED BY maker.vat_ilk_ink.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_rate; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_ilk_rate (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-02-06 15:38:47 +00:00
|
|
|
rate numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_rate_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_ilk_rate_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_rate_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_ilk_rate_id_seq OWNED BY maker.vat_ilk_rate.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_take; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_ilk_take (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-02-06 15:38:47 +00:00
|
|
|
take numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_take_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_ilk_take_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_take_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_ilk_take_id_seq OWNED BY maker.vat_ilk_take.id;
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_init; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_init (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-22 21:48:27 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-09-04 16:35:38 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_init_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_init_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_init_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_init_id_seq OWNED BY maker.vat_init.id;
|
|
|
|
|
|
|
|
|
2018-10-12 14:13:13 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_move; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_move (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
src text NOT NULL,
|
|
|
|
dst text NOT NULL,
|
|
|
|
rad numeric NOT NULL,
|
2018-10-23 16:49:13 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-10-12 14:13:13 +00:00
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_move_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_move_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_move_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_move_id_seq OWNED BY maker.vat_move.id;
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_sin; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_sin (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
guy text,
|
|
|
|
sin numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_sin_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_sin_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_sin_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_sin_id_seq OWNED BY maker.vat_sin.id;
|
|
|
|
|
|
|
|
|
2018-10-15 20:04:17 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_slip; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_slip (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-15 20:04:17 +00:00
|
|
|
guy text,
|
|
|
|
rad numeric,
|
|
|
|
tx_idx integer NOT NULL,
|
2018-10-23 21:33:04 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-10-15 20:04:17 +00:00
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_slip_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_slip_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_slip_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_slip_id_seq OWNED BY maker.vat_slip.id;
|
|
|
|
|
|
|
|
|
2018-10-04 19:46:04 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_toll; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_toll (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-04 19:46:04 +00:00
|
|
|
urn text,
|
|
|
|
take numeric,
|
|
|
|
tx_idx integer NOT NULL,
|
2018-10-23 21:33:04 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-10-04 19:46:04 +00:00
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_toll_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_toll_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_toll_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_toll_id_seq OWNED BY maker.vat_toll.id;
|
|
|
|
|
|
|
|
|
2018-10-04 21:49:09 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_tune; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_tune (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2018-10-04 21:49:09 +00:00
|
|
|
urn text,
|
|
|
|
v text,
|
|
|
|
w text,
|
|
|
|
dink numeric,
|
|
|
|
dart numeric,
|
|
|
|
tx_idx integer NOT NULL,
|
2018-10-23 21:33:04 +00:00
|
|
|
log_idx integer NOT NULL,
|
2018-10-04 21:49:09 +00:00
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_tune_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_tune_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_tune_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_tune_id_seq OWNED BY maker.vat_tune.id;
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_urn_art; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_urn_art (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-02-06 15:38:47 +00:00
|
|
|
urn text,
|
|
|
|
art text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_art_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_urn_art_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_art_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_urn_art_id_seq OWNED BY maker.vat_urn_art.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_ink; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_urn_ink (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk integer NOT NULL,
|
2019-02-06 15:38:47 +00:00
|
|
|
urn text,
|
|
|
|
ink numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_ink_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_urn_ink_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_ink_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_urn_ink_id_seq OWNED BY maker.vat_urn_ink.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_vice; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vat_vice (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
vice numeric NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_vice_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vat_vice_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_vice_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vat_vice_id_seq OWNED BY maker.vat_vice.id;
|
|
|
|
|
|
|
|
|
2019-02-11 21:11:36 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_ash; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_ash (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-13 03:50:52 +00:00
|
|
|
ash numeric
|
2019-02-11 21:11:36 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_ash_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_ash_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_ash_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_ash_id_seq OWNED BY maker.vow_ash.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_bump; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_bump (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-13 03:50:52 +00:00
|
|
|
bump numeric
|
2019-02-11 21:11:36 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_bump_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_bump_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_bump_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_bump_id_seq OWNED BY maker.vow_bump.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_cow; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_cow (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
cow text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_cow_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_cow_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_cow_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_cow_id_seq OWNED BY maker.vow_cow.id;
|
|
|
|
|
|
|
|
|
2018-10-25 10:19:46 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_flog; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_flog (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
|
|
|
era integer NOT NULL,
|
|
|
|
log_idx integer NOT NULL,
|
|
|
|
tx_idx integer NOT NULL,
|
|
|
|
raw_log jsonb
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_flog_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_flog_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_flog_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_flog_id_seq OWNED BY maker.vow_flog.id;
|
|
|
|
|
|
|
|
|
2019-02-11 21:11:36 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_hump; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_hump (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-13 03:50:52 +00:00
|
|
|
hump numeric
|
2019-02-11 21:11:36 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_hump_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_hump_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_hump_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_hump_id_seq OWNED BY maker.vow_hump.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_row; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_row (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
"row" text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_row_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_row_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_row_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_row_id_seq OWNED BY maker.vow_row.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sin; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_sin (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-13 03:50:52 +00:00
|
|
|
sin numeric
|
2019-02-11 21:11:36 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sin_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_sin_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sin_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_sin_id_seq OWNED BY maker.vow_sin.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sump; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_sump (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-13 03:50:52 +00:00
|
|
|
sump numeric
|
2019-02-11 21:11:36 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sump_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_sump_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sump_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_sump_id_seq OWNED BY maker.vow_sump.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_vat; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_vat (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
vat text
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_vat_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_vat_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_vat_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_vat_id_seq OWNED BY maker.vow_vat.id;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_wait; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_wait (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
2019-02-13 03:50:52 +00:00
|
|
|
wait numeric
|
2019-02-11 21:11:36 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_wait_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_wait_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_wait_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_wait_id_seq OWNED BY maker.vow_wait.id;
|
|
|
|
|
|
|
|
|
2019-02-13 03:50:52 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_woe; Type: TABLE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE maker.vow_woe (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
block_hash text,
|
|
|
|
woe numeric
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_woe_id_seq; Type: SEQUENCE; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE maker.vow_woe_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_woe_id_seq; Type: SEQUENCE OWNED BY; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE maker.vow_woe_id_seq OWNED BY maker.vow_woe.id;
|
|
|
|
|
|
|
|
|
2018-01-23 18:43:35 +00:00
|
|
|
--
|
|
|
|
-- Name: logs; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE TABLE public.logs (
|
2018-01-23 18:43:35 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
block_number bigint,
|
|
|
|
address character varying(66),
|
|
|
|
tx_hash character varying(66),
|
|
|
|
index bigint,
|
|
|
|
topic0 character varying(66),
|
|
|
|
topic1 character varying(66),
|
|
|
|
topic2 character varying(66),
|
|
|
|
topic3 character varying(66),
|
|
|
|
data text,
|
|
|
|
receipt_id integer
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: block_stats; Type: VIEW; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE VIEW public.block_stats AS
|
2018-01-23 18:43:35 +00:00
|
|
|
SELECT max(logs.block_number) AS max_block,
|
|
|
|
min(logs.block_number) AS min_block
|
2018-04-11 16:02:29 +00:00
|
|
|
FROM public.logs;
|
2018-01-23 18:43:35 +00:00
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: blocks; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE TABLE public.blocks (
|
2018-02-02 22:12:14 +00:00
|
|
|
number bigint,
|
|
|
|
gaslimit bigint,
|
|
|
|
gasused bigint,
|
|
|
|
"time" bigint,
|
2018-01-16 15:11:23 +00:00
|
|
|
id integer NOT NULL,
|
2018-02-02 22:12:14 +00:00
|
|
|
difficulty bigint,
|
|
|
|
hash character varying(66),
|
|
|
|
nonce character varying(20),
|
|
|
|
parenthash character varying(66),
|
2018-03-07 21:29:21 +00:00
|
|
|
size character varying,
|
2018-01-16 15:11:23 +00:00
|
|
|
uncle_hash character varying(66),
|
2018-03-21 14:53:20 +00:00
|
|
|
eth_node_id integer NOT NULL,
|
2018-01-16 15:11:23 +00:00
|
|
|
is_final boolean,
|
2018-02-02 22:12:14 +00:00
|
|
|
miner character varying(42),
|
|
|
|
extra_data character varying,
|
|
|
|
reward double precision,
|
2018-05-07 15:41:02 +00:00
|
|
|
uncles_reward double precision,
|
|
|
|
eth_node_fingerprint character varying(128) NOT NULL
|
2018-01-16 15:11:23 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE SEQUENCE public.blocks_id_seq
|
2018-01-16 15:11:23 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER SEQUENCE public.blocks_id_seq OWNED BY public.blocks.id;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-09-13 15:05:16 +00:00
|
|
|
--
|
|
|
|
-- Name: checked_headers; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.checked_headers (
|
|
|
|
id integer NOT NULL,
|
|
|
|
header_id integer NOT NULL,
|
2019-02-08 16:35:46 +00:00
|
|
|
price_feeds_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
flip_kick_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
frob_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
tend_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
bite_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
dent_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
pit_file_debt_ceiling_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
pit_file_ilk_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_init_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
drip_file_ilk_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
drip_file_repo_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
drip_file_vow_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
deal_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
drip_drip_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
cat_file_chop_lump_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
cat_file_flip_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
cat_file_pit_vow_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
flop_kick_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_move_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_fold_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_heal_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_toll_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_tune_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_grab_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_flux_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vat_slip_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
vow_flog_checked integer DEFAULT 0 NOT NULL,
|
|
|
|
flap_kick_checked integer DEFAULT 0 NOT NULL
|
2018-09-13 15:05:16 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: checked_headers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.checked_headers_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: checked_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.checked_headers_id_seq OWNED BY public.checked_headers.id;
|
|
|
|
|
|
|
|
|
2018-03-21 14:53:20 +00:00
|
|
|
--
|
|
|
|
-- Name: eth_nodes; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE TABLE public.eth_nodes (
|
2018-03-21 14:53:20 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
genesis_block character varying(66),
|
|
|
|
network_id numeric,
|
|
|
|
eth_node_id character varying(128),
|
|
|
|
client_name character varying
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2019-01-24 10:54:56 +00:00
|
|
|
--
|
|
|
|
-- Name: goose_db_version; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.goose_db_version (
|
|
|
|
id integer NOT NULL,
|
|
|
|
version_id bigint NOT NULL,
|
|
|
|
is_applied boolean NOT NULL,
|
|
|
|
tstamp timestamp without time zone DEFAULT now()
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: goose_db_version_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.goose_db_version_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: goose_db_version_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.goose_db_version_id_seq OWNED BY public.goose_db_version.id;
|
|
|
|
|
|
|
|
|
2018-07-17 21:23:07 +00:00
|
|
|
--
|
|
|
|
-- Name: headers; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.headers (
|
|
|
|
id integer NOT NULL,
|
|
|
|
hash character varying(66),
|
|
|
|
block_number bigint,
|
2018-10-11 18:21:49 +00:00
|
|
|
raw jsonb,
|
2018-10-11 20:25:14 +00:00
|
|
|
block_timestamp numeric,
|
2018-07-17 21:23:07 +00:00
|
|
|
eth_node_id integer,
|
|
|
|
eth_node_fingerprint character varying(128)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: headers_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.headers_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: headers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.headers_id_seq OWNED BY public.headers.id;
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
2018-01-23 18:43:35 +00:00
|
|
|
-- Name: log_filters; Type: TABLE; Schema: public; Owner: -
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE TABLE public.log_filters (
|
2018-01-16 15:11:23 +00:00
|
|
|
id integer NOT NULL,
|
2018-01-23 18:43:35 +00:00
|
|
|
name character varying NOT NULL,
|
|
|
|
from_block bigint,
|
|
|
|
to_block bigint,
|
2018-01-16 15:11:23 +00:00
|
|
|
address character varying(66),
|
|
|
|
topic0 character varying(66),
|
|
|
|
topic1 character varying(66),
|
|
|
|
topic2 character varying(66),
|
|
|
|
topic3 character varying(66),
|
2018-01-23 18:43:35 +00:00
|
|
|
CONSTRAINT log_filters_from_block_check CHECK ((from_block >= 0)),
|
2018-02-08 16:12:08 +00:00
|
|
|
CONSTRAINT log_filters_name_check CHECK (((name)::text <> ''::text)),
|
|
|
|
CONSTRAINT log_filters_to_block_check CHECK ((to_block >= 0))
|
2018-01-16 15:11:23 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2018-01-23 18:43:35 +00:00
|
|
|
--
|
|
|
|
-- Name: log_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE SEQUENCE public.log_filters_id_seq
|
2018-01-23 18:43:35 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: log_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER SEQUENCE public.log_filters_id_seq OWNED BY public.log_filters.id;
|
2018-01-23 18:43:35 +00:00
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE SEQUENCE public.logs_id_seq
|
2018-01-16 15:11:23 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER SEQUENCE public.logs_id_seq OWNED BY public.logs.id;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE SEQUENCE public.nodes_id_seq
|
2018-01-16 15:11:23 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER SEQUENCE public.nodes_id_seq OWNED BY public.eth_nodes.id;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2019-02-19 21:01:07 +00:00
|
|
|
--
|
|
|
|
-- Name: queued_storage; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.queued_storage (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_height bigint,
|
|
|
|
block_hash bytea,
|
|
|
|
contract bytea,
|
|
|
|
storage_key bytea,
|
|
|
|
storage_value bytea
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: queued_storage_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.queued_storage_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: queued_storage_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.queued_storage_id_seq OWNED BY public.queued_storage.id;
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: receipts; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE TABLE public.receipts (
|
2018-01-16 15:11:23 +00:00
|
|
|
id integer NOT NULL,
|
|
|
|
contract_address character varying(42),
|
|
|
|
cumulative_gas_used numeric,
|
|
|
|
gas_used numeric,
|
|
|
|
state_root character varying(66),
|
|
|
|
status integer,
|
2018-05-01 16:35:01 +00:00
|
|
|
tx_hash character varying(66),
|
|
|
|
block_id integer NOT NULL
|
2018-01-16 15:11:23 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: receipts_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE SEQUENCE public.receipts_id_seq
|
2018-01-16 15:11:23 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: receipts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER SEQUENCE public.receipts_id_seq OWNED BY public.receipts.id;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-05-05 20:25:54 +00:00
|
|
|
--
|
|
|
|
-- Name: token_supply; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TABLE public.token_supply (
|
|
|
|
id integer NOT NULL,
|
|
|
|
block_id integer NOT NULL,
|
|
|
|
supply numeric NOT NULL,
|
|
|
|
token_address character varying(66) NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: token_supply_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE SEQUENCE public.token_supply_id_seq
|
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: token_supply_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER SEQUENCE public.token_supply_id_seq OWNED BY public.token_supply.id;
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: transactions; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE TABLE public.transactions (
|
2018-01-16 15:11:23 +00:00
|
|
|
id integer NOT NULL,
|
2018-02-02 22:12:14 +00:00
|
|
|
hash character varying(66),
|
|
|
|
nonce numeric,
|
2018-01-16 15:11:23 +00:00
|
|
|
tx_to character varying(66),
|
2018-02-02 22:12:14 +00:00
|
|
|
gaslimit numeric,
|
|
|
|
gasprice numeric,
|
|
|
|
value numeric,
|
2018-01-16 15:11:23 +00:00
|
|
|
block_id integer NOT NULL,
|
|
|
|
tx_from character varying(66),
|
2018-02-02 22:12:14 +00:00
|
|
|
input_data character varying
|
2018-01-16 15:11:23 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: transactions_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE SEQUENCE public.transactions_id_seq
|
2018-01-16 15:11:23 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: transactions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER SEQUENCE public.transactions_id_seq OWNED BY public.transactions.id;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: watched_contracts; Type: TABLE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE TABLE public.watched_contracts (
|
2018-01-16 15:11:23 +00:00
|
|
|
contract_id integer NOT NULL,
|
|
|
|
contract_hash character varying(66),
|
|
|
|
contract_abi json
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: watched_contracts_contract_id_seq; Type: SEQUENCE; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE SEQUENCE public.watched_contracts_contract_id_seq
|
2018-01-16 15:11:23 +00:00
|
|
|
AS integer
|
|
|
|
START WITH 1
|
|
|
|
INCREMENT BY 1
|
|
|
|
NO MINVALUE
|
|
|
|
NO MAXVALUE
|
|
|
|
CACHE 1;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: watched_contracts_contract_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER SEQUENCE public.watched_contracts_contract_id_seq OWNED BY public.watched_contracts.contract_id;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-01-23 18:43:35 +00:00
|
|
|
--
|
|
|
|
-- Name: watched_event_logs; Type: VIEW; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE VIEW public.watched_event_logs AS
|
2018-01-23 18:43:35 +00:00
|
|
|
SELECT log_filters.name,
|
|
|
|
logs.id,
|
|
|
|
logs.block_number,
|
|
|
|
logs.address,
|
|
|
|
logs.tx_hash,
|
|
|
|
logs.index,
|
|
|
|
logs.topic0,
|
|
|
|
logs.topic1,
|
|
|
|
logs.topic2,
|
|
|
|
logs.topic3,
|
|
|
|
logs.data,
|
|
|
|
logs.receipt_id
|
2018-04-11 16:02:29 +00:00
|
|
|
FROM ((public.log_filters
|
|
|
|
CROSS JOIN public.block_stats)
|
|
|
|
JOIN public.logs ON ((((logs.address)::text = (log_filters.address)::text) AND (logs.block_number >= COALESCE(log_filters.from_block, block_stats.min_block)) AND (logs.block_number <= COALESCE(log_filters.to_block, block_stats.max_block)))))
|
2018-01-23 18:43:35 +00:00
|
|
|
WHERE ((((log_filters.topic0)::text = (logs.topic0)::text) OR (log_filters.topic0 IS NULL)) AND (((log_filters.topic1)::text = (logs.topic1)::text) OR (log_filters.topic1 IS NULL)) AND (((log_filters.topic2)::text = (logs.topic2)::text) OR (log_filters.topic2 IS NULL)) AND (((log_filters.topic3)::text = (logs.topic3)::text) OR (log_filters.topic3 IS NULL)));
|
|
|
|
|
|
|
|
|
2018-08-22 17:44:35 +00:00
|
|
|
--
|
|
|
|
-- Name: bite id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.bite ALTER COLUMN id SET DEFAULT nextval('maker.bite_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-12 14:10:34 +00:00
|
|
|
--
|
|
|
|
-- Name: cat_file_chop_lump id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_chop_lump ALTER COLUMN id SET DEFAULT nextval('maker.cat_file_chop_lump_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_flip id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_flip ALTER COLUMN id SET DEFAULT nextval('maker.cat_file_flip_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_pit_vow id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_pit_vow ALTER COLUMN id SET DEFAULT nextval('maker.cat_file_pit_vow_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-18 14:16:59 +00:00
|
|
|
--
|
|
|
|
-- Name: cat_flip_ilk id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_flip_ilk ALTER COLUMN id SET DEFAULT nextval('maker.cat_flip_ilk_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_ink id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_flip_ink ALTER COLUMN id SET DEFAULT nextval('maker.cat_flip_ink_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_tab id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_flip_tab ALTER COLUMN id SET DEFAULT nextval('maker.cat_flip_tab_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_urn id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_flip_urn ALTER COLUMN id SET DEFAULT nextval('maker.cat_flip_urn_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_chop id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_ilk_chop ALTER COLUMN id SET DEFAULT nextval('maker.cat_ilk_chop_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_flip id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_ilk_flip ALTER COLUMN id SET DEFAULT nextval('maker.cat_ilk_flip_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_lump id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_ilk_lump ALTER COLUMN id SET DEFAULT nextval('maker.cat_ilk_lump_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_live id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_live ALTER COLUMN id SET DEFAULT nextval('maker.cat_live_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_nflip id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_nflip ALTER COLUMN id SET DEFAULT nextval('maker.cat_nflip_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_pit id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_pit ALTER COLUMN id SET DEFAULT nextval('maker.cat_pit_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vat id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_vat ALTER COLUMN id SET DEFAULT nextval('maker.cat_vat_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vow id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_vow ALTER COLUMN id SET DEFAULT nextval('maker.cat_vow_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-13 14:06:26 +00:00
|
|
|
--
|
|
|
|
-- Name: deal id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.deal ALTER COLUMN id SET DEFAULT nextval('maker.deal_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-11 19:01:45 +00:00
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: dent id; Type: DEFAULT; Schema: maker; Owner: -
|
2018-09-11 19:01:45 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
ALTER TABLE ONLY maker.dent ALTER COLUMN id SET DEFAULT nextval('maker.dent_id_seq'::regclass);
|
2018-09-11 19:01:45 +00:00
|
|
|
|
|
|
|
|
2018-09-12 00:34:33 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_drip id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_drip ALTER COLUMN id SET DEFAULT nextval('maker.drip_drip_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_file_ilk id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_ilk ALTER COLUMN id SET DEFAULT nextval('maker.drip_file_ilk_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_repo id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_repo ALTER COLUMN id SET DEFAULT nextval('maker.drip_file_repo_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_vow id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_vow ALTER COLUMN id SET DEFAULT nextval('maker.drip_file_vow_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-11-06 17:11:09 +00:00
|
|
|
--
|
|
|
|
-- Name: flap_kick id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.flap_kick ALTER COLUMN id SET DEFAULT nextval('maker.flap_kick_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: flip_kick id; Type: DEFAULT; Schema: maker; Owner: -
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
ALTER TABLE ONLY maker.flip_kick ALTER COLUMN id SET DEFAULT nextval('maker.flip_kick_id_seq'::regclass);
|
2018-08-07 15:51:34 +00:00
|
|
|
|
|
|
|
|
2018-09-26 14:42:52 +00:00
|
|
|
--
|
|
|
|
-- 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);
|
|
|
|
|
|
|
|
|
2018-08-09 21:55:02 +00:00
|
|
|
--
|
|
|
|
-- Name: frob id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.frob ALTER COLUMN id SET DEFAULT nextval('maker.frob_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: ilks id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.ilks ALTER COLUMN id SET DEFAULT nextval('maker.ilks_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-01-28 22:52:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_drip id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_drip ALTER COLUMN id SET DEFAULT nextval('maker.pit_drip_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-05 18:51:18 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_file_debt_ceiling id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_debt_ceiling ALTER COLUMN id SET DEFAULT nextval('maker.pit_file_debt_ceiling_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-08-29 14:12:29 +00:00
|
|
|
--
|
2018-09-05 14:24:28 +00:00
|
|
|
-- Name: pit_file_ilk id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_ilk ALTER COLUMN id SET DEFAULT nextval('maker.pit_file_ilk_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-01-28 22:52:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_ilk_line id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_ilk_line ALTER COLUMN id SET DEFAULT nextval('maker.pit_ilk_line_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_spot id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_ilk_spot ALTER COLUMN id SET DEFAULT nextval('maker.pit_ilk_spot_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_line id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_line ALTER COLUMN id SET DEFAULT nextval('maker.pit_line_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_live id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_live ALTER COLUMN id SET DEFAULT nextval('maker.pit_live_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_vat id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_vat ALTER COLUMN id SET DEFAULT nextval('maker.pit_vat_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-07-24 16:38:49 +00:00
|
|
|
--
|
2018-08-14 21:59:41 +00:00
|
|
|
-- Name: price_feeds id; Type: DEFAULT; Schema: maker; Owner: -
|
2018-07-26 18:57:38 +00:00
|
|
|
--
|
|
|
|
|
2018-08-14 21:59:41 +00:00
|
|
|
ALTER TABLE ONLY maker.price_feeds ALTER COLUMN id SET DEFAULT nextval('maker.price_feeds_id_seq'::regclass);
|
2018-07-26 20:51:49 +00:00
|
|
|
|
|
|
|
|
2018-08-16 21:36:35 +00:00
|
|
|
--
|
2018-09-18 14:27:14 +00:00
|
|
|
-- Name: tend id; Type: DEFAULT; Schema: maker; Owner: -
|
2018-08-16 21:36:35 +00:00
|
|
|
--
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
ALTER TABLE ONLY maker.tend ALTER COLUMN id SET DEFAULT nextval('maker.tend_id_seq'::regclass);
|
2018-08-16 21:36:35 +00:00
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_dai id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_dai ALTER COLUMN id SET DEFAULT nextval('maker.vat_dai_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_debt id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_debt ALTER COLUMN id SET DEFAULT nextval('maker.vat_debt_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-11 17:16:10 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_flux id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_flux ALTER COLUMN id SET DEFAULT nextval('maker.vat_flux_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-03 10:44:23 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_fold id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_fold ALTER COLUMN id SET DEFAULT nextval('maker.vat_fold_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_gem id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_gem ALTER COLUMN id SET DEFAULT nextval('maker.vat_gem_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-08 21:39:57 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_grab id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_grab ALTER COLUMN id SET DEFAULT nextval('maker.vat_grab_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-10 16:56:06 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_heal id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_heal ALTER COLUMN id SET DEFAULT nextval('maker.vat_heal_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_ilk_art id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_art ALTER COLUMN id SET DEFAULT nextval('maker.vat_ilk_art_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_ink id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_ink ALTER COLUMN id SET DEFAULT nextval('maker.vat_ilk_ink_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_rate id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_rate ALTER COLUMN id SET DEFAULT nextval('maker.vat_ilk_rate_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_take id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_take ALTER COLUMN id SET DEFAULT nextval('maker.vat_ilk_take_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_init id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_init ALTER COLUMN id SET DEFAULT nextval('maker.vat_init_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-12 14:13:13 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_move id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_move ALTER COLUMN id SET DEFAULT nextval('maker.vat_move_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_sin id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_sin ALTER COLUMN id SET DEFAULT nextval('maker.vat_sin_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-15 20:04:17 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_slip id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_slip ALTER COLUMN id SET DEFAULT nextval('maker.vat_slip_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-04 19:46:04 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_toll id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_toll ALTER COLUMN id SET DEFAULT nextval('maker.vat_toll_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-04 21:49:09 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_tune id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_tune ALTER COLUMN id SET DEFAULT nextval('maker.vat_tune_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_urn_art id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_urn_art ALTER COLUMN id SET DEFAULT nextval('maker.vat_urn_art_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_ink id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_urn_ink ALTER COLUMN id SET DEFAULT nextval('maker.vat_urn_ink_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_vice id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_vice ALTER COLUMN id SET DEFAULT nextval('maker.vat_vice_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-11 21:11:36 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_ash id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_ash ALTER COLUMN id SET DEFAULT nextval('maker.vow_ash_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_bump id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_bump ALTER COLUMN id SET DEFAULT nextval('maker.vow_bump_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_cow id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_cow ALTER COLUMN id SET DEFAULT nextval('maker.vow_cow_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-10-25 10:19:46 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_flog id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_flog ALTER COLUMN id SET DEFAULT nextval('maker.vow_flog_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-11 21:11:36 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_hump id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_hump ALTER COLUMN id SET DEFAULT nextval('maker.vow_hump_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_row id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_row ALTER COLUMN id SET DEFAULT nextval('maker.vow_row_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sin id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_sin ALTER COLUMN id SET DEFAULT nextval('maker.vow_sin_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sump id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_sump ALTER COLUMN id SET DEFAULT nextval('maker.vow_sump_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_vat id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_vat ALTER COLUMN id SET DEFAULT nextval('maker.vow_vat_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_wait id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_wait ALTER COLUMN id SET DEFAULT nextval('maker.vow_wait_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2019-02-13 03:50:52 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_woe id; Type: DEFAULT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_woe ALTER COLUMN id SET DEFAULT nextval('maker.vow_woe_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: blocks id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.blocks ALTER COLUMN id SET DEFAULT nextval('public.blocks_id_seq'::regclass);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-09-13 15:05:16 +00:00
|
|
|
--
|
|
|
|
-- Name: checked_headers id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.checked_headers ALTER COLUMN id SET DEFAULT nextval('public.checked_headers_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-01-23 18:43:35 +00:00
|
|
|
--
|
2018-03-21 14:53:20 +00:00
|
|
|
-- Name: eth_nodes id; Type: DEFAULT; Schema: public; Owner: -
|
2018-01-23 18:43:35 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.eth_nodes ALTER COLUMN id SET DEFAULT nextval('public.nodes_id_seq'::regclass);
|
2018-01-23 18:43:35 +00:00
|
|
|
|
|
|
|
|
2019-01-24 10:54:56 +00:00
|
|
|
--
|
|
|
|
-- Name: goose_db_version id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.goose_db_version ALTER COLUMN id SET DEFAULT nextval('public.goose_db_version_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-07-17 21:23:07 +00:00
|
|
|
--
|
|
|
|
-- Name: headers id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.headers ALTER COLUMN id SET DEFAULT nextval('public.headers_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
2018-03-21 14:53:20 +00:00
|
|
|
-- Name: log_filters id; Type: DEFAULT; Schema: public; Owner: -
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.log_filters ALTER COLUMN id SET DEFAULT nextval('public.log_filters_id_seq'::regclass);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-03-21 14:53:20 +00:00
|
|
|
-- Name: logs id; Type: DEFAULT; Schema: public; Owner: -
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.logs ALTER COLUMN id SET DEFAULT nextval('public.logs_id_seq'::regclass);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2019-02-19 21:01:07 +00:00
|
|
|
--
|
|
|
|
-- Name: queued_storage id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.queued_storage ALTER COLUMN id SET DEFAULT nextval('public.queued_storage_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: receipts id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.receipts ALTER COLUMN id SET DEFAULT nextval('public.receipts_id_seq'::regclass);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-05-05 20:25:54 +00:00
|
|
|
--
|
|
|
|
-- Name: token_supply id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.token_supply ALTER COLUMN id SET DEFAULT nextval('public.token_supply_id_seq'::regclass);
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: transactions id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.transactions ALTER COLUMN id SET DEFAULT nextval('public.transactions_id_seq'::regclass);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: watched_contracts contract_id; Type: DEFAULT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.watched_contracts ALTER COLUMN contract_id SET DEFAULT nextval('public.watched_contracts_contract_id_seq'::regclass);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-08-30 20:06:14 +00:00
|
|
|
--
|
2018-10-19 16:15:01 +00:00
|
|
|
-- Name: bite bite_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-08-30 20:06:14 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.bite
|
2018-10-19 16:15:01 +00:00
|
|
|
ADD CONSTRAINT bite_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-08-30 20:06:14 +00:00
|
|
|
|
|
|
|
|
2018-08-22 17:44:35 +00:00
|
|
|
--
|
|
|
|
-- Name: bite bite_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.bite
|
|
|
|
ADD CONSTRAINT bite_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-12 14:10:34 +00:00
|
|
|
--
|
2018-10-22 18:28:42 +00:00
|
|
|
-- Name: cat_file_chop_lump cat_file_chop_lump_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-12 14:10:34 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_chop_lump
|
2018-10-22 18:28:42 +00:00
|
|
|
ADD CONSTRAINT cat_file_chop_lump_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-12 14:10:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_chop_lump cat_file_chop_lump_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_chop_lump
|
|
|
|
ADD CONSTRAINT cat_file_chop_lump_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-10-22 18:28:42 +00:00
|
|
|
-- Name: cat_file_flip cat_file_flip_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-12 14:10:34 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_flip
|
2018-10-22 18:28:42 +00:00
|
|
|
ADD CONSTRAINT cat_file_flip_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-12 14:10:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_flip cat_file_flip_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_flip
|
|
|
|
ADD CONSTRAINT cat_file_flip_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-10-22 18:28:42 +00:00
|
|
|
-- Name: cat_file_pit_vow cat_file_pit_vow_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-12 14:10:34 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_pit_vow
|
2018-10-22 18:28:42 +00:00
|
|
|
ADD CONSTRAINT cat_file_pit_vow_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-12 14:10:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_pit_vow cat_file_pit_vow_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_pit_vow
|
|
|
|
ADD CONSTRAINT cat_file_pit_vow_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-18 14:16:59 +00:00
|
|
|
--
|
|
|
|
-- Name: cat_flip_ilk cat_flip_ilk_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_flip_ilk
|
|
|
|
ADD CONSTRAINT cat_flip_ilk_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_ink cat_flip_ink_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_flip_ink
|
|
|
|
ADD CONSTRAINT cat_flip_ink_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_tab cat_flip_tab_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_flip_tab
|
|
|
|
ADD CONSTRAINT cat_flip_tab_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_flip_urn cat_flip_urn_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_flip_urn
|
|
|
|
ADD CONSTRAINT cat_flip_urn_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_chop cat_ilk_chop_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_ilk_chop
|
|
|
|
ADD CONSTRAINT cat_ilk_chop_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_flip cat_ilk_flip_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_ilk_flip
|
|
|
|
ADD CONSTRAINT cat_ilk_flip_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_ilk_lump cat_ilk_lump_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_ilk_lump
|
|
|
|
ADD CONSTRAINT cat_ilk_lump_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_live cat_live_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_live
|
|
|
|
ADD CONSTRAINT cat_live_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_nflip cat_nflip_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_nflip
|
|
|
|
ADD CONSTRAINT cat_nflip_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_pit cat_pit_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_pit
|
|
|
|
ADD CONSTRAINT cat_pit_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vat cat_vat_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_vat
|
|
|
|
ADD CONSTRAINT cat_vat_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_vow cat_vow_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_vow
|
|
|
|
ADD CONSTRAINT cat_vow_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-13 14:06:26 +00:00
|
|
|
--
|
2018-10-19 16:24:46 +00:00
|
|
|
-- Name: deal deal_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-13 14:06:26 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.deal
|
2018-10-19 16:24:46 +00:00
|
|
|
ADD CONSTRAINT deal_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-13 14:06:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: deal deal_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.deal
|
|
|
|
ADD CONSTRAINT deal_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
--
|
2018-10-19 16:48:37 +00:00
|
|
|
-- Name: dent dent_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-18 14:27:14 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.dent
|
2018-10-19 16:48:37 +00:00
|
|
|
ADD CONSTRAINT dent_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-18 14:27:14 +00:00
|
|
|
|
|
|
|
|
2018-09-11 19:01:45 +00:00
|
|
|
--
|
|
|
|
-- Name: dent dent_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.dent
|
2018-09-18 14:27:14 +00:00
|
|
|
ADD CONSTRAINT dent_pkey PRIMARY KEY (id);
|
2018-09-11 19:01:45 +00:00
|
|
|
|
|
|
|
|
2018-09-12 00:34:33 +00:00
|
|
|
--
|
2018-10-19 16:55:53 +00:00
|
|
|
-- Name: drip_drip drip_drip_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-12 00:34:33 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_drip
|
2018-10-19 16:55:53 +00:00
|
|
|
ADD CONSTRAINT drip_drip_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-12 00:34:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_drip drip_drip_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_drip
|
|
|
|
ADD CONSTRAINT drip_drip_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
2018-10-19 20:30:07 +00:00
|
|
|
-- Name: drip_file_ilk drip_file_ilk_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_ilk
|
2018-10-19 20:30:07 +00:00
|
|
|
ADD CONSTRAINT drip_file_ilk_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-04 16:35:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_ilk drip_file_ilk_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_ilk
|
|
|
|
ADD CONSTRAINT drip_file_ilk_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-10-19 20:30:07 +00:00
|
|
|
-- Name: drip_file_repo drip_file_repo_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_repo
|
2018-10-19 20:30:07 +00:00
|
|
|
ADD CONSTRAINT drip_file_repo_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-04 16:35:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_repo drip_file_repo_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_repo
|
|
|
|
ADD CONSTRAINT drip_file_repo_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-10-19 20:30:07 +00:00
|
|
|
-- Name: drip_file_vow drip_file_vow_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_vow
|
2018-10-19 20:30:07 +00:00
|
|
|
ADD CONSTRAINT drip_file_vow_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-04 16:35:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_vow drip_file_vow_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_vow
|
|
|
|
ADD CONSTRAINT drip_file_vow_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-11-06 17:11:09 +00:00
|
|
|
--
|
|
|
|
-- Name: flap_kick flap_kick_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.flap_kick
|
|
|
|
ADD CONSTRAINT flap_kick_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: flap_kick flap_kick_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.flap_kick
|
|
|
|
ADD CONSTRAINT flap_kick_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
2018-10-23 21:33:04 +00:00
|
|
|
-- Name: flip_kick flip_kick_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.flip_kick
|
2018-10-23 21:33:04 +00:00
|
|
|
ADD CONSTRAINT flip_kick_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-08-07 15:51:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: flip_kick flip_kick_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.flip_kick
|
2018-09-18 14:27:14 +00:00
|
|
|
ADD CONSTRAINT flip_kick_pkey PRIMARY KEY (id);
|
2018-08-07 15:51:34 +00:00
|
|
|
|
|
|
|
|
2018-09-26 14:42:52 +00:00
|
|
|
--
|
2018-10-23 21:33:04 +00:00
|
|
|
-- Name: flop_kick flop_kick_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-26 14:42:52 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.flop_kick
|
2018-10-23 21:33:04 +00:00
|
|
|
ADD CONSTRAINT flop_kick_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-26 14:42:52 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- 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);
|
|
|
|
|
|
|
|
|
2018-08-09 21:55:02 +00:00
|
|
|
--
|
2018-10-22 19:37:59 +00:00
|
|
|
-- Name: frob frob_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-08-09 21:55:02 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.frob
|
2018-10-22 19:37:59 +00:00
|
|
|
ADD CONSTRAINT frob_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-08-09 21:55:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: frob frob_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.frob
|
|
|
|
ADD CONSTRAINT frob_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: ilks ilks_ilk_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.ilks
|
|
|
|
ADD CONSTRAINT ilks_ilk_key UNIQUE (ilk);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: ilks ilks_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.ilks
|
|
|
|
ADD CONSTRAINT ilks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-01-28 22:52:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_drip pit_drip_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_drip
|
|
|
|
ADD CONSTRAINT pit_drip_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-05 18:51:18 +00:00
|
|
|
--
|
2018-10-22 19:06:06 +00:00
|
|
|
-- Name: pit_file_debt_ceiling pit_file_debt_ceiling_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-05 18:51:18 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_debt_ceiling
|
2018-10-22 19:06:06 +00:00
|
|
|
ADD CONSTRAINT pit_file_debt_ceiling_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-05 18:51:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_file_debt_ceiling pit_file_debt_ceiling_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_debt_ceiling
|
|
|
|
ADD CONSTRAINT pit_file_debt_ceiling_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-08-29 14:12:29 +00:00
|
|
|
--
|
2018-10-22 19:06:06 +00:00
|
|
|
-- Name: pit_file_ilk pit_file_ilk_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-05 14:24:28 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_ilk
|
2018-10-22 19:06:06 +00:00
|
|
|
ADD CONSTRAINT pit_file_ilk_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-05 14:24:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_file_ilk pit_file_ilk_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_ilk
|
|
|
|
ADD CONSTRAINT pit_file_ilk_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-01-28 22:52:47 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_ilk_line pit_ilk_line_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_ilk_line
|
|
|
|
ADD CONSTRAINT pit_ilk_line_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_spot pit_ilk_spot_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_ilk_spot
|
|
|
|
ADD CONSTRAINT pit_ilk_spot_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_line pit_line_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_line
|
|
|
|
ADD CONSTRAINT pit_line_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_live pit_live_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_live
|
|
|
|
ADD CONSTRAINT pit_live_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_vat pit_vat_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_vat
|
|
|
|
ADD CONSTRAINT pit_vat_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-07-24 16:38:49 +00:00
|
|
|
--
|
2018-10-22 19:54:09 +00:00
|
|
|
-- Name: price_feeds price_feeds_header_id_medianizer_address_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-07-26 18:57:38 +00:00
|
|
|
--
|
|
|
|
|
2018-08-14 21:59:41 +00:00
|
|
|
ALTER TABLE ONLY maker.price_feeds
|
2018-10-22 19:54:09 +00:00
|
|
|
ADD CONSTRAINT price_feeds_header_id_medianizer_address_tx_idx_log_idx_key UNIQUE (header_id, medianizer_address, tx_idx, log_idx);
|
2018-07-26 18:57:38 +00:00
|
|
|
|
|
|
|
|
2018-07-26 20:51:49 +00:00
|
|
|
--
|
2018-08-14 21:59:41 +00:00
|
|
|
-- Name: price_feeds price_feeds_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-07-26 20:51:49 +00:00
|
|
|
--
|
|
|
|
|
2018-08-14 21:59:41 +00:00
|
|
|
ALTER TABLE ONLY maker.price_feeds
|
|
|
|
ADD CONSTRAINT price_feeds_pkey PRIMARY KEY (id);
|
2018-07-26 20:51:49 +00:00
|
|
|
|
|
|
|
|
2018-09-18 14:27:14 +00:00
|
|
|
--
|
2018-10-22 21:07:19 +00:00
|
|
|
-- Name: tend tend_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-18 14:27:14 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.tend
|
2018-10-22 21:07:19 +00:00
|
|
|
ADD CONSTRAINT tend_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-18 14:27:14 +00:00
|
|
|
|
|
|
|
|
2018-08-16 21:36:35 +00:00
|
|
|
--
|
|
|
|
-- Name: tend tend_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.tend
|
2018-09-18 14:27:14 +00:00
|
|
|
ADD CONSTRAINT tend_pkey PRIMARY KEY (id);
|
2018-08-16 21:36:35 +00:00
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_dai vat_dai_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_dai
|
|
|
|
ADD CONSTRAINT vat_dai_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_debt vat_debt_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_debt
|
|
|
|
ADD CONSTRAINT vat_debt_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-11 17:16:10 +00:00
|
|
|
--
|
2018-10-23 21:33:04 +00:00
|
|
|
-- Name: vat_flux vat_flux_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-10-11 17:16:10 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_flux
|
2018-10-23 21:33:04 +00:00
|
|
|
ADD CONSTRAINT vat_flux_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-10-11 17:16:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_flux vat_flux_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_flux
|
|
|
|
ADD CONSTRAINT vat_flux_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-03 10:44:23 +00:00
|
|
|
--
|
2018-10-22 21:18:40 +00:00
|
|
|
-- Name: vat_fold vat_fold_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-10-03 10:44:23 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_fold
|
2018-10-22 21:18:40 +00:00
|
|
|
ADD CONSTRAINT vat_fold_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-10-03 10:44:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_fold vat_fold_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_fold
|
|
|
|
ADD CONSTRAINT vat_fold_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_gem vat_gem_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_gem
|
|
|
|
ADD CONSTRAINT vat_gem_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-08 21:39:57 +00:00
|
|
|
--
|
2018-10-22 21:29:02 +00:00
|
|
|
-- Name: vat_grab vat_grab_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-10-08 21:39:57 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_grab
|
2018-10-22 21:29:02 +00:00
|
|
|
ADD CONSTRAINT vat_grab_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-10-08 21:39:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_grab vat_grab_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_grab
|
|
|
|
ADD CONSTRAINT vat_grab_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-10 16:56:06 +00:00
|
|
|
--
|
2018-10-22 21:39:49 +00:00
|
|
|
-- Name: vat_heal vat_heal_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-10-10 16:56:06 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_heal
|
2018-10-22 21:39:49 +00:00
|
|
|
ADD CONSTRAINT vat_heal_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-10-10 16:56:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_heal vat_heal_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_heal
|
|
|
|
ADD CONSTRAINT vat_heal_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_ilk_art vat_ilk_art_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_art
|
|
|
|
ADD CONSTRAINT vat_ilk_art_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_ink vat_ilk_ink_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_ink
|
|
|
|
ADD CONSTRAINT vat_ilk_ink_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_rate vat_ilk_rate_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_rate
|
|
|
|
ADD CONSTRAINT vat_ilk_rate_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_take vat_ilk_take_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_take
|
|
|
|
ADD CONSTRAINT vat_ilk_take_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
2018-10-22 21:48:27 +00:00
|
|
|
-- Name: vat_init vat_init_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_init
|
2018-10-22 21:48:27 +00:00
|
|
|
ADD CONSTRAINT vat_init_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-09-04 16:35:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_init vat_init_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_init
|
|
|
|
ADD CONSTRAINT vat_init_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-12 14:13:13 +00:00
|
|
|
--
|
2018-10-23 16:49:13 +00:00
|
|
|
-- Name: vat_move vat_move_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-10-12 14:13:13 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_move
|
2018-10-23 16:49:13 +00:00
|
|
|
ADD CONSTRAINT vat_move_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-10-12 14:13:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_move vat_move_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_move
|
|
|
|
ADD CONSTRAINT vat_move_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_sin vat_sin_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_sin
|
|
|
|
ADD CONSTRAINT vat_sin_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-15 20:04:17 +00:00
|
|
|
--
|
2018-10-23 21:33:04 +00:00
|
|
|
-- Name: vat_slip vat_slip_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-10-15 20:04:17 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_slip
|
2018-10-23 21:33:04 +00:00
|
|
|
ADD CONSTRAINT vat_slip_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-10-15 20:04:17 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_slip vat_slip_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_slip
|
|
|
|
ADD CONSTRAINT vat_slip_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-04 19:46:04 +00:00
|
|
|
--
|
2018-10-23 21:33:04 +00:00
|
|
|
-- Name: vat_toll vat_toll_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-10-04 19:46:04 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_toll
|
2018-10-23 21:33:04 +00:00
|
|
|
ADD CONSTRAINT vat_toll_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-10-04 19:46:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_toll vat_toll_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_toll
|
|
|
|
ADD CONSTRAINT vat_toll_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-04 21:49:09 +00:00
|
|
|
--
|
2018-10-23 21:33:04 +00:00
|
|
|
-- Name: vat_tune vat_tune_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
2018-10-04 21:49:09 +00:00
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_tune
|
2018-10-23 21:33:04 +00:00
|
|
|
ADD CONSTRAINT vat_tune_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
2018-10-04 21:49:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_tune vat_tune_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_tune
|
|
|
|
ADD CONSTRAINT vat_tune_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-06 15:38:47 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_urn_art vat_urn_art_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_urn_art
|
|
|
|
ADD CONSTRAINT vat_urn_art_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_ink vat_urn_ink_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_urn_ink
|
|
|
|
ADD CONSTRAINT vat_urn_ink_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_vice vat_vice_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_vice
|
|
|
|
ADD CONSTRAINT vat_vice_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-11 21:11:36 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_ash vow_ash_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_ash
|
|
|
|
ADD CONSTRAINT vow_ash_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_bump vow_bump_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_bump
|
|
|
|
ADD CONSTRAINT vow_bump_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_cow vow_cow_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_cow
|
|
|
|
ADD CONSTRAINT vow_cow_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-10-25 10:19:46 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_flog vow_flog_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_flog
|
|
|
|
ADD CONSTRAINT vow_flog_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_flog vow_flog_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_flog
|
|
|
|
ADD CONSTRAINT vow_flog_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-11 21:11:36 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_hump vow_hump_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_hump
|
|
|
|
ADD CONSTRAINT vow_hump_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_row vow_row_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_row
|
|
|
|
ADD CONSTRAINT vow_row_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sin vow_sin_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_sin
|
|
|
|
ADD CONSTRAINT vow_sin_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_sump vow_sump_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_sump
|
|
|
|
ADD CONSTRAINT vow_sump_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_vat vow_vat_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_vat
|
|
|
|
ADD CONSTRAINT vow_vat_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vow_wait vow_wait_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_wait
|
|
|
|
ADD CONSTRAINT vow_wait_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-13 03:50:52 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_woe vow_woe_pkey; Type: CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_woe
|
|
|
|
ADD CONSTRAINT vow_woe_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: blocks blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.blocks
|
2018-01-16 15:11:23 +00:00
|
|
|
ADD CONSTRAINT blocks_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-09-13 15:05:16 +00:00
|
|
|
--
|
|
|
|
-- Name: checked_headers checked_headers_header_id_key; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.checked_headers
|
|
|
|
ADD CONSTRAINT checked_headers_header_id_key UNIQUE (header_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: checked_headers checked_headers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.checked_headers
|
|
|
|
ADD CONSTRAINT checked_headers_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: watched_contracts contract_hash_uc; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.watched_contracts
|
2018-01-16 15:11:23 +00:00
|
|
|
ADD CONSTRAINT contract_hash_uc UNIQUE (contract_hash);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-03-21 14:53:20 +00:00
|
|
|
-- Name: blocks eth_node_id_block_number_uc; Type: CONSTRAINT; Schema: public; Owner: -
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.blocks
|
2018-03-21 14:53:20 +00:00
|
|
|
ADD CONSTRAINT eth_node_id_block_number_uc UNIQUE (number, eth_node_id);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-01-23 18:43:35 +00:00
|
|
|
--
|
2018-03-21 14:53:20 +00:00
|
|
|
-- Name: eth_nodes eth_node_uc; Type: CONSTRAINT; Schema: public; Owner: -
|
2018-01-23 18:43:35 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.eth_nodes
|
2018-03-21 14:53:20 +00:00
|
|
|
ADD CONSTRAINT eth_node_uc UNIQUE (genesis_block, network_id, eth_node_id);
|
2018-01-23 18:43:35 +00:00
|
|
|
|
|
|
|
|
2019-01-24 10:54:56 +00:00
|
|
|
--
|
|
|
|
-- Name: goose_db_version goose_db_version_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.goose_db_version
|
|
|
|
ADD CONSTRAINT goose_db_version_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-07-17 21:23:07 +00:00
|
|
|
--
|
|
|
|
-- Name: headers headers_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.headers
|
|
|
|
ADD CONSTRAINT headers_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
2018-03-21 14:53:20 +00:00
|
|
|
-- Name: logs logs_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.logs
|
2018-03-21 14:53:20 +00:00
|
|
|
ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-03-21 14:53:20 +00:00
|
|
|
-- Name: log_filters name_uc; Type: CONSTRAINT; Schema: public; Owner: -
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.log_filters
|
2018-03-21 14:53:20 +00:00
|
|
|
ADD CONSTRAINT name_uc UNIQUE (name);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
2018-03-21 14:53:20 +00:00
|
|
|
-- Name: eth_nodes nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.eth_nodes
|
2018-01-16 15:11:23 +00:00
|
|
|
ADD CONSTRAINT nodes_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2019-02-19 21:01:07 +00:00
|
|
|
--
|
|
|
|
-- Name: queued_storage queued_storage_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.queued_storage
|
|
|
|
ADD CONSTRAINT queued_storage_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: receipts receipts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.receipts
|
2018-01-16 15:11:23 +00:00
|
|
|
ADD CONSTRAINT receipts_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: transactions transactions_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.transactions
|
2018-01-16 15:11:23 +00:00
|
|
|
ADD CONSTRAINT transactions_pkey PRIMARY KEY (id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: watched_contracts watched_contracts_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.watched_contracts
|
2018-01-16 15:11:23 +00:00
|
|
|
ADD CONSTRAINT watched_contracts_pkey PRIMARY KEY (contract_id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: block_id_index; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE INDEX block_id_index ON public.transactions USING btree (block_id);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: block_number_index; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE INDEX block_number_index ON public.blocks USING btree (number);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: node_id_index; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE INDEX node_id_index ON public.blocks USING btree (eth_node_id);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tx_from_index; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE INDEX tx_from_index ON public.transactions USING btree (tx_from);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: tx_to_index; Type: INDEX; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
CREATE INDEX tx_to_index ON public.transactions USING btree (tx_to);
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-09-12 14:30:40 +00:00
|
|
|
--
|
|
|
|
-- Name: price_feeds notify_pricefeeds; Type: TRIGGER; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
CREATE TRIGGER notify_pricefeeds AFTER INSERT ON maker.price_feeds FOR EACH ROW EXECUTE PROCEDURE public.notify_pricefeed();
|
|
|
|
|
|
|
|
|
2018-08-22 17:44:35 +00:00
|
|
|
--
|
|
|
|
-- Name: bite bite_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.bite
|
|
|
|
ADD CONSTRAINT bite_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: bite bite_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.bite
|
|
|
|
ADD CONSTRAINT bite_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-09-12 14:10:34 +00:00
|
|
|
--
|
|
|
|
-- Name: cat_file_chop_lump cat_file_chop_lump_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_chop_lump
|
|
|
|
ADD CONSTRAINT cat_file_chop_lump_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: cat_file_chop_lump cat_file_chop_lump_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_chop_lump
|
|
|
|
ADD CONSTRAINT cat_file_chop_lump_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-09-12 14:10:34 +00:00
|
|
|
--
|
|
|
|
-- Name: cat_file_flip cat_file_flip_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_flip
|
|
|
|
ADD CONSTRAINT cat_file_flip_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: cat_file_pit_vow cat_file_pit_vow_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.cat_file_pit_vow
|
|
|
|
ADD CONSTRAINT cat_file_pit_vow_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-09-13 14:06:26 +00:00
|
|
|
--
|
|
|
|
-- Name: deal deal_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.deal
|
|
|
|
ADD CONSTRAINT deal_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-09-11 19:01:45 +00:00
|
|
|
--
|
|
|
|
-- Name: dent dent_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.dent
|
|
|
|
ADD CONSTRAINT dent_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-09-12 00:34:33 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_drip drip_drip_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_drip
|
|
|
|
ADD CONSTRAINT drip_drip_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_drip drip_drip_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_drip
|
|
|
|
ADD CONSTRAINT drip_drip_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_file_ilk drip_file_ilk_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_ilk
|
|
|
|
ADD CONSTRAINT drip_file_ilk_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_file_ilk drip_file_ilk_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_ilk
|
|
|
|
ADD CONSTRAINT drip_file_ilk_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
-- Name: drip_file_repo drip_file_repo_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_repo
|
|
|
|
ADD CONSTRAINT drip_file_repo_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: drip_file_vow drip_file_vow_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.drip_file_vow
|
|
|
|
ADD CONSTRAINT drip_file_vow_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-11-06 17:11:09 +00:00
|
|
|
--
|
|
|
|
-- Name: flap_kick flap_kick_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.flap_kick
|
|
|
|
ADD CONSTRAINT flap_kick_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-07 15:51:34 +00:00
|
|
|
--
|
|
|
|
-- Name: flip_kick flip_kick_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.flip_kick
|
|
|
|
ADD CONSTRAINT flip_kick_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-09-26 14:42:52 +00:00
|
|
|
--
|
|
|
|
-- 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;
|
|
|
|
|
|
|
|
|
2018-08-09 21:55:02 +00:00
|
|
|
--
|
|
|
|
-- Name: frob frob_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.frob
|
|
|
|
ADD CONSTRAINT frob_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: frob frob_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.frob
|
|
|
|
ADD CONSTRAINT frob_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-09-05 18:51:18 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_file_debt_ceiling pit_file_debt_ceiling_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_debt_ceiling
|
|
|
|
ADD CONSTRAINT pit_file_debt_ceiling_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-29 14:12:29 +00:00
|
|
|
--
|
2018-09-05 14:24:28 +00:00
|
|
|
-- Name: pit_file_ilk pit_file_ilk_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_ilk
|
|
|
|
ADD CONSTRAINT pit_file_ilk_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: pit_file_ilk pit_file_ilk_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_file_ilk
|
|
|
|
ADD CONSTRAINT pit_file_ilk_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_line pit_ilk_line_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_ilk_line
|
|
|
|
ADD CONSTRAINT pit_ilk_line_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: pit_ilk_spot pit_ilk_spot_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.pit_ilk_spot
|
|
|
|
ADD CONSTRAINT pit_ilk_spot_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-09-10 21:57:17 +00:00
|
|
|
--
|
|
|
|
-- Name: price_feeds price_feeds_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.price_feeds
|
|
|
|
ADD CONSTRAINT price_feeds_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-08-16 21:36:35 +00:00
|
|
|
--
|
|
|
|
-- Name: tend tend_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.tend
|
|
|
|
ADD CONSTRAINT tend_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-10-11 17:16:10 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_flux vat_flux_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_flux
|
|
|
|
ADD CONSTRAINT vat_flux_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_flux vat_flux_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_flux
|
|
|
|
ADD CONSTRAINT vat_flux_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-10-03 10:44:23 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_fold vat_fold_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_fold
|
|
|
|
ADD CONSTRAINT vat_fold_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_fold vat_fold_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_fold
|
|
|
|
ADD CONSTRAINT vat_fold_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_gem vat_gem_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_gem
|
|
|
|
ADD CONSTRAINT vat_gem_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-10-08 21:39:57 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_grab vat_grab_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_grab
|
|
|
|
ADD CONSTRAINT vat_grab_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_grab vat_grab_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_grab
|
|
|
|
ADD CONSTRAINT vat_grab_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-10-10 16:56:06 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_heal vat_heal_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_heal
|
|
|
|
ADD CONSTRAINT vat_heal_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_ilk_art vat_ilk_art_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_art
|
|
|
|
ADD CONSTRAINT vat_ilk_art_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_ink vat_ilk_ink_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_ink
|
|
|
|
ADD CONSTRAINT vat_ilk_ink_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_rate vat_ilk_rate_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_rate
|
|
|
|
ADD CONSTRAINT vat_ilk_rate_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_ilk_take vat_ilk_take_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_ilk_take
|
|
|
|
ADD CONSTRAINT vat_ilk_take_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-09-04 16:35:38 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_init vat_init_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_init
|
|
|
|
ADD CONSTRAINT vat_init_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_init vat_init_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_init
|
|
|
|
ADD CONSTRAINT vat_init_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-10-12 14:13:13 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_move vat_move_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_move
|
|
|
|
ADD CONSTRAINT vat_move_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-10-15 20:04:17 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_slip vat_slip_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_slip
|
|
|
|
ADD CONSTRAINT vat_slip_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_slip vat_slip_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_slip
|
|
|
|
ADD CONSTRAINT vat_slip_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-10-04 19:46:04 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_toll vat_toll_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_toll
|
|
|
|
ADD CONSTRAINT vat_toll_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_toll vat_toll_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_toll
|
|
|
|
ADD CONSTRAINT vat_toll_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-10-04 21:49:09 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_tune vat_tune_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_tune
|
|
|
|
ADD CONSTRAINT vat_tune_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2019-02-20 19:39:37 +00:00
|
|
|
--
|
|
|
|
-- Name: vat_tune vat_tune_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_tune
|
|
|
|
ADD CONSTRAINT vat_tune_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_art vat_urn_art_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_urn_art
|
|
|
|
ADD CONSTRAINT vat_urn_art_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: vat_urn_ink vat_urn_ink_ilk_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vat_urn_ink
|
|
|
|
ADD CONSTRAINT vat_urn_ink_ilk_fkey FOREIGN KEY (ilk) REFERENCES maker.ilks(id);
|
|
|
|
|
|
|
|
|
2018-10-25 10:19:46 +00:00
|
|
|
--
|
|
|
|
-- Name: vow_flog vow_flog_header_id_fkey; Type: FK CONSTRAINT; Schema: maker; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY maker.vow_flog
|
|
|
|
ADD CONSTRAINT vow_flog_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: transactions blocks_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.transactions
|
|
|
|
ADD CONSTRAINT blocks_fk FOREIGN KEY (block_id) REFERENCES public.blocks(id) ON DELETE CASCADE;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
2018-05-01 16:35:01 +00:00
|
|
|
--
|
|
|
|
-- Name: receipts blocks_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.receipts
|
|
|
|
ADD CONSTRAINT blocks_fk FOREIGN KEY (block_id) REFERENCES public.blocks(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-05-05 20:25:54 +00:00
|
|
|
--
|
|
|
|
-- Name: token_supply blocks_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.token_supply
|
|
|
|
ADD CONSTRAINT blocks_fk FOREIGN KEY (block_id) REFERENCES public.blocks(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-09-13 15:05:16 +00:00
|
|
|
--
|
|
|
|
-- Name: checked_headers checked_headers_header_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.checked_headers
|
|
|
|
ADD CONSTRAINT checked_headers_header_id_fkey FOREIGN KEY (header_id) REFERENCES public.headers(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-07-17 21:23:07 +00:00
|
|
|
--
|
|
|
|
-- Name: headers eth_nodes_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
|
|
|
ALTER TABLE ONLY public.headers
|
|
|
|
ADD CONSTRAINT eth_nodes_fk FOREIGN KEY (eth_node_id) REFERENCES public.eth_nodes(id) ON DELETE CASCADE;
|
|
|
|
|
|
|
|
|
2018-01-16 15:11:23 +00:00
|
|
|
--
|
|
|
|
-- Name: blocks node_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.blocks
|
|
|
|
ADD CONSTRAINT node_fk FOREIGN KEY (eth_node_id) REFERENCES public.eth_nodes(id) ON DELETE CASCADE;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- Name: logs receipts_fk; Type: FK CONSTRAINT; Schema: public; Owner: -
|
|
|
|
--
|
|
|
|
|
2018-04-11 16:02:29 +00:00
|
|
|
ALTER TABLE ONLY public.logs
|
|
|
|
ADD CONSTRAINT receipts_fk FOREIGN KEY (receipt_id) REFERENCES public.receipts(id) ON DELETE CASCADE;
|
2018-01-16 15:11:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
-- PostgreSQL database dump complete
|
2019-01-28 22:52:47 +00:00
|
|
|
--
|
|
|
|
|