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

« back to all changes in this revision

Viewing changes to userdb/users.sql

  • Committer: dcoles
  • Date: 2008-04-03 21:59:40 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:721
download/serve: Removed the setting of mime-type here. If it's a download file 
server will set the mimetype to application/octet-stream or application/zip and  
mark it as "attachment" while if it's a serve file then server will only set it 
to the recognised mimetype.

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
 
 
30
22
CREATE TABLE offering (
31
23
    offeringid  SERIAL PRIMARY KEY NOT NULL,
32
 
    subject     INT4 REFERENCES subject (subjectid) NOT NULL,
 
24
    subj_name   VARCHAR NOT NULL,
 
25
    subj_code   VARCHAR NOT NULL,
33
26
    year        CHAR(4) NOT NULL,
34
27
    semester    CHAR(1) NOT NULL,
35
 
    UNIQUE (subject, year, semester)
 
28
    url         VARCHAR
36
29
);
37
30
 
38
31
CREATE TABLE project (
122
115
    spec        VARCHAR
123
116
);
124
117
 
125
 
CREATE TABLE worksheet (
126
 
    worksheetid SERIAL PRIMARY KEY NOT NULL,
127
 
    subject     VARCHAR NOT NULL,
128
 
    identifier  VARCHAR NOT NULL,
129
 
    assessable  BOOLEAN,
130
 
    mtime       TIMESTAMP,
131
 
    UNIQUE (subject, identifier)
132
 
);
133
 
 
134
 
CREATE TABLE worksheet_problem (
135
 
    worksheetid INT4 REFERENCES worksheet (worksheetid) NOT NULL,
136
 
    problemid   INT4 REFERENCES problem (problemid) NOT NULL,
137
 
    optional    BOOLEAN,
138
 
    PRIMARY KEY (worksheetid, problemid)
139
 
);
140
 
 
141
118
CREATE TABLE problem_tag (
142
119
    problemid   INT4 REFERENCES problem (problemid),
143
120
    tag         VARCHAR NOT NULL,