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

« back to all changes in this revision

Viewing changes to userdb/users.sql

  • Committer: dcoles
  • Date: 2008-07-14 01:08:59 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:850
Console: Moved console up into dispatch. Now any application can, in theory, 
have it's own console just by adding 'useconsole = True' to the app settings.
Note: There are some cases where this may not be a good idea - ie. The full 
console app, public applications, etc. Removed the old single instances of 
console and made apps init functions use the new scripts_init section.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
    settings    VARCHAR
20
20
);
21
21
 
 
22
CREATE TABLE subject (
 
23
    subjectid       SERIAL PRIMARY KEY NOT NULL,
 
24
    subj_code       VARCHAR UNIQUE NOT NULL,
 
25
    subj_name       VARCHAR NOT NULL,
 
26
    subj_short_name VARCHAR,    -- may be null
 
27
    url             VARCHAR
 
28
);
 
29
 
22
30
CREATE TABLE offering (
23
31
    offeringid  SERIAL PRIMARY KEY NOT NULL,
24
 
    subj_name   VARCHAR NOT NULL,
25
 
    subj_code   VARCHAR NOT NULL,
 
32
    subject     INT4 REFERENCES subject (subjectid) NOT NULL,
26
33
    year        CHAR(4) NOT NULL,
27
 
    semester    CHAR(1) NOT NULL,
28
 
    url         VARCHAR
 
34
    semester    CHAR(1) NOT NULL
29
35
);
30
36
 
31
37
CREATE TABLE project (
115
121
    spec        VARCHAR
116
122
);
117
123
 
 
124
CREATE TABLE worksheet (
 
125
    worksheetid SERIAL PRIMARY KEY NOT NULL,
 
126
    subject     VARCHAR NOT NULL,
 
127
    identifier  VARCHAR NOT NULL,
 
128
    assessable  BOOLEAN,
 
129
    mtime       TIMESTAMP,
 
130
    UNIQUE (subject, identifier)
 
131
);
 
132
 
 
133
CREATE TABLE worksheet_problem (
 
134
    worksheetid INT4 REFERENCES worksheet (worksheetid) NOT NULL,
 
135
    problemid   INT4 REFERENCES problem (problemid) NOT NULL,
 
136
    optional    BOOLEAN,
 
137
    PRIMARY KEY (worksheetid, problemid)
 
138
);
 
139
 
118
140
CREATE TABLE problem_tag (
119
141
    problemid   INT4 REFERENCES problem (problemid),
120
142
    tag         VARCHAR NOT NULL,