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 | 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