Table fix
This commit is contained in:
parent
1b1612b371
commit
699c90dffb
1 changed files with 6 additions and 6 deletions
12
database.sql
12
database.sql
|
@ -1,12 +1,12 @@
|
||||||
CREATE TABLE Respondants (
|
CREATE TABLE IF NOT EXISTS Respondants (
|
||||||
name VARCHAR(255) PRIMARY KEY
|
name VARCHAR(255) PRIMARY KEY
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE Answers (
|
CREATE TABLE IF NOT EXISTS Answers (
|
||||||
answerOne INT check (answerOne BETWEEN 1 AND 10),
|
answerOne INT,
|
||||||
answerTwo INT (answerTwo BETWEEN 1 AND 10),
|
answerTwo INT,
|
||||||
answerThree INT (answerThree BETWEEN 1 AND 10),
|
answerThree INT,
|
||||||
answerFour INT (answerFour BETWEEN 1 AND 10),
|
answerFour INT,
|
||||||
name VARCHAR(255),
|
name VARCHAR(255),
|
||||||
FOREIGN KEY (name) REFERENCES Respondants(name)
|
FOREIGN KEY (name) REFERENCES Respondants(name)
|
||||||
);
|
);
|
Loading…
Reference in a new issue