added plan status entity
This commit is contained in:
parent
f9c3f8a64b
commit
b8a8806220
|
@ -0,0 +1,21 @@
|
|||
DO $$DECLARE
|
||||
this_version CONSTANT varchar := '00.01.072';
|
||||
BEGIN
|
||||
PERFORM * FROM "DBVersion" WHERE version = this_version;
|
||||
IF FOUND THEN RETURN; END IF;
|
||||
|
||||
CREATE TABLE public."PlanStatus"
|
||||
(
|
||||
id uuid NOT NULL,
|
||||
name character varying(250) NOT NULL,
|
||||
description text,
|
||||
created_at timestamp without time zone NOT NULL,
|
||||
updated_at timestamp without time zone NOT NULL,
|
||||
is_active smallint NOT NULL,
|
||||
internal_status smallint NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
|
||||
INSERT INTO public."DBVersion" VALUES ('DMPDB', '00.01.072', '2024-08-21 12:00:00.000000+02', now(), 'Add plan status table.');
|
||||
|
||||
END$$;
|
Loading…
Reference in New Issue