v_occupancy: Many-to-One (N:1)
Many contacts link to one occupancy
Referenced through place_id
Column | Type | Description |
id | integer | Primary key |
contact_type_id | integer | Contact type |
contact_type | varchar(30) | Type description |
contact_primary_occupancy | boolean | Primary contact |
contact_first_name | varchar(128) | First name |
contact_last_name | varchar(128) | Last name |
contact_name | varchar(255) | Full name |
contact_company_name | varchar(255) | Company name |
contact_phone | varchar(50) | Phone number |
contact_phone2 | varchar(50) | Alt phone |
contact_mobile | varchar(50) | Mobile number |
contact_email | varchar(255) | |
contact_notes | text | Additional notes |
client_code | varchar(28) | Organization ID |
preplan_business_name | varchar(128) | Business name |
location_cache | text | Location details |
place_id | integer | Location reference |