Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.AvailabilityTemplate ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== User defined availability patterns. ===== Columns ===== ^ 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 | | ===== Primary Key ===== * AvailTemplateID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Division | DivisionID | [[database:tables:pears_division|pears.Division (divisionid)]] | ON DELETE SET NULL | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_tempshift|pears.TempShift]] | AvailabilityTemplate | AvailTemplateID | AvailTemplateID | ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- 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 </code> database/tables/pears_availabilitytemplate.txt Last modified: 2026/08/07 19:24by 127.0.0.1