added NOT NULL to answers contents
This commit is contained in:
@@ -23,8 +23,8 @@ CREATE TABLE Posts
|
||||
|
||||
CREATE TABLE Answers (
|
||||
id bigserial PRIMARY KEY,
|
||||
parent bigserial REFERENCES Posts,
|
||||
child bigserial REFERENCES Posts,
|
||||
parent bigserial REFERENCES Posts NOT NULL,
|
||||
child bigserial REFERENCES Posts NOT NULL,
|
||||
deleted timestamp WITH TIME ZONE default NULL
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user