24 lines
703 B
SQL
24 lines
703 B
SQL
-- Table: public.topologic
|
|
|
|
DROP TABLE IF EXISTS public.topologic;
|
|
DROP SEQUENCE IF EXISTS public.topologic_id_seq;
|
|
|
|
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),
|
|
uuid_from uuid,
|
|
uuid_to uuid,
|
|
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,
|
|
CONSTRAINT topologic_id_PrimaryKey PRIMARY KEY (id)
|
|
)
|
|
|
|
TABLESPACE pg_default;
|
|
|
|
ALTER TABLE IF EXISTS public.topologic
|
|
OWNER to postgres; |