diff --git a/app/contacts/app_config.php b/app/contacts/app_config.php index de26c0be08..f3f858a156 100644 --- a/app/contacts/app_config.php +++ b/app/contacts/app_config.php @@ -294,7 +294,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y = 1; //table array index + $y++; //table array index $apps[$x]['db'][$y]['table'] = "v_contact_addresses"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_address_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -374,7 +374,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description."; $z++; - $y = 2; //table array index + $y++; //table array index $apps[$x]['db'][$y]['table'] = "v_contact_phones"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_phone_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -438,7 +438,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the description."; $z++; - $y = 3; //table array index + $y++; //table array index $apps[$x]['db'][$y]['table'] = "v_contact_notes"; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "id"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "contacts_note_id"; @@ -496,7 +496,44 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y = 4; //table array index + $y++; //table array index + $apps[$x]['db'][$y]['table'] = "v_contact_users"; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_user_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; + $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "primary"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "domain_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; + $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_domains"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "domain_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; + $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_contacts"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "contact_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; + $apps[$x]['db'][$y]['fields'][$z]['name'] = "user_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; + $apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = "text"; + $apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = "char(36)"; + $apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "foreign"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = "v_users"; + $apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "user_uuid"; + $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; + $z++; + + $y++; //table array index $apps[$x]['db'][$y]['table'] = "v_contact_groups"; $apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "contact_group_uuid"; $apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "contact_groups_uuid"; @@ -534,7 +571,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y = 5; //table array index + $y++; //table array index $apps[$x]['db'][$y]['table'] = "v_contact_settings"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_setting_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -585,7 +622,7 @@ $apps[$x]['db'][$y]['fields'][$z]['type'] = "text"; $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; - $y = 6; //table array index + $y++; //table array index $apps[$x]['db'][$y]['table'] = "v_contact_relations"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_relation_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -622,7 +659,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; $z++; - $y = 7; //table array index + $y++; //table array index $apps[$x]['db'][$y]['table'] = "v_contact_emails"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_email_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -666,7 +703,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the email description."; $z++; - $y = 8; //table array index + $y++; //table array index $apps[$x]['db'][$y]['table'] = "v_contact_urls"; $apps[$x]['db'][$y]['fields'][$z]['name'] = "contact_url_uuid"; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = "uuid"; @@ -714,7 +751,7 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the URL description."; $z++; - $y = 9; //table array index + $y++; //table array index $apps[$x]['db'][$y]['table'] = 'v_contact_times'; $apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid'; $apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';