Changes between Version 2 and Version 3 of ddlScript.sql
- Timestamp:
- 01/20/25 18:27:25 (10 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ddlScript.sql
v2 v3 5 5 DROP TABLE IF EXISTS Elements CASCADE; 6 6 DROP TABLE IF EXISTS LabEquipment CASCADE; 7 DROP TABLE IF EXISTS USERCASCADE;7 DROP TABLE IF EXISTS "User" CASCADE; 8 8 9 9 10 CREATE TABLE USER(10 CREATE TABLE "User" ( 11 11 user_id SERIAL PRIMARY KEY, 12 12 user_name VARCHAR(30) NOT NULL, … … 50 50 CREATE TABLE Experiment ( 51 51 experiment_id SERIAL PRIMARY KEY, 52 user_id INT NOT NULL REFERENCES USER(user_id) ON DELETE CASCADE,52 user_id INT NOT NULL REFERENCES "User" (user_id) ON DELETE CASCADE, 53 53 reaction_id INT NOT NULL REFERENCES Reaction(reaction_id) ON DELETE CASCADE, 54 54 result TEXT,