pears.TempSubsidy

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

Details of subsidies (advances) paid to temps.

Column Type Null Default Comment
TempSubsidyID integer NOT NULL
PersonID char(20) NOT NULL
StaffID char(20) NOT NULL
DatePaid date NOT NULL
AmountPaid double NOT NULL
TransferBatch integer NULL
Description char(50) NULL
SubsidyTypeID char(2) NULL
  • TempSubsidyID
Constraint Columns References Delete/update action
Person PersonID pears.Person (personid) NOT NULL; ON DELETE CASCADE
Staff StaffID pears.staff (staffid) NOT NULL;
  • No incoming foreign keys found.
Name Type Columns Detail
tempsubsidy_transferbatch Index TransferBatch
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."TempSubsidy"
-- Table comment: Details of subsidies (advances) paid to temps.
-- Statement count: 5
 
CREATE TABLE "pears"."TempSubsidy" (
    "TempSubsidyID"                  INTEGER NOT NULL
   ,"PersonID"                       CHAR(20) NOT NULL
   ,"StaffID"                        CHAR(20) NOT NULL
   ,"DatePaid"                       DATE NOT NULL
   ,"AmountPaid"                     DOUBLE NOT NULL
   ,"TransferBatch"                  INTEGER NULL
   ,"Description"                    CHAR(50) NULL
   ,"SubsidyTypeID"                  CHAR(2) NULL
   ,PRIMARY KEY ("TempSubsidyID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."TempSubsidy" IS 
	'Details of subsidies (advances) paid to temps.'
GO
 
 
ALTER TABLE "pears"."TempSubsidy"
    ADD NOT NULL FOREIGN KEY "Person" ("PersonID" ASC)
    REFERENCES "pears"."Person" ("personid")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."TempSubsidy"
    ADD NOT NULL FOREIGN KEY "Staff" ("StaffID" ASC)
    REFERENCES "pears"."staff" ("staffid")
GO
 
 
CREATE INDEX "tempsubsidy_transferbatch" ON "pears"."TempSubsidy"
    ( "TransferBatch" )
GO
  • database/tables/pears_tempsubsidy.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1