CREATE TABLE IF NOT EXISTS public."Hr_T_TimesheetPeriod" ( "Id" uuid NOT NULL DEFAULT gen_random_uuid(), "TenantId" uuid NULL, "PeriodYear" integer NOT NULL, "PeriodMonth" integer NOT NULL, "Status" varchar(16) NOT NULL DEFAULT 'Open', "CalculatedAt" timestamp NULL, "ClosedAt" timestamp NULL, "ClosedById" uuid NULL, "NightlyAt" timestamp NULL, "Note" varchar(512) 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_TimesheetPeriod" PRIMARY KEY ("Id") );