diff --git a/init/00_InitDB.sql b/init/00_InitDB.sql index c5aed2b..5496a00 100644 --- a/init/00_InitDB.sql +++ b/init/00_InitDB.sql @@ -22,7 +22,8 @@ CREATE TABLE Posts deleted timestamp WITH TIME ZONE default NULL ); -CREATE TABLE Answers ( +CREATE TABLE Comments +( id bigserial PRIMARY KEY, parent bigserial REFERENCES Posts NOT NULL, child bigserial REFERENCES Posts NOT NULL,