Table fix

This commit is contained in:
Imbus 2024-02-14 18:29:54 +01:00
parent 1b1612b371
commit 699c90dffb

View file

@ -1,12 +1,12 @@
CREATE TABLE Respondants (
CREATE TABLE IF NOT EXISTS Respondants (
name VARCHAR(255) PRIMARY KEY
);
CREATE TABLE Answers (
answerOne INT check (answerOne BETWEEN 1 AND 10),
answerTwo INT (answerTwo BETWEEN 1 AND 10),
answerThree INT (answerThree BETWEEN 1 AND 10),
answerFour INT (answerFour BETWEEN 1 AND 10),
CREATE TABLE IF NOT EXISTS Answers (
answerOne INT,
answerTwo INT,
answerThree INT,
answerFour INT,
name VARCHAR(255),
FOREIGN KEY (name) REFERENCES Respondants(name)
);