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.

TableRole
personname, display name, status (0/1/9), user, partner flag
person_email, person_phone, person_objecte-mails, phones (with primary flag), other contact details
person_companycompany link with role
phonenumber, person_phonenumberlink to the phone number master
backup_messagemessage matching
companycompany created by the partner flag

Process

  1. List: filter by name, phone, company group/company (a single group or company is preselected and locked), status; filter_allowed_ids; trash only with canSeeDeleted(). autocomplete: active persons, max. 10; without the right it logs and returns an empty list. companytile: the person's allowed companies.
  2. 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.
  3. matchmessages: matching by phone key (max. 20,000). userautocomplete: user search (max. 10).
  4. Delete: with delete a reference check (getLinkCounts), referenced ones listed, the rest DELETE (linked rows follow the foreign key); with statusdelete only, status = 9.

Permissions

  • Function rights: list (companytile also needs company/company list); form/save canSave(); status and matching edit; user search edit plus 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/user add), notification tile (mail/notify list), messages link (backup/iphonebackup messages).

Known limitations

There is no record-level company scope on the form, save, status or delete; only the list is narrowed.

Related topics: persons contact details