\q
--
-- PostgreSQL database dump
--

-- Dumped from database version 15.13
-- Dumped by pg_dump version 15.13

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- Name: test; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA test;


ALTER SCHEMA test OWNER TO postgres;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: person; Type: TABLE; Schema: test; Owner: postgres
--

CREATE TABLE test.person (
    id integer NOT NULL,
    name text NOT NULL
)
INHERITS (common.created_at);


ALTER TABLE test.person OWNER TO postgres;

--
-- Name: employee; Type: TABLE; Schema: test; Owner: postgres
--

CREATE TABLE test.employee (
    id integer,
    salary integer
)
INHERITS (common.created_at, test.person);


ALTER TABLE test.employee OWNER TO postgres;

--
-- Name: employee2; Type: TABLE; Schema: test; Owner: postgres
--

CREATE TABLE test.employee2 (
    id integer,
    salary integer
)
INHERITS (common.created_at, test.person);


ALTER TABLE test.employee2 OWNER TO postgres;

--
-- Name: employee2_id_seq; Type: SEQUENCE; Schema: test; Owner: postgres
--

CREATE SEQUENCE test.employee2_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE test.employee2_id_seq OWNER TO postgres;

--
-- Name: employee2_id_seq; Type: SEQUENCE OWNED BY; Schema: test; Owner: postgres
--

ALTER SEQUENCE test.employee2_id_seq OWNED BY test.employee2.id;


--
-- Name: employee_id_seq; Type: SEQUENCE; Schema: test; Owner: postgres
--

CREATE SEQUENCE test.employee_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE test.employee_id_seq OWNER TO postgres;

--
-- Name: employee_id_seq; Type: SEQUENCE OWNED BY; Schema: test; Owner: postgres
--

ALTER SEQUENCE test.employee_id_seq OWNED BY test.employee.id;


--
-- Name: person_id_seq; Type: SEQUENCE; Schema: test; Owner: postgres
--

CREATE SEQUENCE test.person_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER TABLE test.person_id_seq OWNER TO postgres;

--
-- Name: person_id_seq; Type: SEQUENCE OWNED BY; Schema: test; Owner: postgres
--

ALTER SEQUENCE test.person_id_seq OWNED BY test.person.id;


--
-- Name: employee created_at; Type: DEFAULT; Schema: test; Owner: postgres
--

ALTER TABLE ONLY test.employee ALTER COLUMN created_at SET DEFAULT now();


--
-- Name: employee id; Type: DEFAULT; Schema: test; Owner: postgres
--

ALTER TABLE ONLY test.employee ALTER COLUMN id SET DEFAULT nextval('test.employee_id_seq'::regclass);


--
-- Name: employee2 created_at; Type: DEFAULT; Schema: test; Owner: postgres
--

ALTER TABLE ONLY test.employee2 ALTER COLUMN created_at SET DEFAULT now();


--
-- Name: employee2 id; Type: DEFAULT; Schema: test; Owner: postgres
--

ALTER TABLE ONLY test.employee2 ALTER COLUMN id SET DEFAULT nextval('test.employee2_id_seq'::regclass);


--
-- Name: person created_at; Type: DEFAULT; Schema: test; Owner: postgres
--

ALTER TABLE ONLY test.person ALTER COLUMN created_at SET DEFAULT now();


--
-- Name: person id; Type: DEFAULT; Schema: test; Owner: postgres
--

ALTER TABLE ONLY test.person ALTER COLUMN id SET DEFAULT nextval('test.person_id_seq'::regclass);


--
-- Name: employee employee_pkey; Type: CONSTRAINT; Schema: test; Owner: postgres
--

ALTER TABLE ONLY test.employee
    ADD CONSTRAINT employee_pkey PRIMARY KEY (id);


--
-- Name: person person_pkey; Type: CONSTRAINT; Schema: test; Owner: postgres
--

ALTER TABLE ONLY test.person
    ADD CONSTRAINT person_pkey PRIMARY KEY (id);


--
-- PostgreSQL database dump complete
--

