pears.PersonWillingnessHistory
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Description
Peak Integration - how willing is someone to work. Generated by 3rd party and sent to IQX
Columns
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| PersonWillingnessHistoryID | bigint | NOT NULL | autoincrement | |
| PersonID | char(20) | NOT NULL | ||
| Willingness | smallint | NULL | ||
| WhenUpdated | timestamp | NOT NULL | current timestamp |
Primary Key
- PersonWillingnessHistoryID
Foreign Keys
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| person | PersonID | pears.Person (personid) | NOT NULL; ON DELETE CASCADE |
Referenced By
- No incoming foreign keys found.
Indexes
- No indexes found.
Triggers
- No triggers found.
Original SQL
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."PersonWillingnessHistory" -- Table comment: Peak Integration - how willing is someone to work. Generated by 3rd party and sent to IQX -- Statement count: 3 CREATE TABLE "pears"."PersonWillingnessHistory" ( "PersonWillingnessHistoryID" BIGINT NOT NULL DEFAULT autoincrement ,"PersonID" CHAR(20) NOT NULL ,"Willingness" SMALLINT NULL ,"WhenUpdated" TIMESTAMP NOT NULL DEFAULT CURRENT TIMESTAMP ,PRIMARY KEY ("PersonWillingnessHistoryID" ASC) ) GO COMMENT ON TABLE "pears"."PersonWillingnessHistory" IS 'Peak Integration - how willing is someone to work. Generated by 3rd party and sent to IQX' GO ALTER TABLE "pears"."PersonWillingnessHistory" ADD NOT NULL FOREIGN KEY "person" ("PersonID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE GO