remove page_id, move status
This commit is contained in:
parent
0a8ee1dcb7
commit
d2fb604894
|
|
@ -16,7 +16,6 @@ CREATE TABLE IF NOT EXISTS public.page
|
|||
id integer NOT NULL DEFAULT nextval('page_id_seq'::regclass),
|
||||
tag character varying(32) COLLATE pg_catalog."default" NOT NULL,
|
||||
name character varying(64) COLLATE pg_catalog."default" NOT NULL,
|
||||
status integer NOT NULL DEFAULT '-1'::integer,
|
||||
label jsonb NOT NULL DEFAULT '{}'::jsonb,
|
||||
context jsonb NOT NULL DEFAULT '{}'::jsonb,
|
||||
description character varying(512) COLLATE pg_catalog."default" NOT NULL DEFAULT ''::character varying,
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@ CREATE TABLE IF NOT EXISTS public.component
|
|||
type integer NOT NULL,
|
||||
in_service boolean DEFAULT false,
|
||||
state integer NOT NULL DEFAULT 0,
|
||||
status integer NOT NULL DEFAULT '-1'::integer, -- 编辑是否完成
|
||||
connection jsonb NOT NULL DEFAULT '{}'::jsonb,
|
||||
label jsonb NOT NULL DEFAULT '{}'::jsonb,
|
||||
context jsonb NOT NULL DEFAULT '{}'::jsonb,
|
||||
page_id integer NOT NULL,
|
||||
op integer NOT NULL DEFAULT '-1'::integer,
|
||||
ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
CONSTRAINT component_id_PrimaryKey PRIMARY KEY (id),
|
||||
|
|
|
|||
|
|
@ -8,9 +8,10 @@ CREATE SEQUENCE IF NOT EXISTS public.topologic_id_seq;
|
|||
CREATE TABLE IF NOT EXISTS public.topologic
|
||||
(
|
||||
id integer NOT NULL DEFAULT nextval('topologic_id_seq'::regclass),
|
||||
page_id integer NOT NULL,
|
||||
uuid_from uuid,
|
||||
uuid_to uuid,
|
||||
from_pin uuid,
|
||||
to_pin uuid,
|
||||
flag integer DEFAULT 0,
|
||||
description character varying(512) COLLATE pg_catalog."default",
|
||||
op integer NOT NULL DEFAULT '-1'::integer,
|
||||
|
|
|
|||
Loading…
Reference in New Issue