Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.TempSubsidy ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== Details of subsidies (advances) paid to temps. ===== Columns ===== ^ 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 | | | ===== Primary Key ===== * TempSubsidyID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Person | PersonID | [[database:tables:pears_person|pears.Person (personid)]] | NOT NULL; ON DELETE CASCADE | | Staff | StaffID | [[database:tables:pears_staff|pears.staff (staffid)]] | NOT NULL; | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | tempsubsidy_transferbatch | Index | TransferBatch | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- 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 </code> database/tables/pears_tempsubsidy.txt Last modified: 2026/08/07 19:24by 127.0.0.1