Changeset 753 for trunk/app/config
- Timestamp:
- 09/03/08 21:34:40 (3 months ago)
- Files:
-
- 1 modified
-
trunk/app/config/sql/postgresql/chats.sql (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/config/sql/postgresql/chats.sql
r738 r753 1 1 CREATE TABLE chats ( -- chats on vgroups 2 2 id serial NOT NULL PRIMARY KEY, 3 user_id int NOT NULL REFERENCES users(id), -- teacher id in fact 3 student_id int NOT NULL REFERENCES users(id), -- student id in fact 4 teacher_id int NOT NULL REFERENCES users(id), -- student id in fact 4 5 vclassroom_id int NOT NULL REFERENCES vclassrooms(id) ON DELETE CASCADE, 6 message varchar(100) NOT NULL, 5 7 "created" timestamp(0) with time zone DEFAULT now() NOT NULL 6 8 );
