From 0afab117484ea7e2c835d7f18596e5441dce5d31 Mon Sep 17 00:00:00 2001 From: Leonhard Rose Date: Thu, 30 Apr 2020 23:20:00 +0200 Subject: [PATCH] Added DDL for capturing parents of childrens --- src/main/resources/DDL.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/resources/DDL.sql b/src/main/resources/DDL.sql index ee15167..00647f5 100644 --- a/src/main/resources/DDL.sql +++ b/src/main/resources/DDL.sql @@ -119,4 +119,15 @@ create table if not exists unex_score ) ; +create table comments_hierarchy +( + child_id text not null + constraint comments_hierarchy_pk + primary key + constraint comment_child + references comments, + parent_id text not null + constraint parent_comment + references comments +);