23 lines
834 B
SQL
23 lines
834 B
SQL
CREATE TABLE IF NOT EXISTS public."Hr_T_Visitor"
|
|
(
|
|
"Id" uuid NOT NULL DEFAULT gen_random_uuid(),
|
|
"TenantId" uuid NULL,
|
|
"BranchId" uuid NOT NULL,
|
|
"VisitorType" varchar(50) NOT NULL DEFAULT 'Ziyaretçi',
|
|
"VisitDate" date NOT NULL,
|
|
"EntryTime" timestamp NOT NULL,
|
|
"ExitTime" timestamp NULL,
|
|
"CardNo" varchar(20) NULL,
|
|
"VisitorFullName" varchar(200) NOT NULL,
|
|
"VisitedUserId" uuid NOT NULL,
|
|
"CompanyName" varchar(200) NULL,
|
|
"VisitReason" 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_Visitor" PRIMARY KEY ("Id")
|
|
);
|