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>
70 <required>true
</required>
74 <comment>Is this the primary phone for this contact and location.
</comment>
78 <name>index_is_primary
</name>
79 <fieldName>is_primary
</fieldName>
83 <name>is_billing
</name>
84 <title>Is Billing Phone
</title>
87 <required>true
</required>
88 <comment>Is this the billing?
</comment>
92 <name>index_is_billing
</name>
93 <fieldName>is_billing
</fieldName>
97 <name>mobile_provider_id
</name>
98 <title>Mobile Provider
</title>
99 <type>int unsigned
</type>
100 <comment>Which Mobile Provider does this phone belong to.
</comment>
104 <name>UI_mobile_provider_id
</name>
105 <fieldName>mobile_provider_id
</fieldName>
112 <import>true
</import>
113 <headerPattern>/phone/i
</headerPattern>
114 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
115 <comment>Complete phone number.
</comment>
123 <name>phone_ext
</name>
124 <title>Phone Extension
</title>
131 <import>true
</import>
132 <export>true
</export>
133 <headerPattern>/extension/i
</headerPattern>
134 <dataPattern>/^\d+$/
</dataPattern>
135 <comment>Optional extension for a phone number.
</comment>
139 <name>phone_numeric
</name>
142 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
144 <label>Numeric
</label>
149 <name>index_phone_numeric
</name>
150 <fieldName>phone_numeric
</fieldName>
154 <name>phone_type_id
</name>
155 <title>Phone Type ID
</title>
156 <type>int unsigned
</type>
157 <export>true
</export>
158 <comment>Which type of phone does this number belongs.
</comment>
160 <optionGroupName>phone_type
</optionGroupName>
164 <label>Phone Type
</label>