bcirpggithubmirror/Phase2/Godot_Toolset/Documentation/DialogSchemas.sql
2023-10-22 12:44:30 -06:00

18 lines
401 B
SQL

CREATE TABLE Tags (
TagID SERIAL PRIMARY KEY,
TagName VARCHAR(255) NOT NULL
);
CREATE TABLE DialogOptions (
OptionID SERIAL PRIMARY KEY,
DialogContent TEXT NOT NULL
);
CREATE TABLE DialogOptions_Tags (
OptionID INT,
TagID INT,
PRIMARY KEY (OptionID, TagID),
FOREIGN KEY (OptionID) REFERENCES DialogOptions(OptionID),
FOREIGN KEY (TagID) REFERENCES Tags(TagID)
);