45
62
offeringid SERIAL PRIMARY KEY NOT NULL,
46
63
subject INT4 REFERENCES subject (subjectid) NOT NULL,
47
64
semesterid INTEGER REFERENCES semester (semesterid) NOT NULL,
48
69
groups_student_permissions VARCHAR NOT NULL DEFAULT 'none',
49
70
CHECK (groups_student_permissions in ('none', 'invite', 'create')),
50
71
UNIQUE (subject, semesterid)