23 lines
832 B
SQL
23 lines
832 B
SQL
CREATE TABLE IF NOT EXISTS public."Hr_T_TrainingParticipant"
|
|
(
|
|
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
|
"TenantId" uuid NULL,
|
|
"TrainingId" uuid NOT NULL,
|
|
"UserId" uuid NOT NULL,
|
|
"HireDate" date NULL,
|
|
"DepartmentId" uuid NULL,
|
|
"JobPositionId" uuid NULL,
|
|
"AttendanceStatus" varchar(16) NOT NULL DEFAULT 'Attended',
|
|
"EvaluationScore" numeric(18, 4) NULL,
|
|
"ExamScore" numeric(18, 4) NULL,
|
|
"LeaveDate" date NULL,
|
|
"Note" text 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_TrainingParticipant" PRIMARY KEY ("Id")
|
|
);
|