Table of Contents



pears.ExpenseBenefitShiftItem

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

Description

Expense Benefit values for individual Shifts

Columns

Column Type Null Default Comment
TempShiftID char(20) NOT NULL
ExpenseBenefitTypeID char(20) NOT NULL
Choice char(20) NULL
Value double NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
TempShift TempShiftID pears.TempShift (TempShiftID) NOT NULL; ON DELETE CASCADE
ExpenseBenefitType ExpenseBenefitTypeID pears.ExpenseBenefitType (ExpenseBenefitTypeID) NOT NULL;

Referenced By

Indexes

Triggers

Original SQL

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