~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to userdb/users.sql

  • Committer: mattgiuca
  • Date: 2008-02-18 23:59:17 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:498
apps/userservice: Now writes to req.session to avoid having to log out.
www/media/common/tos.js: Refreshes the page after receiving an accept
response.
    (This doesn't seem to wait long enough; I still need to do a manual
    refresh to get in).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
CREATE TABLE login (
 
2
    loginid     SERIAL PRIMARY KEY NOT NULL,
2
3
    login       VARCHAR UNIQUE NOT NULL,
3
 
    loginid     SERIAL PRIMARY KEY NOT NULL,
4
4
    passhash    VARCHAR,
5
 
    nick        VARCHAR,
6
 
    fullname    VARCHAR,
7
 
    rolenm      VARCHAR,
 
5
    state       VARCHAR NOT NULL CHECK (state in ('no_agreement', 'pending',
 
6
                                              'enabled', 'disabled')),
 
7
    rolenm      VARCHAR NOT NULL CHECK (rolenm in ('guest', 'student',
 
8
                                                   'tutor', 'lecturer',
 
9
                                                   'admin')),
 
10
    unixid      INT UNIQUE NOT NULL, -- unix user id
 
11
    nick        VARCHAR NOT NULL,
 
12
    pass_exp    TIMESTAMP,
 
13
    acct_exp    TIMESTAMP,
 
14
    last_login  TIMESTAMP,
 
15
    email       VARCHAR,
 
16
    fullname    VARCHAR NOT NULL,
8
17
    studentid   VARCHAR -- may be null
9
18
);
10
19