addition of new dashboard
This commit is contained in:
1 parent
0622018d95
commit
bf59249ed7
161 files changed
+13170
-119
No files matched your search
@@ -0,0 +1,14 @@
|
||||
-- DROP TABLE IF EXISTS public.agreement_content CASCADE;
|
||||
CREATE TABLE public.agreement_content (
|
||||
id BIGSERIAL PRIMARY KEY,
|
||||
user_id BIGINT REFERENCES public.user(id),
|
||||
title TEXT NOT NULL,
|
||||
markdown TEXT NOT NULL,
|
||||
hash TEXT NOT NULL,
|
||||
created_ts TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
updated_ts TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
CONSTRAINT uniq__agreement_content UNIQUE NULLS NOT DISTINCT (user_id, title)
|
||||
);
|
||||
CREATE INDEX idx__public__agreement_content__user_id ON public.agreement_content (user_id);
|
||||
CREATE INDEX idx__public__agreement_content__created_ts ON public.agreement_content (created_ts);
|
||||
CREATE INDEX idx__public__agreement_content__updated_ts ON public.agreement_content (updated_ts);
|
||||
Reference in new issue
Block a user