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,
UUID_FROM UUID NOT NULL,
UUID_TO UUID NOT NULL,
FROM_PIN UUID NOT NULL,
TO_PIN UUID NOT NULL,
FLAG INTEGER NOT NULL DEFAULT 0,
CONTEXT JSONB NOT NULL DEFAULT '{}',
FLAG INTEGER NOT NULL DEFAULT 1,
DESCRIPTION VARCHAR(512) NOT NULL DEFAULT '',
OP INTEGER NOT NULL DEFAULT -1,
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),
uuid_from uuid,
uuid_to uuid,
from_pin uuid,
to_pin uuid,
flag integer DEFAULT 0,
context jsonb,
flag integer DEFAULT 1,
description character varying(512) COLLATE pg_catalog."default",
op integer NOT NULL DEFAULT '-1'::integer,
ts timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,