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 |
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| Person | PersonID | pears.Person (personid) | NOT NULL; ON DELETE CASCADE |
| Staff | StaffID | pears.staff (staffid) | NOT NULL; |
| Name | Type | Columns | Detail |
|---|---|---|---|
| tempsubsidy_transferbatch | Index | TransferBatch |
-- 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