sozsoft-platform/configs/seeds/postgres/object/Inv_T_Operation.sql
2026-10-07 23:27:23 +03:00

20 lines
803 B
SQL

CREATE TABLE IF NOT EXISTS public."Inv_T_Operation"
(
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
"TenantId" uuid NULL,
"Name" varchar(128) NOT NULL,
"WorkCenterId" uuid NOT NULL,
"ApplyOnVariants" varchar(4000) NULL,
"CostBasis" varchar(16) NOT NULL DEFAULT 'Actual',
"DurationMode" varchar(16) NOT NULL DEFAULT 'Fixed',
"DefaultDurationMin" numeric(18, 4) NOT NULL DEFAULT 60,
"IsActive" boolean NOT NULL DEFAULT TRUE,
"CreationTime" timestamp NOT NULL DEFAULT (NOW() AT TIME ZONE 'UTC'),
"CreatorId" uuid NULL,
"LastModificationTime" timestamp NULL,
"LastModifierId" uuid NULL,
"IsDeleted" boolean NOT NULL DEFAULT FALSE,
"DeletionTime" timestamp NULL,
"DeleterId" uuid NULL,
CONSTRAINT "PK_Inv_T_Operation" PRIMARY KEY ("Id")
);