From 25ec4c0bde9a433e1d0bc67d5167a51d290b27ba Mon Sep 17 00:00:00 2001 From: Eric Hanson Date: Wed, 15 May 2019 08:45:27 +0000 Subject: [PATCH] docs: experimental documentation system schema --- .../documentation/000-datamodel.sql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/pg-extension/documentation/000-datamodel.sql b/src/pg-extension/documentation/000-datamodel.sql index 6970615e..76374f0b 100644 --- a/src/pg-extension/documentation/000-datamodel.sql +++ b/src/pg-extension/documentation/000-datamodel.sql @@ -17,6 +17,7 @@ set search_path=documentation; -- functions, etc. ------------------------------------------------------------------------------ +/* create table "schema" ( id uuid not null default public.uuid_generate_v4() primary key, schema_id meta.schema_id not null, @@ -28,3 +29,19 @@ create table "table" ( relation_id meta.relation_id not null, content text not null default '' ); + +*/ + +create table bundle_doc ( + id uuid not null default public.uuid_generate_v4() primary key, + bundle_id uuid references bundle.bundle(id), + title text not null default '', + content text not null default '' +); + +create table row_doc ( + id uuid not null default public.uuid_generate_v4() primary key, + row_id meta.row_id not null, + title text not null default '', + content text not null default '' +);