pears.ExpenseBenefitShiftItem

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

Expense Benefit values for individual Shifts

Column Type Null Default Comment
TempShiftID char(20) NOT NULL
ExpenseBenefitTypeID char(20) NOT NULL
Choice char(20) NULL
Value double NULL
  • TempShiftID, ExpenseBenefitTypeID
Constraint Columns References Delete/update action
TempShift TempShiftID pears.TempShift (TempShiftID) NOT NULL; ON DELETE CASCADE
ExpenseBenefitType ExpenseBenefitTypeID pears.ExpenseBenefitType (ExpenseBenefitTypeID) NOT NULL;
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."ExpenseBenefitShiftItem"
-- Table comment: Expense Benefit values for individual Shifts
-- Statement count: 4
 
CREATE TABLE "pears"."ExpenseBenefitShiftItem" (
    "TempShiftID"                    CHAR(20) NOT NULL
   ,"ExpenseBenefitTypeID"           CHAR(20) NOT NULL
   ,"Choice"                         CHAR(20) NULL
   ,"Value"                          DOUBLE NULL
   ,PRIMARY KEY ("TempShiftID" ASC,"ExpenseBenefitTypeID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."ExpenseBenefitShiftItem" IS 
	'Expense Benefit values for individual Shifts'
GO
 
 
ALTER TABLE "pears"."ExpenseBenefitShiftItem"
    ADD NOT NULL FOREIGN KEY "TempShift" ("TempShiftID" ASC)
    REFERENCES "pears"."TempShift" ("TempShiftID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."ExpenseBenefitShiftItem"
    ADD NOT NULL FOREIGN KEY "ExpenseBenefitType" ("ExpenseBenefitTypeID" ASC)
    REFERENCES "pears"."ExpenseBenefitType" ("ExpenseBenefitTypeID")
GO
  • database/tables/pears_expensebenefitshiftitem.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1