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