====== pears.TempShiftPlanAuthorise ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Record of (customer) authorisation of individual TempShiftPlan records. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | AuthorisedBy | char(50) | NULL | | | | **TempShiftPlanID** | char(20) | NOT NULL | | | | WhoEntered | char(20) | NULL | | | | WhenEntered | timestamp | NULL | current timestamp | | ===== Primary Key ===== * TempShiftPlanID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | TempShiftPlan | TempShiftPlanID | [[database:tables:pears_tempshiftplan|pears.TempShiftPlan (TempShiftPlanID)]] | NOT NULL; ON DELETE CASCADE | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- 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