Changeset 386 for trunk/app/config/sql/karamelo_postgres.sql
- Timestamp:
- 04/10/08 21:15:33 (9 months ago)
- Files:
-
- 1 modified
-
trunk/app/config/sql/karamelo_postgres.sql (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/karamelo_postgres.sql
r371 r386 191 191 description varchar(500) NOT NULL, 192 192 user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE, 193 vclassroom_id integer NOT NULL REFERENCES vclassrooms(id) ON DELETE CASCADE, 193 194 catforum_id integer NOT NULL REFERENCES catforums(id) ON DELETE CASCADE, 194 195 status int NOT NULL DEFAULT 0 -- Activated = 1, Deactivated=0 195 196 ); 197 196 198 197 199 CREATE TABLE topics ( -- question and aswers in forums … … 554 556 ); 555 557 556 -- three table to tests558 -- Test model tables beggins 557 559 CREATE TABLE "tests" ( 558 560 "id" serial PRIMARY KEY, … … 591 593 ); 592 594 593 CREATE TABLE results ( -- tests results595 CREATE TABLE results ( -- tests student results 594 596 id serial NOT NULL UNIQUE, 595 597 user_id int NOT NULL REFERENCES users(id) ON DELETE CASCADE, … … 598 600 PRIMARY KEY (user_id, test_id) 599 601 ); 602 -- Test model tables ends 603 600 604 601 605 -- Share it!
