24 lines
965 B
SQL
24 lines
965 B
SQL
CREATE TABLE IF NOT EXISTS public."Inv_T_Bom"
|
|
(
|
|
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
|
"TenantId" uuid NULL,
|
|
"ProductId" uuid NOT NULL,
|
|
"VariantKey" varchar(450) NULL,
|
|
"Quantity" numeric(18, 4) NOT NULL DEFAULT 1,
|
|
"UomId" varchar(64) NOT NULL,
|
|
"Reference" varchar(64) NULL,
|
|
"ReadyToProduce" varchar(16) NOT NULL DEFAULT 'AllAvailable',
|
|
"FlexibleConsumption" varchar(16) NOT NULL DEFAULT 'Warning',
|
|
"ProductionLeadDays" integer NOT NULL DEFAULT 0,
|
|
"PreparationDays" integer NOT NULL DEFAULT 0,
|
|
"BatchSize" numeric(18, 4) NULL,
|
|
"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_Bom" PRIMARY KEY ("Id")
|
|
);
|