Repository navigation
Expand file tree
/
Copy pathcolorsdb.sql
More file actions
executable file
·227 lines (167 loc) · 4.23 KB
/
Copy pathcolorsdb.sql
File metadata and controls
executable file
·227 lines (167 loc) · 4.23 KB
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
--
-- PostgreSQL database dump
--
-- Dumped from database version 17.4
-- Dumped by pg_dump version 17.4
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_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 = '';
SET default_table_access_method = heap;
--
-- Name: color; Type: TABLE; Schema: public; Owner: root
--
CREATE TABLE public.color (
id bigint NOT NULL,
color character varying(255)
);
ALTER TABLE public.color OWNER TO root;
--
-- Name: color_seq; Type: SEQUENCE; Schema: public; Owner: root
--
CREATE SEQUENCE public.color_seq
START WITH 1
INCREMENT BY 50
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE public.color_seq OWNER TO root;
--
-- Name: pixel; Type: TABLE; Schema: public; Owner: root
--
CREATE TABLE public.pixel (
id bigint NOT NULL,
color character varying(255),
"timestamp" bigint,
x integer,
y integer,
user_id bigint NOT NULL
);
ALTER TABLE public.pixel OWNER TO root;
--
-- Name: pixel_seq; Type: SEQUENCE; Schema: public; Owner: root
--
CREATE SEQUENCE public.pixel_seq
START WITH 1
INCREMENT BY 50
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE public.pixel_seq OWNER TO root;
--
-- Name: users; Type: TABLE; Schema: public; Owner: root
--
CREATE TABLE public.users (
id bigint NOT NULL,
email character varying(255),
name character varying(255),
picture character varying(255),
status character varying(255),
subject character varying(255)
);
ALTER TABLE public.users OWNER TO root;
--
-- Name: users_seq; Type: SEQUENCE; Schema: public; Owner: root
--
CREATE SEQUENCE public.users_seq
START WITH 1
INCREMENT BY 50
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE public.users_seq OWNER TO root;
--
-- Data for Name: color; Type: TABLE DATA; Schema: public; Owner: root
--
COPY public.color (id, color) FROM stdin;
1 #6d001a
2 #be0039
3 #ff4500
4 #ffa800
5 #ffd635
6 #fff8b8
7 #00a368
8 #00cc78
9 #7eed56
10 #00756f
11 #009eaa
12 #00ccc0
13 #2450a4
14 #3690ea
15 #51e9f4
16 #493ac1
17 #6a5cff
18 #94b3ff
19 #811e9f
20 #b44ac0
21 #e4abff
22 #de107f
23 #ff3881
24 #ff99aa
25 #6d482f
26 #9c6926
27 #ffb470
28 #000000
29 #515252
30 #898d90
31 #d4d7d9
32 #ffffff
\.
--
-- Data for Name: pixel; Type: TABLE DATA; Schema: public; Owner: root
--
COPY public.pixel (id, color, "timestamp", x, y, user_id) FROM stdin;
1 rgb(109, 0, 26) 1746219958479 146 122 1
2 rgb(109, 0, 26) 1746220480546 129 138 1
52 rgb(109, 0, 26) 1746220577399 104 145 1
53 rgb(109, 0, 26) 1746220591536 68 147 1
\.
--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: root
--
COPY public.users (id, email, name, picture, status, subject) FROM stdin;
1 mizentui@gmail.com Денис Скробот https://lh3.googleusercontent.com/a/ACg8ocLwg-KsLrFRKlHrSc6fw1ySkESQHvtGcayuGy6fvnIulpMQM4kp=s96-c owner 104162136125914744512
\.
--
-- Name: color_seq; Type: SEQUENCE SET; Schema: public; Owner: root
--
SELECT pg_catalog.setval('public.color_seq', 1, false);
--
-- Name: pixel_seq; Type: SEQUENCE SET; Schema: public; Owner: root
--
SELECT pg_catalog.setval('public.pixel_seq', 101, true);
--
-- Name: users_seq; Type: SEQUENCE SET; Schema: public; Owner: root
--
SELECT pg_catalog.setval('public.users_seq', 1, true);
--
-- Name: color color_pkey; Type: CONSTRAINT; Schema: public; Owner: root
--
ALTER TABLE ONLY public.color
ADD CONSTRAINT color_pkey PRIMARY KEY (id);
--
-- Name: pixel pixel_pkey; Type: CONSTRAINT; Schema: public; Owner: root
--
ALTER TABLE ONLY public.pixel
ADD CONSTRAINT pixel_pkey PRIMARY KEY (id);
--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: root
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
--
-- Name: pixel fkrujxdjtv4m312621ndjnf0hk7; Type: FK CONSTRAINT; Schema: public; Owner: root
--
ALTER TABLE ONLY public.pixel
ADD CONSTRAINT fkrujxdjtv4m312621ndjnf0hk7 FOREIGN KEY (user_id) REFERENCES public.users(id);
--
-- PostgreSQL database dump complete
--