added NOT NULL to answers contents

This commit is contained in:
2024-04-20 12:59:23 +02:00
parent f146bc05d9
commit fa3289166b

View File

@@ -23,8 +23,8 @@ CREATE TABLE Posts
CREATE TABLE Answers ( CREATE TABLE Answers (
id bigserial PRIMARY KEY, id bigserial PRIMARY KEY,
parent bigserial REFERENCES Posts, parent bigserial REFERENCES Posts NOT NULL,
child bigserial REFERENCES Posts, child bigserial REFERENCES Posts NOT NULL,
deleted timestamp WITH TIME ZONE default NULL deleted timestamp WITH TIME ZONE default NULL
); );