2
2
loginid SERIAL PRIMARY KEY NOT NULL,
3
3
login VARCHAR UNIQUE NOT NULL,
5
state VARCHAR NOT NULL CHECK (state in ('no_agreement', 'enabled', 'disabled')),
6
10
unixid INT UNIQUE NOT NULL, -- unix user id
9
16
fullname VARCHAR NOT NULL,
10
rolenm VARCHAR NOT NULL CHECK (rolenm in ('anyone', 'student', 'tutor', 'lecturer', 'admin')),
11
17
studentid VARCHAR -- may be null