Changeset 576 for trunk/app/config
- Timestamp:
- 05/30/08 22:31:24 (6 months ago)
- Files:
-
- 1 modified
-
trunk/app/config/sql/postgresql/results.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/postgresql/results.sql
r574 r576 1 1 CREATE TABLE results ( -- tests student results 2 2 id serial NOT NULL UNIQUE, 3 user_id int NOT NULL REFERENCES users(id) ON DELETE CASCADE, 4 question_id int NOT NULL ,5 answer_id smallint NOT NULL,3 user_id int NOT NULL REFERENCES users(id) ON DELETE CASCADE, -- student id 4 question_id int NOT NULL REFERENCES questions(id) ON DELETE CASCADE, 5 answer_id int NOT NULL REFERENCES answers(id) ON DELETE CASCADE, 6 6 test_id int NOT NULL REFERENCES tests(id) ON DELETE CASCADE, 7 7 vclassroom_id int NOT NULL REFERENCES vclassrooms(id) ON DELETE CASCADE, 8 8 created timestamp(0) with time zone DEFAULT now() NOT NULL, 9 correct smallint NOT NULL, 9 10 PRIMARY KEY (user_id, test_id, vclassroom_id, question_id) 10 11 );
