Table of Contents



pears.TempShiftInvoice

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

Columns

Column Type Null Default Comment
TempShiftInvoiceID char(20) NOT NULL
TempTimeSheetID char(20) NOT NULL
TempShiftID char(20) NOT NULL

Primary Key

Foreign Keys

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

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."TempShiftInvoice"
-- Table comment: 
-- Statement count: 3
 
CREATE TABLE "pears"."TempShiftInvoice" (
    "TempShiftInvoiceID"             CHAR(20) NOT NULL
   ,"TempTimeSheetID"                CHAR(20) NOT NULL
   ,"TempShiftID"                    CHAR(20) NOT NULL
   ,PRIMARY KEY ("TempShiftInvoiceID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."TempShiftInvoice"
    ADD NOT NULL FOREIGN KEY "TempTimeSheet" ("TempTimeSheetID" ASC)
    REFERENCES "pears"."TempTimeSheet" ("TempTimeSheetID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."TempShiftInvoice"
    ADD NOT NULL FOREIGN KEY "TempShift" ("TempShiftID" ASC)
    REFERENCES "pears"."TempShift" ("TempShiftID")
    ON DELETE CASCADE
GO