Persons – system description
Tables of the person master, side effects of saving (partner company, message matching), the two deletion types and the limits of content scope.
Person master with name, e-mails, phone numbers, other contact details, company links with roles, system user link and partner flag. The list is narrowed to persons linked to allowed companies.
Data model
Table names carry the installation's own prefix in the database.
| Table | Role |
|---|---|
person | name, display name, status (0/1/9), user, partner flag |
person_email, person_phone, person_object | e-mails, phones (with primary flag), other contact details |
person_company | company link with role |
phonenumber, person_phonenumber | link to the phone number master |
backup_message | message matching |
company | company created by the partner flag |
Process
- List: filter by name, phone, company group/company (a single group or company is preselected and locked), status;
filter_allowed_ids; trash only withcanSeeDeleted().autocomplete: active persons, max. 10; without the right it logs and returns an empty list.companytile: the person's allowed companies. - Save: at least one name field, e-mail format; phones, e-mails, objects (only if the form sends them), companies, user, partner flag →
savePerson(); rejected phone numbers as warnings; then automatic message matching (max. 5000). With the partner flag the model creates a company row. matchmessages: matching by phone key (max. 20,000).userautocomplete: user search (max. 10).- Delete: with
deletea reference check (getLinkCounts), referenced ones listed, the restDELETE(linked rows follow the foreign key); withstatusdeleteonly,status = 9.
Permissions
- Function rights:
list(companytilealso needscompany/companylist); form/savecanSave(); status and matchingedit; user searcheditplus the user list right;delete(bulk right for several),statusdelete,bulkdelete(button display),debug. The keys have a catalogue seed. - Related rights on the form: create login (
user/useradd), notification tile (mail/notifylist), messages link (backup/iphonebackupmessages).
Known limitations
There is no record-level company scope on the form, save, status or delete; only the list is narrowed.