load with public flag
This commit is contained in:
parent
e3c95eb109
commit
322dd01ee0
14 changed files with 73 additions and 38 deletions
|
@ -12,10 +12,11 @@ CREATE TABLE blog.author
|
|||
|
||||
CREATE TABLE blog.post
|
||||
(
|
||||
id uuid PRIMARY KEY,
|
||||
content text NOT NULL,
|
||||
posted_on timestamptz NOT NULL DEFAULT now(),
|
||||
author_id uuid NOT NULL REFERENCES blog.author (id) on DELETE CASCADE
|
||||
id uuid PRIMARY KEY,
|
||||
content text NOT NULL,
|
||||
posted_on timestamptz NOT NULL DEFAULT now(),
|
||||
author_id uuid NOT NULL REFERENCES blog.author (id) on DELETE CASCADE,
|
||||
is_private bool NOT NULL DEFAULT false
|
||||
);
|
||||
|
||||
CREATE TABLE blog.post_media
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue