Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- PostgreSQL database dump
- --
- -- Dumped from database version 12.2
- -- Dumped by pg_dump version 12.2
- 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: adminpack; Type: EXTENSION; Schema: -; Owner: -
- --
- CREATE EXTENSION IF NOT EXISTS adminpack WITH SCHEMA pg_catalog;
- --
- -- Name: EXTENSION adminpack; Type: COMMENT; Schema: -; Owner:
- --
- COMMENT ON EXTENSION adminpack IS 'administrative functions for PostgreSQL';
- SET default_tablespace = '';
- SET default_table_access_method = heap;
- --
- -- Name: users; Type: TABLE; Schema: public; Owner: postgres
- --
- CREATE TABLE public.users (
- id integer NOT NULL,
- userdata_id integer,
- username character varying NOT NULL,
- password character varying NOT NULL
- );
- --
- -- Name: Users_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
- --
- CREATE SEQUENCE public."Users_id_seq"
- AS integer
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
- --
- -- Name: Users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
- --
- ALTER SEQUENCE public."Users_id_seq" OWNED BY public.users.id;
- --
- -- Name: content; Type: TABLE; Schema: public; Owner: postgres
- --
- CREATE TABLE public.content (
- id integer NOT NULL,
- content_url character varying NOT NULL,
- content_type character varying NOT NULL
- );
- --
- -- Name: content_content_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
- --
- CREATE SEQUENCE public.content_content_id_seq
- AS integer
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
- --
- -- Name: content_content_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
- --
- ALTER SEQUENCE public.content_content_id_seq OWNED BY public.content.id;
- --
- -- Name: topic; Type: TABLE; Schema: public; Owner: postgres
- --
- CREATE TABLE public.topic (
- id integer NOT NULL,
- content_id integer,
- topic_name character varying NOT NULL
- );
- --
- -- Name: topic_topic_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
- --
- CREATE SEQUENCE public.topic_topic_id_seq
- AS integer
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
- --
- -- Name: topic_topic_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
- --
- ALTER SEQUENCE public.topic_topic_id_seq OWNED BY public.topic.id;
- --
- -- Name: content id; Type: DEFAULT; Schema: public; Owner: postgres
- --
- ALTER TABLE ONLY public.content ALTER COLUMN id SET DEFAULT nextval('public.content_content_id_seq'::regclass);
- --
- -- Name: topic id; Type: DEFAULT; Schema: public; Owner: postgres
- --
- ALTER TABLE ONLY public.topic ALTER COLUMN id SET DEFAULT nextval('public.topic_topic_id_seq'::regclass);
- --
- -- Name: users id; Type: DEFAULT; Schema: public; Owner: postgres
- --
- ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public."Users_id_seq"'::regclass);
- --
- -- Name: users Users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
- --
- ALTER TABLE ONLY public.users
- ADD CONSTRAINT "Users_pkey" PRIMARY KEY (id);
- --
- -- Name: content content_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
- --
- ALTER TABLE ONLY public.content
- ADD CONSTRAINT content_pkey PRIMARY KEY (id);
- --
- -- Name: topic topic_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
- --
- ALTER TABLE ONLY public.topic
- ADD CONSTRAINT topic_pkey PRIMARY KEY (id);
- --
- -- Name: topic content_fk; Type: FK CONSTRAINT; Schema: public; Owner: postgres
- --
- ALTER TABLE ONLY public.topic
- ADD CONSTRAINT content_fk FOREIGN KEY (content_id) REFERENCES public.content(id);
- --
- -- PostgreSQL database dump complete
- --
Add Comment
Please, Sign In to add comment