sozsoft-platform/configs/seeds/postgres/object/Hr_T_DisciplinaryFile.sql

19 lines
647 B
MySQL
Raw Permalink Normal View History

2026-10-06 11:24:30 +00:00
CREATE TABLE IF NOT EXISTS public."Hr_T_DisciplinaryFile"
(
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
"TenantId" uuid NULL,
"CaseId" uuid NOT NULL,
"DocumentTypeId" uuid NULL,
"FileDate" date NOT NULL,
"FileName" varchar(256) NOT NULL,
"FileContent" text NOT NULL,
"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_Hr_T_DisciplinaryFile" PRIMARY KEY ("Id")
);