-
Notifications
You must be signed in to change notification settings - Fork 59
/
singers.pg_dump
145 lines (107 loc) · 3.01 KB
/
singers.pg_dump
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.6.16
-- Dumped by pg_dump version 12.2 (Debian 12.2-4)
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;
SET default_tablespace = '';
--
-- Name: albums; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.albums (
singerid bigint NOT NULL,
albumid bigint NOT NULL,
albumtitle text,
releasedate date
);
ALTER TABLE public.albums OWNER TO postgres;
--
-- Name: singers; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.singers (
singerid bigint NOT NULL,
firstname text,
lastname text,
birthdate date
);
ALTER TABLE public.singers OWNER TO postgres;
--
-- Name: songs; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.songs (
singerid bigint NOT NULL,
albumid bigint NOT NULL,
trackid bigint NOT NULL,
songname text
);
ALTER TABLE public.songs OWNER TO postgres;
--
-- Data for Name: albums; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.albums (singerid, albumid, albumtitle, releasedate) FROM stdin;
1 1 Total Junk 2014-03-02
1 2 Go Go Go 2011-02-09
2 1 Green 2012-09-17
2 2 Forever Hold Your Peace 2010-10-15
2 3 Terrified 2008-06-07
3 1 Nothing To Do With Me 2014-04-29
4 1 Play 2013-12-21
\.
--
-- Data for Name: singers; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.singers (singerid, firstname, lastname, birthdate) FROM stdin;
1 Marc Richards 1970-09-03
2 Catalina Smith 1990-08-17
3 Alice Trentor 1991-10-02
4 Lea Martin 1991-11-09
5 David Lomond 1977-01-29
\.
--
-- Data for Name: songs; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.songs (singerid, albumid, trackid, songname) FROM stdin;
2 1 1 Let's Get Back Together
2 1 3 I Knew You Were Magic
2 1 6 Nothing Is The Same
2 1 7 The Second Time
2 3 1 Fight Story
3 1 1 Not About The Guitar
2 1 2 Starting Again
2 1 5 Blue
2 1 4 42
\.
--
-- Name: albums albums_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.albums
ADD CONSTRAINT albums_pkey PRIMARY KEY (singerid, albumid);
--
-- Name: singers singers_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.singers
ADD CONSTRAINT singers_pkey PRIMARY KEY (singerid);
--
-- Name: songs songs_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.songs
ADD CONSTRAINT songs_pkey PRIMARY KEY (singerid, albumid, trackid);
--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: cloudsqlsuperuser
--
REVOKE ALL ON SCHEMA public FROM cloudsqladmin;
REVOKE ALL ON SCHEMA public FROM PUBLIC;
GRANT ALL ON SCHEMA public TO cloudsqlsuperuser;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- PostgreSQL database dump complete
--