1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
6 <name>civicrm_phone
</name>
7 <comment>Phone information for a specific location.
</comment>
11 <labelField>phone
</labelField>
14 <title>Phone ID
</title>
15 <type>int unsigned
</type>
16 <required>true
</required>
17 <comment>Unique Phone ID
</comment>
25 <autoincrement>true
</autoincrement>
28 <name>contact_id
</name>
29 <title>Phone Contact
</title>
30 <type>int unsigned
</type>
31 <comment>FK to Contact ID
</comment>
35 <name>contact_id
</name>
36 <table>civicrm_contact
</table>
39 <onDelete>CASCADE
</onDelete>
42 <name>location_type_id
</name>
43 <title>Phone Location Type ID
</title>
44 <type>int unsigned
</type>
45 <comment>Which Location does this phone belong to.
</comment>
47 <table>civicrm_location_type
</table>
48 <keyColumn>id
</keyColumn>
49 <labelColumn>display_name
</labelColumn>
53 <label>Phone Location Type
</label>
58 <name>index_location_type
</name>
59 <fieldName>location_type_id
</fieldName>
63 <name>is_primary
</name>
64 <title>Primary phone
</title>
70 <comment>Is this the primary phone for this contact and location.
</comment>
74 <name>index_is_primary
</name>
75 <fieldName>is_primary
</fieldName>
79 <name>is_billing
</name>
80 <title>Is Billing Phone
</title>
83 <comment>Is this the billing?
</comment>
87 <name>index_is_billing
</name>
88 <fieldName>is_billing
</fieldName>
92 <name>mobile_provider_id
</name>
93 <title>Mobile Provider
</title>
94 <type>int unsigned
</type>
95 <comment>Which Mobile Provider does this phone belong to.
</comment>
99 <name>UI_mobile_provider_id
</name>
100 <fieldName>mobile_provider_id
</fieldName>
107 <import>true
</import>
108 <headerPattern>/phone/i
</headerPattern>
109 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
110 <comment>Complete phone number.
</comment>
117 <name>phone_ext
</name>
118 <title>Phone Extension
</title>
125 <import>true
</import>
126 <export>true
</export>
127 <headerPattern>/extension/i
</headerPattern>
128 <dataPattern>/^\d+$/
</dataPattern>
129 <comment>Optional extension for a phone number.
</comment>
133 <name>phone_numeric
</name>
136 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
140 <name>index_phone_numeric
</name>
141 <fieldName>phone_numeric
</fieldName>
145 <name>phone_type_id
</name>
146 <title>Phone Type ID
</title>
147 <type>int unsigned
</type>
148 <export>true
</export>
149 <comment>Which type of phone does this number belongs.
</comment>
151 <optionGroupName>phone_type
</optionGroupName>
155 <label>Phone Type
</label>