- Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsample_data.pgsql
More file actions
Latest commit
215 lines (163 loc) · 14.4 KB
/
Copy pathsample_data.pgsql
File metadata and controls
215 lines (163 loc) · 14.4 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
--
-- 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;
SELECTpg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Data for Name: admin_client; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTOpublic.admin_client (id, firstname, surname, phone, email, note, active) VALUES (3, 'Vladimír', 'Novotný', '', '', '', true);
INSERT INTOpublic.admin_client (id, firstname, surname, phone, email, note, active) VALUES (2, 'Jan', 'Novák', '', '', '', false);
INSERT INTOpublic.admin_client (id, firstname, surname, phone, email, note, active) VALUES (4, 'Lukáš', 'Rod', '111222333', 'info@lukasrod.cz', ':)', true);
INSERT INTOpublic.admin_client (id, firstname, surname, phone, email, note, active) VALUES (1, 'Pavel', 'Rod', '777777777', 'test@test.cz', 'grafomotorika', true);
INSERT INTOpublic.admin_client (id, firstname, surname, phone, email, note, active) VALUES (5, 'Anna', 'Horáková', '', '', 'doporučení od logo', true);
--
-- Data for Name: admin_course; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTOpublic.admin_course (id, name, visible, duration, color) VALUES (1, 'Feuersteinova metoda', true, 30, '#2EA0BA');
INSERT INTOpublic.admin_course (id, name, visible, duration, color) VALUES (2, 'Kurz Slabika', true, 30, '#D2527F');
INSERT INTOpublic.admin_course (id, name, visible, duration, color) VALUES (3, 'RoPraTem', true, 40, '#C0392B');
INSERT INTOpublic.admin_course (id, name, visible, duration, color) VALUES (4, 'Máme doma leváka', false, 20, '#446CB3');
INSERT INTOpublic.admin_course (id, name, visible, duration, color) VALUES (5, 'Rozvoj grafomotoriky', true, 30, '#F39C12');
--
-- Data for Name: admin_application; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTOpublic.admin_application (id, note, client_id, course_id, created_at) VALUES (1, 'od srpna 2019', 1, 1, '2019-07-05');
INSERT INTOpublic.admin_application (id, note, client_id, course_id, created_at) VALUES (2, 'od března 2020', 3, 2, '2020-01-30');
INSERT INTOpublic.admin_application (id, note, client_id, course_id, created_at) VALUES (3, 'v březnu 2019 se neozvali, skupina s Vláďou', 2, 2, '2019-02-01');
--
-- Data for Name: admin_attendancestate; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTOpublic.admin_attendancestate (id, name, visible, "default", excused) VALUES (1, 'OK', true, true, false);
INSERT INTOpublic.admin_attendancestate (id, name, visible, "default", excused) VALUES (2, 'omluven', true, false, true);
INSERT INTOpublic.admin_attendancestate (id, name, visible, "default", excused) VALUES (3, 'nepřišel', true, false, false);
--
-- Data for Name: admin_group; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTOpublic.admin_group (id, name, course_id, active) VALUES (1, 'Kurz Slabika 1', 2, true);
INSERT INTOpublic.admin_group (id, name, course_id, active) VALUES (2, 'Kurz Slabika 2', 2, false);
INSERT INTOpublic.admin_group (id, name, course_id, active) VALUES (3, 'RoPraTem 1', 3, true);
INSERT INTOpublic.admin_group (id, name, course_id, active) VALUES (4, 'GMT 1', 5, true);
--
-- Data for Name: admin_lecture; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (5, NULL, 30, 1, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (4, date_trunc('week', current_date) + INTERVAL '1 day'+TIME'11:00', 30, 1, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (7, date_trunc('week', current_date) + INTERVAL '1 day'+TIME'16:00', 30, 1, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (8, date_trunc('week', current_date) + INTERVAL '1 day'+TIME'17:00', 30, 1, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (9, NULL, 30, 1, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (6, date_trunc('week', current_date) + INTERVAL '1 day'+TIME'18:00', 30, 1, NULL, true);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (2, NULL, 40, 3, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (10, date_trunc('week', current_date) + INTERVAL '1 day'+TIME'19:00', 40, 3, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (1, date_trunc('week', current_date) + INTERVAL '2 day'+TIME'14:00', 32, 1, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (12, date_trunc('week', current_date) + INTERVAL '2 day'+TIME'16:00', 45, 2, 1, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (11, date_trunc('week', current_date) + INTERVAL '2 day'+TIME'17:00', 45, 2, 1, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (13, date_trunc('week', current_date) + INTERVAL '2 day'+TIME'18:00', 45, 2, 1, true);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (14, date_trunc('week', current_date) + INTERVAL '2 day'+TIME'19:00', 45, 2, 2, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (15, date_trunc('week', current_date) + INTERVAL '4 day'+TIME'15:00', 45, 2, 2, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (16, date_trunc('week', current_date) + INTERVAL '4 day'+TIME'16:00', 45, 2, 2, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (17, date_trunc('week', current_date) + INTERVAL '4 day'+TIME'17:00', 45, 2, 2, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (18, date_trunc('week', current_date) + INTERVAL '4 day'+TIME'19:00', 45, 2, 2, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (20, NULL, 30, 5, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (19, date_trunc('week', current_date) + INTERVAL '7 day'+TIME'10:00', 35, 5, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (22, date_trunc('week', current_date) - INTERVAL '7 day'+TIME'9:00', 45, 5, 4, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (21, date_trunc('week', current_date) + INTERVAL '9 day'+TIME'8:00', 45, 5, 4, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (23, current_date+TIME'14:00', 32, 1, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (24, current_date+TIME'12:00', 32, 1, NULL, false);
INSERT INTOpublic.admin_lecture (id, start, duration, course_id, group_id, canceled) VALUES (25, current_date+TIME'8:00', 45, 5, 4, false);
--
-- Data for Name: admin_attendance; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (5, true, 1, 3, 5, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (4, true, 1, 3, 4, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (7, false, 1, 3, 7, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (8, false, 1, 3, 8, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (6, true, 2, 3, 6, 'matka nestíhá - vrací se z tábora');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (9, true, 1, 3, 9, 'Náhrada lekce (10. 7. 2019)');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (2, true, 1, 1, 2, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (10, false, 1, 1, 10, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (1, true, 1, 1, 1, 'půjčen bzučák');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (11, true, 1, 3, 11, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (13, true, 1, 3, 12, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (14, true, 1, 1, 12, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (12, true, 3, 1, 11, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (15, true, 2, 3, 13, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (16, true, 2, 1, 13, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (18, true, 1, 1, 14, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (17, true, 1, 3, 14, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (20, true, 1, 1, 15, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (19, true, 1, 3, 15, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (21, true, 1, 3, 16, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (22, true, 1, 1, 16, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (23, true, 1, 3, 17, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (24, true, 1, 1, 17, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (25, true, 1, 3, 18, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (26, true, 1, 1, 18, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (28, true, 1, 5, 20, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (27, true, 1, 5, 19, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (30, true, 1, 4, 21, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (31, true, 1, 5, 22, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (32, false, 1, 4, 22, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (33, false, 1, 1, 22, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (29, false, 2, 5, 21, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (34, true, 1, 1, 23, 'půjčen bzučák');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (35, true, 1, 1, 24, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (36, false, 2, 5, 25, '');
INSERT INTOpublic.admin_attendance (id, paid, attendancestate_id, client_id, lecture_id, note) VALUES (37, true, 1, 4, 25, 'půjčena kniha');
--
-- Data for Name: admin_membership; Type: TABLE DATA; Schema: public; Owner: postgres
--
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (4, 3, 1, 1);
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (1, 1, 1, 3);
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (6, 3, 2, 7);
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (5, 1, 2, 5);
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (7, 2, 3, 0);
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (8, 4, 3, 0);
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (9, 4, 4, 0);
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (10, 5, 4, 0);
INSERT INTOpublic.admin_membership (id, client_id, group_id, prepaid_cnt) VALUES (11, 1, 4, 0);
--
-- Name: admin_application_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECTpg_catalog.setval('public.admin_application_id_seq', 3, true);
--
-- Name: admin_attendance_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECTpg_catalog.setval('public.admin_attendance_id_seq', 37, true);
--
-- Name: admin_attendancestate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECTpg_catalog.setval('public.admin_attendancestate_id_seq', 3, true);
--
-- Name: admin_client_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECTpg_catalog.setval('public.admin_client_id_seq', 5, true);
--
-- Name: admin_course_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECTpg_catalog.setval('public.admin_course_id_seq', 5, true);
--
-- Name: admin_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECTpg_catalog.setval('public.admin_group_id_seq', 4, true);
--
-- Name: admin_lecture_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECTpg_catalog.setval('public.admin_lecture_id_seq', 25, true);
--
-- Name: admin_membership_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECTpg_catalog.setval('public.admin_membership_id_seq', 11, true);
--
-- PostgreSQL database dump complete
--