More sync
This commit is contained in:
parent
25179ffd15
commit
1c3116d9dc
7 changed files with 208 additions and 6 deletions
16
sql/00006.sql
Normal file
16
sql/00006.sql
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
CREATE TABLE public.node_history (
|
||||
id serial4 NOT NULL,
|
||||
user_id int4 NOT NULL,
|
||||
uuid bpchar(36) NOT NULL,
|
||||
parents varchar[] NULL,
|
||||
created timestamptz NOT NULL,
|
||||
updated timestamptz NOT NULL,
|
||||
name varchar(256) NOT NULL,
|
||||
"content" text NOT NULL,
|
||||
content_encrypted text NOT NULL,
|
||||
markdown bool DEFAULT false NOT NULL,
|
||||
client bpchar(36) DEFAULT ''::bpchar NOT NULL,
|
||||
CONSTRAINT node_history_pk PRIMARY KEY (id),
|
||||
CONSTRAINT node_history_user_fk FOREIGN KEY (user_id) REFERENCES public."user"(id) ON DELETE RESTRICT ON UPDATE RESTRICT
|
||||
);
|
||||
CREATE INDEX node_history_uuid_idx ON public.node USING btree (uuid);
|
||||
Loading…
Add table
Add a link
Reference in a new issue