====== pears.TempHoliday ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Description =====
A way of recording branch holidays - not used
===== Columns =====
^ Column ^ Type ^ Null ^ Default ^ Comment ^
| **TempHolidayID** | char(20) | NOT NULL | | |
| HolidayDate | date | NOT NULL | | |
| agencyid | char(20) | NULL | | |
| ClientCode | char(12) | NULL | | Referred to by company.tempholidaycode for client specific holidays |
===== Primary Key =====
* TempHolidayID
===== Foreign Keys =====
^ Constraint ^ Columns ^ References ^ Delete/update action ^
| agencydetails | agencyid | [[database:tables:pears_agencydetails|pears.agencydetails (agencyid)]] | ON DELETE SET NULL |
===== Referenced By =====
* No incoming foreign keys found.
===== Indexes =====
^ Name ^ Type ^ Columns ^ Detail ^
| TempHolidayDate | Index | HolidayDate | |
===== Triggers =====
* No triggers found.
===== Original SQL =====
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."TempHoliday"
-- Table comment: A way of recording branch holidays - not used
-- Statement count: 5
CREATE TABLE "pears"."TempHoliday" (
"TempHolidayID" char(20) NOT NULL
,"HolidayDate" date NOT NULL
,"agencyid" char(20) NULL
,"ClientCode" char(12) NULL
,PRIMARY KEY ("TempHolidayID" ASC)
)
go
COMMENT ON COLUMN "pears"."TempHoliday"."ClientCode" IS
'Referred to by company.tempholidaycode for client specific holidays'
go
COMMENT ON TABLE "pears"."TempHoliday" IS
'A way of recording branch holidays - not used'
go
ALTER TABLE "pears"."TempHoliday"
ADD FOREIGN KEY "agencydetails" ("agencyid" ASC)
REFERENCES "pears"."agencydetails" ("agencyid")
ON DELETE SET NULL
go
CREATE INDEX "TempHolidayDate" ON "pears"."TempHoliday"
( "HolidayDate" )
go