From 4eb1abd89383c99ccc3b77f449b4157783139fdb Mon Sep 17 00:00:00 2001 From: Ostend Suryajaya Date: Sun, 10 Nov 2024 03:37:24 -0800 Subject: [PATCH] Adjusted schema name --- server/schema/believability.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/schema/believability.sql b/server/schema/believability.sql index 51a1152..294229c 100644 --- a/server/schema/believability.sql +++ b/server/schema/believability.sql @@ -1,7 +1,7 @@ CREATE TABLE believability ( id SERIAL PRIMARY KEY, -- Unique identifier for each believability rating theory_id INT NOT NULL, -- Foreign key referencing the associated theory - user VARCHAR(100) NOT NULL, -- Name of the user giving the rating + submitter VARCHAR(100) NOT NULL, -- Name of the user giving the rating believability_score INT CHECK (believability_score >= 1 AND believability_score <= 10), -- Believability score (1-10 scale) FOREIGN KEY (theory_id) REFERENCES theories(theory_id) ON DELETE CASCADE ); \ No newline at end of file