20 lines
712 B
SQL
20 lines
712 B
SQL
CREATE TABLE IF NOT EXISTS public."Hr_T_DriverPenalty"
|
|
(
|
|
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
|
"TenantId" uuid NULL,
|
|
"DriverId" uuid NOT NULL,
|
|
"PenaltyDate" date NOT NULL,
|
|
"Amount" numeric(18, 4) NULL,
|
|
"Description" varchar(512) NULL,
|
|
"VehicleDocumentId" uuid NULL,
|
|
"FileName" varchar(256) NULL,
|
|
"FileContent" 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_DriverPenalty" PRIMARY KEY ("Id")
|
|
);
|