Changes between Version 2 and Version 3 of ddlScript.sql


Ignore:
Timestamp:
01/20/25 18:27:25 (10 days ago)
Author:
221028
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ddlScript.sql

    v2 v3  
    55DROP TABLE IF EXISTS Elements CASCADE;
    66DROP TABLE IF EXISTS LabEquipment CASCADE;
    7 DROP TABLE IF EXISTS USER CASCADE;
     7DROP TABLE IF EXISTS "User" CASCADE;
    88
    99
    10 CREATE TABLE USER (
     10CREATE TABLE "User" (
    1111    user_id SERIAL PRIMARY KEY,
    1212    user_name VARCHAR(30) NOT NULL,
     
    5050CREATE TABLE Experiment (
    5151    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,
    5353    reaction_id INT NOT NULL REFERENCES Reaction(reaction_id) ON DELETE CASCADE,
    5454    result TEXT,