forked from muesli-hd/muesli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
muesli.sql
1300 lines (872 loc) · 36 KB
/
muesli.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
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
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- PostgreSQL database dump
--
-- Dumped from database version 11.2 (Debian 11.2-1.pgdg90+1)
-- Dumped by pg_dump version 11.2 (Debian 11.2-1.pgdg90+1)
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: alembic_version; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.alembic_version (
version_num character varying(32) NOT NULL
);
ALTER TABLE public.alembic_version OWNER TO postgres;
--
-- Name: beaker_cache; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.beaker_cache (
namespace character varying(255) NOT NULL,
accessed timestamp without time zone NOT NULL,
created timestamp without time zone NOT NULL,
data bytea NOT NULL
);
ALTER TABLE public.beaker_cache OWNER TO postgres;
--
-- Name: bearertokens; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.bearertokens (
id integer NOT NULL,
client text,
user_id integer,
scopes text,
access_token character varying(100),
refresh_token character varying(100),
expires timestamp without time zone,
description text,
revoked boolean
);
ALTER TABLE public.bearertokens OWNER TO postgres;
--
-- Name: bearertokens_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.bearertokens_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bearertokens_id_seq OWNER TO postgres;
--
-- Name: bearertokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.bearertokens_id_seq OWNED BY public.bearertokens.id;
--
-- Name: confirmations; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.confirmations (
hash character varying(40) NOT NULL,
"user" integer NOT NULL,
source text NOT NULL,
what text,
created_on timestamp without time zone NOT NULL
);
ALTER TABLE public.confirmations OWNER TO postgres;
--
-- Name: email_preferences; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.email_preferences (
user_id integer NOT NULL,
lecture_id integer NOT NULL,
receive_status_mails boolean NOT NULL
);
ALTER TABLE public.email_preferences OWNER TO postgres;
--
-- Name: exam_admissions; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.exam_admissions (
exam integer NOT NULL,
student integer NOT NULL,
admission boolean,
registration boolean,
medical_certificate boolean
);
ALTER TABLE public.exam_admissions OWNER TO postgres;
--
-- Name: exams; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.exams (
id integer NOT NULL,
lecture integer,
name text,
category text NOT NULL,
admission boolean,
registration boolean,
medical_certificate boolean,
url text,
results_hidden boolean
);
ALTER TABLE public.exams OWNER TO postgres;
--
-- Name: exams_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.exams_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.exams_id_seq OWNER TO postgres;
--
-- Name: exams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.exams_id_seq OWNED BY public.exams.id;
--
-- Name: exercise_students; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.exercise_students (
exercise integer NOT NULL,
student integer NOT NULL,
points numeric(8,1)
);
ALTER TABLE public.exercise_students OWNER TO postgres;
--
-- Name: exercises; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.exercises (
id integer NOT NULL,
exam integer,
nr integer NOT NULL,
maxpoints numeric(8,1) NOT NULL
);
ALTER TABLE public.exercises OWNER TO postgres;
--
-- Name: exercises_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.exercises_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.exercises_id_seq OWNER TO postgres;
--
-- Name: exercises_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.exercises_id_seq OWNED BY public.exercises.id;
--
-- Name: grading_exams; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.grading_exams (
grading integer NOT NULL,
exam integer NOT NULL
);
ALTER TABLE public.grading_exams OWNER TO postgres;
--
-- Name: gradings; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.gradings (
id integer NOT NULL,
lecture integer NOT NULL,
name text,
formula text,
hispos_type text,
hispos_date text,
examiner_id text
);
ALTER TABLE public.gradings OWNER TO postgres;
--
-- Name: gradings_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.gradings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.gradings_id_seq OWNER TO postgres;
--
-- Name: gradings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.gradings_id_seq OWNED BY public.gradings.id;
--
-- Name: lecture_assistants; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.lecture_assistants (
lecture integer NOT NULL,
assistant integer NOT NULL
);
ALTER TABLE public.lecture_assistants OWNER TO postgres;
--
-- Name: lecture_removed_students; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.lecture_removed_students (
lecture integer NOT NULL,
student integer NOT NULL,
tutorial integer
);
ALTER TABLE public.lecture_removed_students OWNER TO postgres;
--
-- Name: lecture_students; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.lecture_students (
lecture integer NOT NULL,
student integer NOT NULL,
tutorial integer
);
ALTER TABLE public.lecture_students OWNER TO postgres;
--
-- Name: lecture_tutors; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.lecture_tutors (
lecture integer NOT NULL,
tutor integer NOT NULL
);
ALTER TABLE public.lecture_tutors OWNER TO postgres;
--
-- Name: lectures; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.lectures (
id integer NOT NULL,
assistant integer,
name text,
type text NOT NULL,
term character varying(5),
lsf_id text,
lecturer text,
url text,
password text,
is_visible boolean NOT NULL,
mode text NOT NULL,
minimum_preferences integer,
tutor_rights text NOT NULL
);
ALTER TABLE public.lectures OWNER TO postgres;
--
-- Name: lectures_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.lectures_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.lectures_id_seq OWNER TO postgres;
--
-- Name: lectures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.lectures_id_seq OWNED BY public.lectures.id;
--
-- Name: student_grades; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.student_grades (
grading integer NOT NULL,
student integer NOT NULL,
grade numeric(2,1),
CONSTRAINT student_grades_grade_check CHECK (((grade >= 1.0) AND (grade <= 5.0)))
);
ALTER TABLE public.student_grades OWNER TO postgres;
--
-- Name: time_preferences; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.time_preferences (
lecture integer NOT NULL,
student integer NOT NULL,
"time" character varying(7) NOT NULL,
penalty integer
);
ALTER TABLE public.time_preferences OWNER TO postgres;
--
-- Name: tutorial_preferences; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.tutorial_preferences (
lecture integer NOT NULL,
student integer NOT NULL,
tutorial integer NOT NULL,
penalty integer
);
ALTER TABLE public.tutorial_preferences OWNER TO postgres;
--
-- Name: tutorials; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.tutorials (
id integer NOT NULL,
lecture integer,
tutor integer,
place text,
max_students integer NOT NULL,
comment text,
"time" character varying(7),
date date,
is_special boolean NOT NULL
);
ALTER TABLE public.tutorials OWNER TO postgres;
--
-- Name: tutorials_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.tutorials_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.tutorials_id_seq OWNER TO postgres;
--
-- Name: tutorials_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.tutorials_id_seq OWNED BY public.tutorials.id;
--
-- Name: user_has_updated; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.user_has_updated (
user_id integer NOT NULL,
has_updated_info character varying NOT NULL
);
ALTER TABLE public.user_has_updated OWNER TO postgres;
--
-- Name: users; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.users (
id integer NOT NULL,
email character varying(100) NOT NULL,
first_name text NOT NULL,
last_name text NOT NULL,
password text,
matrikel text,
birth_date text,
birth_place text,
subject text,
second_subject text,
title text,
is_admin integer NOT NULL,
is_assistant integer NOT NULL
);
ALTER TABLE public.users OWNER TO postgres;
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.users_id_seq OWNER TO postgres;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
--
-- Name: bearertokens id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.bearertokens ALTER COLUMN id SET DEFAULT nextval('public.bearertokens_id_seq'::regclass);
--
-- Name: exams id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.exams ALTER COLUMN id SET DEFAULT nextval('public.exams_id_seq'::regclass);
--
-- Name: exercises id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.exercises ALTER COLUMN id SET DEFAULT nextval('public.exercises_id_seq'::regclass);
--
-- Name: gradings id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.gradings ALTER COLUMN id SET DEFAULT nextval('public.gradings_id_seq'::regclass);
--
-- Name: lectures id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.lectures ALTER COLUMN id SET DEFAULT nextval('public.lectures_id_seq'::regclass);
--
-- Name: tutorials id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.tutorials ALTER COLUMN id SET DEFAULT nextval('public.tutorials_id_seq'::regclass);
--
-- Name: users id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
--
-- Data for Name: alembic_version; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.alembic_version (version_num) FROM stdin;
d3d8e4c5a116
\.
--
-- Data for Name: beaker_cache; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.beaker_cache (namespace, accessed, created, data) FROM stdin;
954f49634d9546e0a1a5301968e8dbb0 2017-07-26 19:02:29.53619 2017-07-26 19:02:29.15067 \\x80027d7101550773657373696f6e7d710228550b617574682e75736572696471034a87060100550e5f61636365737365645f74696d6571044741d65e32c960ea57550e5f6372656174696f6e5f74696d6571054741d65e32c948fe8b55075f63737266745f7106582800000036373039386239396162303234623033633831643638623137366132333864373961393462623235710775732e
d19c7227c473478b99d8e4c2db462e17 2018-12-01 13:20:31.673958 2018-12-01 12:59:49.184813 \\x8004958e000000000000007d948c0773657373696f6e947d94288c0e5f6372656174696f6e5f74696d65944741d700a1714b90fd8c075f63737266745f948c2862633237396233653861656631666632383635656161653333633366626262303862336638623033948c0e5f61636365737365645f74696d65944741d700a2a7e60c208c0b617574682e757365726964944a8806010075732e
f675d178cb044b668094e14cf2b35403 2019-03-11 22:34:38.671952 2019-03-11 22:34:38.496332 \\x80049559000000000000007d948c0773657373696f6e947d94288c0e5f6372656174696f6e5f74696d65944741d721b89f9f70bd8c0e5f61636365737365645f74696d65944741d721b89fa0ab2e8c0b617574682e757365726964944a8706010075732e
958a4206b3674222995e8027b8751847 2019-03-11 22:39:48.327099 2019-03-11 22:38:58.674897 \\x80049559000000000000007d948c0773657373696f6e947d94288c0e5f6372656174696f6e5f74696d65944741d721b8e0ab21fd8c0e5f61636365737365645f74696d65944741d721b8ed10ed448c0b617574682e757365726964944a8706010075732e
fbff4e43e50b4d4a95af3b3e5e7edc80 2019-03-11 22:52:50.625686 2019-03-11 22:39:51.611467 \\x8004958e000000000000007d948c0773657373696f6e947d94288c0e5f61636365737365645f74696d65944741d721b9b09ee70c8c0b617574682e757365726964944a890601008c075f63737266745f948c2838396138336334643365633838313661336634636532353333326239373235343464653566383462948c0e5f6372656174696f6e5f74696d65944741d721b8ede7117575732e
2a2b9108870b4f54986d3b315d2f94ce 2019-03-11 22:38:48.075214 2019-03-11 22:34:46.497632 \\x8004958e000000000000007d948c0773657373696f6e947d94288c075f63737266745f948c2832313330316662376463353362643130346262663066376138376234313639646433646266373538948c0e5f61636365737365645f74696d65944741d721b8de037f1f8c0b617574682e757365726964944a890601008c0e5f6372656174696f6e5f74696d65944741d721b8a19fc9e275732e
\.
--
-- Data for Name: bearertokens; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.bearertokens (id, client, user_id, scopes, access_token, refresh_token, expires, description, revoked) FROM stdin;
\.
--
-- Data for Name: confirmations; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.confirmations (hash, "user", source, what, created_on) FROM stdin;
b2f1ae65a84224f60c3fea9170fcd950734d80cd 67201 user/register \N 2017-07-26 19:02:28.922528
\.
--
-- Data for Name: email_preferences; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.email_preferences (user_id, lecture_id, receive_status_mails) FROM stdin;
\.
--
-- Data for Name: exam_admissions; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.exam_admissions (exam, student, admission, registration, medical_certificate) FROM stdin;
13415 67209 \N \N \N
13415 67198 \N \N \N
\.
--
-- Data for Name: exams; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.exams (id, lecture, name, category, admission, registration, medical_certificate, url, results_hidden) FROM stdin;
13415 20109 Aufgabenblatt 1 assignment \N \N \N \N f
13416 20109 Aufgabenblatt 2 assignment \N \N \N \N f
\.
--
-- Data for Name: exercise_students; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.exercise_students (exercise, student, points) FROM stdin;
6723 67198 \N
6723 67209 2.0
\.
--
-- Data for Name: exercises; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.exercises (id, exam, nr, maxpoints) FROM stdin;
6723 13415 1 4.0
\.
--
-- Data for Name: grading_exams; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.grading_exams (grading, exam) FROM stdin;
6692 13415
\.
--
-- Data for Name: gradings; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.gradings (id, lecture, name, formula, hispos_type, hispos_date, examiner_id) FROM stdin;
6692 20109 Endnote \N \N \N \N
\.
--
-- Data for Name: lecture_assistants; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.lecture_assistants (lecture, assistant) FROM stdin;
20109 67205
20110 67206
20111 67205
\.
--
-- Data for Name: lecture_removed_students; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.lecture_removed_students (lecture, student, tutorial) FROM stdin;
\.
--
-- Data for Name: lecture_students; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.lecture_students (lecture, student, tutorial) FROM stdin;
20109 67198 46839
20109 67199 46842
20109 67209 46839
\.
--
-- Data for Name: lecture_tutors; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.lecture_tutors (lecture, tutor) FROM stdin;
20109 67204
20109 67203
\.
--
-- Data for Name: lectures; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.lectures (id, assistant, name, type, term, lsf_id, lecturer, url, password, is_visible, mode, minimum_preferences, tutor_rights) FROM stdin;
20109 \N Irgendwas lecture \N \N \N \N geheim t direct \N editOwnTutorial
20110 \N Irgendwas2 lecture \N \N \N \N \N t off \N editOwnTutorial
20111 \N Vorlieben lecture \N \N \N \N \N t prefs \N editOwnTutorial
\.
--
-- Data for Name: student_grades; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.student_grades (grading, student, grade) FROM stdin;
\.
--
-- Data for Name: time_preferences; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.time_preferences (lecture, student, "time", penalty) FROM stdin;
20111 67198 0 14:00 1
\.
--
-- Data for Name: tutorial_preferences; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.tutorial_preferences (lecture, student, tutorial, penalty) FROM stdin;
\.
--
-- Data for Name: tutorials; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.tutorials (id, lecture, tutor, place, max_students, comment, "time", date, is_special) FROM stdin;
46838 20110 67203 In einer weiter entfernten Galaxis 42 \N 0 14:00 \N f
46839 20109 67203 In einer weit entfernten Galaxis 42 \N 0 12:00 \N f
46840 20109 67204 In einer noch weiter entfernten Galaxis 42 \N 0 16:00 \N f
46841 20109 \N In einer noch viel weiter entfernten Galaxis 42 \N 0 18:00 \N f
46842 20109 67203 In einer weit entfernten Galaxis 42 \N 0 14:00 \N f
46843 20111 67204 In einer weit entfernten Galaxis 42 \N 0 14:00 \N f
46844 20111 67204 In einer weiter entfernten Galaxis 42 \N 0 16:00 \N f
\.
--
-- Data for Name: user_has_updated; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.user_has_updated (user_id, has_updated_info) FROM stdin;
67207 0
67209 0
\.
--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.users (id, email, first_name, last_name, password, matrikel, birth_date, birth_place, subject, second_subject, title, is_admin, is_assistant) FROM stdin;
67207 [email protected] Anton Admin efacc4001e857f7eba4ae781c2932dedf843865e 2613945 \N Mathematik (BSc) 1 0
67198 [email protected] StefFan Student c73ba2982c55b7ead0e4098a92f722bdb3a3b3d8 \N \N \N Mathematik (BSc) \N \N 0 0
67199 [email protected] Sigmund Student bd63afe0b3aae9a85c7675a1d989dbca5173abae \N \N \N Mathematik (MSc) \N \N 0 0
67200 [email protected] Sebastian Student 341b837c4300466034eacf88eae22824df7ea507 \N \N \N Mathematik (MSc) \N \N 0 0
67201 [email protected] Ulrich Student \N \N \N \N \N \N \N 0 0
67202 [email protected] Uli Unicode a9946740136442bf7b585747cf2cd871ccd38731 \N \N \N Mathematik (MSc) \N \N 0 0
67203 [email protected] Thorsten Tutor 1e6f622411e5941b720091e34d7182037dbb7135 \N \N \N Mathematik (Dipl.) \N \N 0 0
67204 [email protected] Thor2sten Tu2tor e6d751291b25123d4da3794212021582f2704f83 \N \N \N Mathematik (BSc) \N \N 0 0
67205 [email protected] Armin Assistent 8951365cbe9bc4d747c779d342598e29d06615d4 \N \N \N Mathematik (BSc) \N \N 0 1
67206 [email protected] Armin Assistent2 c8582b7fae27d83a0af8469228d62ad7df7b1996 \N \N \N Mathematik (BSc) \N \N 0 1
67208 [email protected] Test Testerson 7110eda4d09e062aa5e4a390b0a572ac0d2c0220 12332 20.09.1998 Heidelbearsch Mathematik (BSc) \N Herr Graf von und zu 1 0
67209 [email protected] user_with exercise 101aa30d5a6b5e8558d7df3b13e785d59be16cab \N 20.09.1998 Heidelbearsch Mathematik (BSc) \N 0 0
\.
--
-- Name: bearertokens_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.bearertokens_id_seq', 1, false);
--
-- Name: exams_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.exams_id_seq', 13416, true);
--
-- Name: exercises_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.exercises_id_seq', 6723, true);
--
-- Name: gradings_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.gradings_id_seq', 6692, true);
--
-- Name: lectures_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.lectures_id_seq', 20111, true);
--
-- Name: tutorials_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.tutorials_id_seq', 46844, true);
--
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.users_id_seq', 67209, true);
--
-- Name: alembic_version alembic_version_pkc; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.alembic_version
ADD CONSTRAINT alembic_version_pkc PRIMARY KEY (version_num);
--
-- Name: beaker_cache beaker_cache_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.beaker_cache
ADD CONSTRAINT beaker_cache_pkey PRIMARY KEY (namespace);
--
-- Name: bearertokens bearertokens_access_token_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.bearertokens
ADD CONSTRAINT bearertokens_access_token_key UNIQUE (access_token);
--
-- Name: bearertokens bearertokens_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.bearertokens
ADD CONSTRAINT bearertokens_pkey PRIMARY KEY (id);
--
-- Name: bearertokens bearertokens_refresh_token_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.bearertokens
ADD CONSTRAINT bearertokens_refresh_token_key UNIQUE (refresh_token);
--
-- Name: confirmations confirmations_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.confirmations
ADD CONSTRAINT confirmations_pkey PRIMARY KEY (hash);
--
-- Name: email_preferences email_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.email_preferences
ADD CONSTRAINT email_preferences_pkey PRIMARY KEY (user_id, lecture_id);
--
-- Name: exam_admissions exam_admissions_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.exam_admissions
ADD CONSTRAINT exam_admissions_pkey PRIMARY KEY (exam, student);
--
-- Name: exams exams_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.exams
ADD CONSTRAINT exams_pkey PRIMARY KEY (id);
--
-- Name: exercise_students exercise_students_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.exercise_students
ADD CONSTRAINT exercise_students_pkey PRIMARY KEY (exercise, student);
--
-- Name: exercises exercises_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.exercises
ADD CONSTRAINT exercises_pkey PRIMARY KEY (id);
--
-- Name: grading_exams grading_exams_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.grading_exams
ADD CONSTRAINT grading_exams_pkey PRIMARY KEY (grading, exam);
--
-- Name: gradings gradings_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.gradings
ADD CONSTRAINT gradings_pkey PRIMARY KEY (id);
--
-- Name: lecture_assistants lecture_assistants_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.lecture_assistants
ADD CONSTRAINT lecture_assistants_pkey PRIMARY KEY (lecture, assistant);
--
-- Name: lecture_removed_students lecture_removed_students_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.lecture_removed_students
ADD CONSTRAINT lecture_removed_students_pkey PRIMARY KEY (lecture, student);
--
-- Name: lecture_students lecture_students_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.lecture_students
ADD CONSTRAINT lecture_students_pkey PRIMARY KEY (lecture, student);
--
-- Name: lecture_tutors lecture_tutors_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.lecture_tutors
ADD CONSTRAINT lecture_tutors_pkey PRIMARY KEY (lecture, tutor);
--
-- Name: lectures lectures_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.lectures
ADD CONSTRAINT lectures_pkey PRIMARY KEY (id);
--
-- Name: student_grades student_grades_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.student_grades
ADD CONSTRAINT student_grades_pkey PRIMARY KEY (grading, student);
--
-- Name: time_preferences time_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.time_preferences
ADD CONSTRAINT time_preferences_pkey PRIMARY KEY (lecture, student, "time");
--
-- Name: tutorial_preferences tutorial_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.tutorial_preferences
ADD CONSTRAINT tutorial_preferences_pkey PRIMARY KEY (lecture, student, tutorial);
--
-- Name: tutorials tutorials_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.tutorials
ADD CONSTRAINT tutorials_pkey PRIMARY KEY (id);