pears.MasterRosterFailLog

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

Records of failure to create or fill shifts from a Master Roster.

Column Type Null Default Comment
MasterRosterFailLogID char(20) NOT NULL
MasterRosterShiftID char(20) NOT NULL
PersonID char(20) NULL Filled if booking failure, empty if creation failure
ShiftDate date NOT NULL
Details long varchar NULL
WhenEntered timestamp NULL current timestamp
  • MasterRosterFailLogID
Constraint Columns References Delete/update action
MasterRosterShift MasterRosterShiftID pears.MasterRosterShift (MasterRosterShiftID) NOT NULL; ON DELETE CASCADE
person PersonID pears.Person (personid) 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"."MasterRosterFailLog"
-- Table comment: Records of failure to create or fill shifts from a Master Roster.
-- Statement count: 5
 
CREATE TABLE "pears"."MasterRosterFailLog" (
    "MasterRosterFailLogID"          CHAR(20) NOT NULL
   ,"MasterRosterShiftID"            CHAR(20) NOT NULL
   ,"PersonID"                       CHAR(20) NULL
   ,"ShiftDate"                      DATE NOT NULL
   ,"Details"                        long VARCHAR NULL
   ,"WhenEntered"                    TIMESTAMP NULL DEFAULT CURRENT TIMESTAMP
   ,PRIMARY KEY ("MasterRosterFailLogID" ASC) 
)
GO
 
 
COMMENT ON COLUMN "pears"."MasterRosterFailLog"."PersonID" IS 
	'Filled if booking failure, empty if creation failure'
GO
 
 
COMMENT ON TABLE "pears"."MasterRosterFailLog" IS 
	'Records of failure to create or fill shifts from a Master Roster.'
GO
 
 
ALTER TABLE "pears"."MasterRosterFailLog"
    ADD NOT NULL FOREIGN KEY "MasterRosterShift" ("MasterRosterShiftID" ASC)
    REFERENCES "pears"."MasterRosterShift" ("MasterRosterShiftID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."MasterRosterFailLog"
    ADD FOREIGN KEY "person" ("PersonID" ASC)
    REFERENCES "pears"."Person" ("personid")
    ON DELETE CASCADE
GO
  • database/tables/pears_masterrosterfaillog.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1