pears.TempShiftPlanAuthorise

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

Record of (customer) authorisation of individual TempShiftPlan records.

Column Type Null Default Comment
AuthorisedBy char(50) NULL
TempShiftPlanID char(20) NOT NULL
WhoEntered char(20) NULL
WhenEntered timestamp NULL current timestamp
  • TempShiftPlanID
Constraint Columns References Delete/update action
TempShiftPlan TempShiftPlanID pears.TempShiftPlan (TempShiftPlanID) NOT NULL; ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."TempShiftPlanAuthorise"
-- Table comment: Record of (customer) authorisation of individual TempShiftPlan records.
-- Statement count: 3
 
CREATE TABLE "pears"."TempShiftPlanAuthorise" (
    "AuthorisedBy"                   CHAR(50) NULL
   ,"TempShiftPlanID"                CHAR(20) NOT NULL
   ,"WhoEntered"                     CHAR(20) NULL
   ,"WhenEntered"                    TIMESTAMP NULL DEFAULT CURRENT TIMESTAMP
   ,PRIMARY KEY ("TempShiftPlanID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."TempShiftPlanAuthorise" IS 
	'Record of (customer) authorisation of individual TempShiftPlan records.'
GO
 
 
ALTER TABLE "pears"."TempShiftPlanAuthorise"
    ADD NOT NULL FOREIGN KEY "TempShiftPlan" ("TempShiftPlanID" ASC)
    REFERENCES "pears"."TempShiftPlan" ("TempShiftPlanID")
    ON DELETE CASCADE
GO
  • database/tables/pears_tempshiftplanauthorise.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1