1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
6 <name>civicrm_phone
</name>
7 <comment>Phone information for a specific location.
</comment>
13 <title>Phone ID
</title>
14 <type>int unsigned
</type>
15 <required>true
</required>
16 <comment>Unique Phone ID
</comment>
21 <autoincrement>true
</autoincrement>
24 <name>contact_id
</name>
25 <title>Phone Contact
</title>
26 <type>int unsigned
</type>
27 <comment>FK to Contact ID
</comment>
31 <name>contact_id
</name>
32 <table>civicrm_contact
</table>
35 <onDelete>CASCADE
</onDelete>
38 <name>location_type_id
</name>
39 <title>Phone Location Type ID
</title>
40 <type>int unsigned
</type>
41 <comment>Which Location does this phone belong to.
</comment>
43 <table>civicrm_location_type
</table>
44 <keyColumn>id
</keyColumn>
45 <labelColumn>display_name
</labelColumn>
49 <label>Phone Location Type
</label>
54 <name>index_location_type
</name>
55 <fieldName>location_type_id
</fieldName>
59 <name>is_primary
</name>
60 <title>Primary phone
</title>
66 <comment>Is this the primary phone for this contact and location.
</comment>
70 <name>index_is_primary
</name>
71 <fieldName>is_primary
</fieldName>
75 <name>is_billing
</name>
76 <title>Is Billing Phone
</title>
79 <comment>Is this the billing?
</comment>
83 <name>index_is_billing
</name>
84 <fieldName>is_billing
</fieldName>
88 <name>mobile_provider_id
</name>
89 <title>Mobile Provider
</title>
90 <type>int unsigned
</type>
91 <comment>Which Mobile Provider does this phone belong to.
</comment>
95 <name>UI_mobile_provider_id
</name>
96 <fieldName>mobile_provider_id
</fieldName>
103 <import>true
</import>
104 <headerPattern>/phone/i
</headerPattern>
105 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
106 <comment>Complete phone number.
</comment>
113 <name>phone_ext
</name>
114 <title>Phone Extension
</title>
121 <import>true
</import>
122 <export>true
</export>
123 <headerPattern>/extension/i
</headerPattern>
124 <dataPattern>/^\d+$/
</dataPattern>
125 <comment>Optional extension for a phone number.
</comment>
129 <name>phone_numeric
</name>
132 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
136 <name>index_phone_numeric
</name>
137 <fieldName>phone_numeric
</fieldName>
141 <name>phone_type_id
</name>
142 <title>Phone Type ID
</title>
143 <type>int unsigned
</type>
144 <export>true
</export>
145 <comment>Which type of phone does this number belongs.
</comment>
147 <optionGroupName>phone_type
</optionGroupName>
151 <label>Phone Type
</label>