Show
Ignore:
Timestamp:
04/10/08 21:15:33 (9 months ago)
Author:
aarkerio
Message:

FOrums and vclassrooms

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/config/sql/karamelo_postgres.sql

    r371 r386  
    191191 description varchar(500) NOT NULL, 
    192192 user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE, 
     193 vclassroom_id integer NOT NULL REFERENCES vclassrooms(id) ON DELETE CASCADE, 
    193194 catforum_id integer NOT NULL REFERENCES catforums(id) ON DELETE CASCADE, 
    194195 status int NOT NULL DEFAULT 0  -- Activated = 1,  Deactivated=0 
    195196); 
     197 
    196198 
    197199CREATE TABLE topics ( -- question and aswers in forums   
     
    554556); 
    555557 
    556 --three table to tests 
     558-- Test model tables beggins 
    557559CREATE TABLE "tests" ( 
    558560  "id" serial PRIMARY KEY, 
     
    591593); 
    592594 
    593 CREATE TABLE results (  -- tests results 
     595CREATE TABLE results (  -- tests student results 
    594596   id serial NOT NULL UNIQUE, 
    595597   user_id int NOT NULL REFERENCES users(id) ON DELETE CASCADE, 
     
    598600   PRIMARY KEY (user_id, test_id) 
    599601); 
     602-- Test model tables ends 
     603 
    600604 
    601605-- Share it!