Projektutvecklingslab/database.sql

18 lines
409 B
MySQL
Raw Normal View History

2024-02-14 18:35:44 +01:00
CREATE TABLE IF NOT EXISTS Respondents (
2024-02-14 17:50:32 +01:00
name VARCHAR(255) PRIMARY KEY
);
2024-02-14 18:29:54 +01:00
CREATE TABLE IF NOT EXISTS Answers (
answerOne INT,
answerTwo INT,
answerThree INT,
answerFour INT,
2024-02-14 17:50:32 +01:00
name VARCHAR(255),
2024-02-14 18:35:44 +01:00
FOREIGN KEY (name) REFERENCES Respondents(name)
2024-02-14 18:32:05 +01:00
);
2024-02-14 19:55:50 +01:00
CREATE TABLE IF NOT EXISTS ProjectDetails (
projectID INT PRIMARY KEY,
projectName VARCHAR(255),
projectDescription TEXT
);