19 lines
760 B
SQL
19 lines
760 B
SQL
CREATE TABLE IF NOT EXISTS public."Mnt_T_MaintenanceInstructionDocument"
|
|
(
|
|
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
|
"TenantId" uuid NULL,
|
|
"MaintenanceInstructionId" uuid NOT NULL,
|
|
"Name" varchar(256) NOT NULL,
|
|
"DocumentType" varchar(32) NOT NULL DEFAULT 'Other',
|
|
"FileContent" text NULL,
|
|
"Version" varchar(32) 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_Mnt_T_MaintenanceInstructionDocument" PRIMARY KEY ("Id")
|
|
);
|