-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdummydata.sql
More file actions
408 lines (275 loc) · 9.91 KB
/
Copy pathdummydata.sql
File metadata and controls
408 lines (275 loc) · 9.91 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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
--
-- PostgreSQL database dump
--
-- Dumped from database version 13.0
-- Dumped by pg_dump version 13.0
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 = '';
SET default_table_access_method = heap;
--
-- Name: projects; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.projects (
id integer NOT NULL,
title character varying NOT NULL,
text character varying NOT NULL,
colorhex character varying NOT NULL,
"createdAt" timestamp without time zone DEFAULT now() NOT NULL,
"updatedAt" timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.projects OWNER TO postgres;
--
-- Name: projects_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.projects_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.projects_id_seq OWNER TO postgres;
--
-- Name: projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.projects_id_seq OWNED BY public.projects.id;
--
-- Name: read; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.read (
id integer NOT NULL,
title character varying NOT NULL,
text character varying NOT NULL,
"creatorId" integer NOT NULL,
"createdAt" timestamp without time zone DEFAULT now() NOT NULL,
"updatedAt" timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.read OWNER TO postgres;
--
-- Name: read_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.read_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.read_id_seq OWNER TO postgres;
--
-- Name: read_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.read_id_seq OWNED BY public.read.id;
--
-- Name: timer; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.timer (
id integer NOT NULL,
title character varying NOT NULL,
text character varying NOT NULL,
starttime timestamp without time zone NOT NULL,
"createdAt" timestamp without time zone DEFAULT now() NOT NULL,
"updatedAt" timestamp without time zone DEFAULT now() NOT NULL,
endtime timestamp without time zone,
complete boolean NOT NULL,
"projectId" integer NOT NULL
);
ALTER TABLE public.timer OWNER TO postgres;
--
-- Name: timer_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.timer_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.timer_id_seq OWNER TO postgres;
--
-- Name: timer_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.timer_id_seq OWNED BY public.timer.id;
--
-- Name: timers; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.timers (
id integer NOT NULL,
title character varying NOT NULL,
text character varying NOT NULL,
starttime timestamp without time zone NOT NULL,
"createdAt" timestamp without time zone DEFAULT now() NOT NULL,
"updatedAt" timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public.timers OWNER TO postgres;
--
-- Name: timers_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.timers_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.timers_id_seq OWNER TO postgres;
--
-- Name: timers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.timers_id_seq OWNED BY public.timers.id;
--
-- Name: user; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public."user" (
id integer NOT NULL,
username character varying NOT NULL,
email character varying NOT NULL,
password character varying NOT NULL,
"createdAt" timestamp without time zone DEFAULT now() NOT NULL,
"updatedAt" timestamp without time zone DEFAULT now() NOT NULL
);
ALTER TABLE public."user" OWNER TO postgres;
--
-- Name: user_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.user_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.user_id_seq OWNER TO postgres;
--
-- Name: user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.user_id_seq OWNED BY public."user".id;
--
-- Name: projects id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.projects ALTER COLUMN id SET DEFAULT nextval('public.projects_id_seq'::regclass);
--
-- Name: read id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.read ALTER COLUMN id SET DEFAULT nextval('public.read_id_seq'::regclass);
--
-- Name: timer id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.timer ALTER COLUMN id SET DEFAULT nextval('public.timer_id_seq'::regclass);
--
-- Name: timers id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.timers ALTER COLUMN id SET DEFAULT nextval('public.timers_id_seq'::regclass);
--
-- Name: user id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public."user" ALTER COLUMN id SET DEFAULT nextval('public.user_id_seq'::regclass);
--
-- Data for Name: projects; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.projects (id, title, text, colorhex, "createdAt", "updatedAt") FROM stdin;
1 Work body #0000 2021-06-15 00:30:55.38937 2021-06-15 00:30:55.38937
2 Play body #1111 2021-06-17 00:50:30.565605 2021-06-17 00:50:30.565605
\.
--
-- Data for Name: read; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.read (id, title, text, "creatorId", "createdAt", "updatedAt") FROM stdin;
\.
--
-- Data for Name: timer; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.timer (id, title, text, starttime, "createdAt", "updatedAt", endtime, complete, "projectId") FROM stdin;
31 New Timer Test TEST 2021-06-15 00:30:55.389 2021-06-16 14:48:34.03253 2021-06-17 13:06:47.97752 2021-06-17 13:06:47.965 t 1
32 Timer 2 TEST 2021-06-15 00:30:55.389 2021-06-16 19:53:11.871289 2021-06-17 13:06:52.530298 2021-06-17 13:06:52.525 t 1
33 Timer 3 TEST 2021-06-15 00:30:55.389 2021-06-16 20:04:08.26324 2021-06-17 13:06:54.261713 2021-06-17 13:06:54.256 t 1
34 new play test test 2021-06-17 15:08:33.143 2021-06-17 15:08:33.196699 2021-06-17 15:09:08.183742 2021-06-17 15:09:08.177 t 2
\.
--
-- Data for Name: timers; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.timers (id, title, text, starttime, "createdAt", "updatedAt") FROM stdin;
\.
--
-- Data for Name: user; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public."user" (id, username, email, password, "createdAt", "updatedAt") FROM stdin;
1 test2 test2@test.com $argon2i$v=19$m=4096,t=3,p=1$YdqFGcTXrs+QjoIvCuakLw$kK2YWzLZQ0fCrz1VMWHh4VGqv5nt1NtBQ7WqalfhRRM 2021-05-31 13:44:12.506762 2021-05-31 13:44:12.506762
\.
--
-- Name: projects_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.projects_id_seq', 2, true);
--
-- Name: read_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.read_id_seq', 1, false);
--
-- Name: timer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.timer_id_seq', 34, true);
--
-- Name: timers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.timers_id_seq', 1, false);
--
-- Name: user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.user_id_seq', 1, true);
--
-- Name: projects PK_6271df0a7aed1d6c0691ce6ac50; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.projects
ADD CONSTRAINT "PK_6271df0a7aed1d6c0691ce6ac50" PRIMARY KEY (id);
--
-- Name: read PK_a41d9620e3769b9c07b52fe1e77; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.read
ADD CONSTRAINT "PK_a41d9620e3769b9c07b52fe1e77" PRIMARY KEY (id);
--
-- Name: timer PK_b476163e854c74bff55b29d320a; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.timer
ADD CONSTRAINT "PK_b476163e854c74bff55b29d320a" PRIMARY KEY (id);
--
-- Name: user PK_cace4a159ff9f2512dd42373760; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public."user"
ADD CONSTRAINT "PK_cace4a159ff9f2512dd42373760" PRIMARY KEY (id);
--
-- Name: timers PK_d13ea0d2fe75274ca5a9576aae6; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.timers
ADD CONSTRAINT "PK_d13ea0d2fe75274ca5a9576aae6" PRIMARY KEY (id);
--
-- Name: user UQ_78a916df40e02a9deb1c4b75edb; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public."user"
ADD CONSTRAINT "UQ_78a916df40e02a9deb1c4b75edb" UNIQUE (username);
--
-- Name: user UQ_e12875dfb3b1d92d7d7c5377e22; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public."user"
ADD CONSTRAINT "UQ_e12875dfb3b1d92d7d7c5377e22" UNIQUE (email);
--
-- Name: timer FK_a4834ea05ab2215338b74ea9ede; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.timer
ADD CONSTRAINT "FK_a4834ea05ab2215338b74ea9ede" FOREIGN KEY ("projectId") REFERENCES public.projects(id);
--
-- Name: read FK_a99172db4e0598f9f16e633b4f5; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.read
ADD CONSTRAINT "FK_a99172db4e0598f9f16e633b4f5" FOREIGN KEY ("creatorId") REFERENCES public."user"(id);
--
-- PostgreSQL database dump complete
--