fine-tune

This commit is contained in:
zhuxu 2025-06-03 16:46:51 +08:00
parent 93a573cbde
commit 6c652c7b84
2 changed files with 4 additions and 6 deletions

View File

@ -97,9 +97,8 @@ CREATE TABLE PUBLIC.TOPOLOGIC (
ID BIGSERIAL PRIMARY KEY, ID BIGSERIAL PRIMARY KEY,
UUID_FROM UUID NOT NULL, UUID_FROM UUID NOT NULL,
UUID_TO UUID NOT NULL, UUID_TO UUID NOT NULL,
FROM_PIN UUID NOT NULL, CONTEXT JSONB NOT NULL DEFAULT '{}',
TO_PIN UUID NOT NULL, FLAG INTEGER NOT NULL DEFAULT 1,
FLAG INTEGER NOT NULL DEFAULT 0,
DESCRIPTION VARCHAR(512) NOT NULL DEFAULT '', DESCRIPTION VARCHAR(512) NOT NULL DEFAULT '',
OP INTEGER NOT NULL DEFAULT -1, OP INTEGER NOT NULL DEFAULT -1,
TS TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP TS TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP

View File

@ -10,9 +10,8 @@ CREATE TABLE IF NOT EXISTS public.topologic
id integer NOT NULL DEFAULT nextval('topologic_id_seq'::regclass), id integer NOT NULL DEFAULT nextval('topologic_id_seq'::regclass),
uuid_from uuid, uuid_from uuid,
uuid_to uuid, uuid_to uuid,
from_pin uuid, context jsonb,
to_pin uuid, flag integer DEFAULT 1,
flag integer DEFAULT 0,
description character varying(512) COLLATE pg_catalog."default", description character varying(512) COLLATE pg_catalog."default",
op integer NOT NULL DEFAULT '-1'::integer, op integer NOT NULL DEFAULT '-1'::integer,
ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,