From 56435e39d69dcfb4eb233b6c5021e31df4b74be7 Mon Sep 17 00:00:00 2001 From: Timo Date: Fri, 24 May 2024 20:51:03 +0200 Subject: [PATCH] renamed Answer table --- init/00_InitDB.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,