-
Notifications
You must be signed in to change notification settings - Fork 0
/
books.sql
100 lines (71 loc) · 2.1 KB
/
books.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.3
-- Dumped by pg_dump version 10.3
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 client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: books; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.books (
id integer NOT NULL,
title character varying(100),
primary_author character varying(100)
);
ALTER TABLE public.books OWNER TO postgres;
--
-- Name: books_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.books_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.books_id_seq OWNER TO postgres;
--
-- Name: books_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.books_id_seq OWNED BY public.books.id;
--
-- Name: books id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.books ALTER COLUMN id SET DEFAULT nextval('public.books_id_seq'::regclass);
--
-- Data for Name: books; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.books (id, title, primary_author) FROM stdin;
1 The Hobbit Tollkien
2 Pan Tadeusz Adam Mickiewicz
3 Romeo and Juliet William Shaskespeare
4 The Old Curiosity Shop Charles Dickens
5 Far From the Madding Crowd Thomas Hardy
6 E.M. Forster A Passage to India
7 Dulce et Decorum Est Wilfred Owen
8 Brideshead Revisited Evelyn Waugh
9 The Lord of the Rings Tolkien
10 the Queen of Crime Agatha Christi
\.
--
-- Name: books_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.books_id_seq', 1, true);
--
-- Name: books szymon; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.books
ADD CONSTRAINT szymon PRIMARY KEY (id);
--
-- PostgreSQL database dump complete
--