pears.StagedPayments

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

For dealing with staggered payments for perms.

Column Type Null Default Comment
StagedPaymentID char(20) NOT NULL
PlacementID char(20) NULL
Description char(50) NULL
ActionDate date NULL
InvoiceFrequency char(1) NULL <W>eekly, <2> weekly, <4> weekly, <M>onthly
Amount double NULL 0
Billed smallint NULL 0
Paid smallint NULL 0
Credited smallint NULL 0
  • StagedPaymentID
Constraint Columns References Delete/update action
placement PlacementID pears.Placement (placementid) ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."StagedPayments"
-- Table comment: For dealing with staggered payments for perms.
-- Statement count: 4
 
CREATE TABLE "pears"."StagedPayments" (
    "StagedPaymentID"                CHAR(20) NOT NULL
   ,"PlacementID"                    CHAR(20) NULL
   ,"Description"                    CHAR(50) NULL
   ,"ActionDate"                     DATE NULL
   ,"InvoiceFrequency"               CHAR(1) NULL
   ,"Amount"                         DOUBLE NULL DEFAULT 0
   ,"Billed"                         SMALLINT NULL DEFAULT 0
   ,"Paid"                           SMALLINT NULL DEFAULT 0
   ,"Credited"                       SMALLINT NULL DEFAULT 0
   ,PRIMARY KEY ("StagedPaymentID" ASC) 
)
GO
 
 
COMMENT ON COLUMN "pears"."StagedPayments"."InvoiceFrequency" IS 
	'<W>eekly, <2> weekly, <4> weekly, <M>onthly'
GO
 
 
COMMENT ON TABLE "pears"."StagedPayments" IS 
	'For dealing with staggered payments for perms.'
GO
 
 
ALTER TABLE "pears"."StagedPayments"
    ADD FOREIGN KEY "placement" ("PlacementID" ASC)
    REFERENCES "pears"."Placement" ("placementid")
    ON DELETE CASCADE
GO
  • database/tables/pears_stagedpayments.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1