21 lines
713 B
MySQL
21 lines
713 B
MySQL
|
|
CREATE TABLE IF NOT EXISTS public."Hr_T_VehicleExpense"
|
||
|
|
(
|
||
|
|
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
||
|
|
"TenantId" uuid NULL,
|
||
|
|
"VehicleId" uuid NOT NULL,
|
||
|
|
"InvoiceNo" varchar(32) NOT NULL,
|
||
|
|
"InvoiceDate" date NOT NULL,
|
||
|
|
"DestinationId" uuid 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_VehicleExpense" PRIMARY KEY ("Id")
|
||
|
|
);
|