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>Contact ID
</title>
30 <type>int unsigned
</type>
31 <comment>FK to Contact ID
</comment>
33 <label>Contact
</label>
38 <name>contact_id
</name>
39 <table>civicrm_contact
</table>
42 <onDelete>CASCADE
</onDelete>
45 <name>location_type_id
</name>
46 <title>Location Type ID
</title>
47 <type>int unsigned
</type>
48 <comment>Which Location does this phone belong to.
</comment>
50 <table>civicrm_location_type
</table>
51 <keyColumn>id
</keyColumn>
52 <labelColumn>display_name
</labelColumn>
56 <label>Location Type
</label>
61 <name>index_location_type
</name>
62 <fieldName>location_type_id
</fieldName>
66 <name>is_primary
</name>
67 <title>Primary phone
</title>
73 <comment>Is this the primary phone for this contact and location.
</comment>
77 <name>index_is_primary
</name>
78 <fieldName>is_primary
</fieldName>
82 <name>is_billing
</name>
83 <title>Is Billing Phone
</title>
86 <comment>Is this the billing?
</comment>
90 <name>index_is_billing
</name>
91 <fieldName>is_billing
</fieldName>
95 <name>mobile_provider_id
</name>
96 <title>Mobile Provider
</title>
97 <type>int unsigned
</type>
98 <comment>Which Mobile Provider does this phone belong to.
</comment>
102 <name>UI_mobile_provider_id
</name>
103 <fieldName>mobile_provider_id
</fieldName>
110 <import>true
</import>
111 <headerPattern>/phone/i
</headerPattern>
112 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
113 <comment>Complete phone number.
</comment>
121 <name>phone_ext
</name>
122 <title>Phone Extension
</title>
129 <import>true
</import>
130 <export>true
</export>
131 <headerPattern>/extension/i
</headerPattern>
132 <dataPattern>/^\d+$/
</dataPattern>
133 <comment>Optional extension for a phone number.
</comment>
137 <name>phone_numeric
</name>
140 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
142 <label>Numeric
</label>
147 <name>index_phone_numeric
</name>
148 <fieldName>phone_numeric
</fieldName>
152 <name>phone_type_id
</name>
153 <title>Phone Type ID
</title>
154 <type>int unsigned
</type>
155 <export>true
</export>
156 <comment>Which type of phone does this number belongs.
</comment>
158 <optionGroupName>phone_type
</optionGroupName>
162 <label>Phone Type
</label>