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

« back to all changes in this revision

Viewing changes to userdb/users.sql

  • Committer: mattgiuca
  • Date: 2008-03-05 22:33:32 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:655
subjects: Fixed a bug from crufty code (exception thrown if you don't put a
                '/'). Now automatically adds a '/' to the end of the URL.

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
    passhash    VARCHAR,
 
5
    state       VARCHAR NOT NULL CHECK (state in ('no_agreement', 'pending',
 
6
                                              'enabled', 'disabled')),
 
7
    rolenm      VARCHAR NOT NULL CHECK (rolenm in ('anyone', 'student',
 
8
                                                   'marker', 'tutor',
 
9
                                                   'lecturer', 'admin')),
4
10
    unixid      INT UNIQUE NOT NULL, -- unix user id
5
 
    passhash    VARCHAR,
6
 
    nick        VARCHAR,
7
 
    fullname    VARCHAR,
8
 
    rolenm      VARCHAR,
9
 
    studentid   VARCHAR -- may be null
 
11
    nick        VARCHAR NOT NULL,
 
12
    pass_exp    TIMESTAMP,
 
13
    acct_exp    TIMESTAMP,
 
14
    last_login  TIMESTAMP,
 
15
    svn_pass    VARCHAR,
 
16
    email       VARCHAR,
 
17
    fullname    VARCHAR NOT NULL,
 
18
    studentid   VARCHAR, -- may be null
 
19
    settings    VARCHAR
10
20
);
11
21
 
12
22
CREATE TABLE offering (