Skip to content

Commit

Permalink
Adjusted schema name
Browse files Browse the repository at this point in the history
  • Loading branch information
Aokijiop committed Nov 10, 2024
1 parent 724efe4 commit 4eb1abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/schema/believability.sql
Original file line number Diff line number Diff line change
@@ -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
);

0 comments on commit 4eb1abd

Please sign in to comment.