--
--


--
-- 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';





--
-- Name: price; Type: TABLE; Schema: public; Owner: edb; Tablespace: 
--

CREATE TABLE price (
    id integer NOT NULL,
    active boolean NOT NULL,
    price numeric
);


ALTER TABLE public.price OWNER TO edb;

--
-- Name: v2; Type: VIEW; Schema: public; Owner: edb
--

CREATE VIEW v2 AS
    SELECT price AS price FROM price;


ALTER TABLE public.v2 OWNER TO edb;

--
-- Data for Name: price; Type: TABLE DATA; Schema: public; Owner: edb
--

INSERT INTO price VALUES (1, false, 42);
INSERT INTO price VALUES (10, false, 100);
INSERT INTO price VALUES (11, true, 17.99);


--
-- Name: price_pkey; Type: CONSTRAINT; Schema: public; Owner: edb; Tablespace: 
--

ALTER TABLE ONLY price
    ADD CONSTRAINT price_pkey PRIMARY KEY (id);


--
-- Name: public; Type: ACL; Schema: -; Owner: edb
--

REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM edb;
GRANT ALL ON SCHEMA public TO edb;
GRANT ALL ON SCHEMA public TO PUBLIC;


--
--
