pears.AvailabilityTemplate

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

User defined availability patterns.

Column Type Null Default Comment
AvailTemplateID char(2) NOT NULL
Name char(50) NOT NULL
DivisionID char(20) NULL
TimeFrom time NULL
TimeTo time NULL
PublishToWeb smallint NULL 0
  • AvailTemplateID
Constraint Columns References Delete/update action
Division DivisionID pears.Division (divisionid) ON DELETE SET NULL
Table Constraint Columns Referenced columns
pears.TempShift AvailabilityTemplate AvailTemplateID AvailTemplateID
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."AvailabilityTemplate"
-- Table comment: User defined availability patterns.
-- Statement count: 3
 
CREATE TABLE "pears"."AvailabilityTemplate" (
    "AvailTemplateID"                CHAR(2) NOT NULL
   ,"Name"                           CHAR(50) NOT NULL
   ,"DivisionID"                     CHAR(20) NULL
   ,"TimeFrom"                       TIME NULL
   ,"TimeTo"                         TIME NULL
   ,"PublishToWeb"                   SMALLINT NULL DEFAULT 0
   ,PRIMARY KEY ("AvailTemplateID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."AvailabilityTemplate" IS 
	'User defined availability patterns.'
GO
 
 
ALTER TABLE "pears"."AvailabilityTemplate"
    ADD FOREIGN KEY "Division" ("DivisionID" ASC)
    REFERENCES "pears"."Division" ("divisionid")
    ON DELETE SET NULL
GO
  • database/tables/pears_availabilitytemplate.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1