21 lines
729 B
SQL
21 lines
729 B
SQL
CREATE TABLE IF NOT EXISTS public."Hr_T_EventLog"
|
|
(
|
|
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
|
"TenantId" uuid NULL,
|
|
"BranchId" uuid NULL,
|
|
"LogSource" varchar(32) NOT NULL,
|
|
"UserId" uuid NOT NULL,
|
|
"EventDate" date NOT NULL,
|
|
"EventTime" varchar(5) NOT NULL,
|
|
"Importance" integer NOT NULL DEFAULT 1,
|
|
"ShiftId" uuid NULL,
|
|
"Description" 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_EventLog" PRIMARY KEY ("Id")
|
|
);
|