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.psHealthPerson ====== <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 ===== Links to PSHealth (now Mobisio) worker records ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **psHealthPersonID** | char(20) | NOT NULL | | | | personid | char(20) | NOT NULL | | | | transferbatch | smallint | NOT NULL | 0 | | | recipientflag | char(1) | NULL | | | | tenantCustomerId | char(20) | NULL | | Person appnumber | | tenantCarerId | char(20) | NULL | | Person appnumber | | tenantBranchId | char(20) | NULL | | | | pin | char(20) | NULL | | | | username | char(50) | NULL | | | | title | char(50) | NULL | | | | firstName | char(50) | NULL | | | | lastName | char(50) | NULL | | | | email | char(50) | NULL | | | | primaryTelephone | char(50) | NULL | | | | secondaryTelephone | char(50) | NULL | | | | dateOfBirth | timestamp | NULL | | | | gender | char(50) | NULL | | | | addressLineOne | char(50) | NULL | | | | addressLineTwo | char(50) | NULL | | | | addressCity | char(50) | NULL | | | | addressPostcode | char(50) | NULL | | | | addressCounty | char(50) | NULL | | | | addressCountry | char(50) | NULL | | | | addressLatitude | double | NULL | | | | addressLongitude | double | NULL | | | | team | char(50) | NULL | | | | nfcTag | char(50) | NULL | | | | location | char(50) | NULL | | | | isActive | smallint | NULL | | check if 1 or 0 or null or true or false | | loginsent | smallint | NOT NULL | 0 | | ===== Primary Key ===== * psHealthPersonID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Person | personid | [[database:tables:pears_person|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 ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."psHealthPerson" -- Table comment: Links to PSHealth (now Mobisio) worker records -- Statement count: 6 CREATE TABLE "pears"."psHealthPerson" ( "psHealthPersonID" char(20) NOT NULL ,"personid" char(20) NOT NULL ,"transferbatch" smallint NOT NULL DEFAULT 0 ,"recipientflag" char(1) NULL ,"tenantCustomerId" char(20) NULL ,"tenantCarerId" char(20) NULL ,"tenantBranchId" char(20) NULL ,"pin" char(20) NULL ,"username" char(50) NULL ,"title" char(50) NULL ,"firstName" char(50) NULL ,"lastName" char(50) NULL ,"email" char(50) NULL ,"primaryTelephone" char(50) NULL ,"secondaryTelephone" char(50) NULL ,"dateOfBirth" timestamp NULL ,"gender" char(50) NULL ,"addressLineOne" char(50) NULL ,"addressLineTwo" char(50) NULL ,"addressCity" char(50) NULL ,"addressPostcode" char(50) NULL ,"addressCounty" char(50) NULL ,"addressCountry" char(50) NULL ,"addressLatitude" double NULL ,"addressLongitude" double NULL ,"team" char(50) NULL ,"nfcTag" char(50) NULL ,"location" char(50) NULL ,"isActive" smallint NULL ,"loginsent" smallint NOT NULL DEFAULT 0 ,PRIMARY KEY ("psHealthPersonID" ASC) ) go COMMENT ON COLUMN "pears"."psHealthPerson"."tenantCustomerId" IS 'Person appnumber' go COMMENT ON COLUMN "pears"."psHealthPerson"."tenantCarerId" IS 'Person appnumber' go COMMENT ON COLUMN "pears"."psHealthPerson"."isActive" IS 'check if 1 or 0 or null or true or false' go COMMENT ON TABLE "pears"."psHealthPerson" IS 'Links to PSHealth (now Mobisio) worker records' go ALTER TABLE "pears"."psHealthPerson" ADD NOT NULL FOREIGN KEY "Person" ("personid" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE go </code> database/tables/pears_pshealthperson.txt Last modified: 2026/08/07 19:24by 127.0.0.1