Commit a4d12978 authored by Internship UKSW 2019's avatar Internship UKSW 2019

Initial commit

parent 28da2144
......@@ -4,7 +4,7 @@
CREATE TABLE public.content
(
cont_id integer NOT NULL DEFAULT nextval('content_cont_id_seq'::regclass),
cont_id integer NOT NULL,
doc_id integer NOT NULL,
cont_title character varying(100) COLLATE pg_catalog."default" NOT NULL,
cont text COLLATE pg_catalog."default" NOT NULL,
......
......@@ -4,7 +4,7 @@
CREATE TABLE public.document
(
doc_id integer NOT NULL DEFAULT nextval('document_doc_id_seq'::regclass),
doc_id integer NOT NULL,
doc_code character varying(80) COLLATE pg_catalog."default" NOT NULL,
doc_type character varying(20) COLLATE pg_catalog."default" NOT NULL,
rev_date date,
......
......@@ -4,7 +4,7 @@
CREATE TABLE public.revision
(
rev_id integer NOT NULL DEFAULT nextval('revision_rev_id_seq'::regclass),
rev_id integer NOT NULL,
doc_id integer NOT NULL,
rev_code character varying(5) COLLATE pg_catalog."default" NOT NULL,
remark character varying(1000) COLLATE pg_catalog."default",
......
......@@ -4,7 +4,7 @@
CREATE TABLE public.trail
(
trail_id integer NOT NULL DEFAULT nextval('trail_trail_id_seq'::regclass),
trail_id integer NOT NULL,
doc_id integer NOT NULL,
user_role character varying(100) COLLATE pg_catalog."default" NOT NULL,
action character varying(200) COLLATE pg_catalog."default" NOT NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment