1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
6 <name>civicrm_phone
</name>
7 <comment>Phone information for a specific location.
</comment>
12 <title>Phone ID
</title>
13 <type>int unsigned
</type>
14 <required>true
</required>
15 <comment>Unique Phone ID
</comment>
20 <autoincrement>true
</autoincrement>
23 <name>contact_id
</name>
24 <title>Phone Contact
</title>
25 <type>int unsigned
</type>
26 <comment>FK to Contact ID
</comment>
30 <name>contact_id
</name>
31 <table>civicrm_contact
</table>
34 <onDelete>CASCADE
</onDelete>
37 <name>location_type_id
</name>
38 <title>Phone Location Type
</title>
39 <type>int unsigned
</type>
40 <comment>Which Location does this phone belong to.
</comment>
42 <table>civicrm_location_type
</table>
43 <keyColumn>id
</keyColumn>
44 <labelColumn>display_name
</labelColumn>
52 <name>index_location_type
</name>
53 <fieldName>location_type_id
</fieldName>
57 <name>is_primary
</name>
58 <title>Primary phone
</title>
64 <comment>Is this the primary phone for this contact and location.
</comment>
68 <name>index_is_primary
</name>
69 <fieldName>is_primary
</fieldName>
73 <name>is_billing
</name>
74 <title>Is Billing Phone
</title>
77 <comment>Is this the billing?
</comment>
81 <name>index_is_billing
</name>
82 <fieldName>is_billing
</fieldName>
86 <name>mobile_provider_id
</name>
87 <title>Mobile Provider
</title>
88 <type>int unsigned
</type>
89 <comment>Which Mobile Provider does this phone belong to.
</comment>
93 <name>UI_mobile_provider_id
</name>
94 <fieldName>mobile_provider_id
</fieldName>
101 <import>true
</import>
102 <headerPattern>/phone/i
</headerPattern>
103 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
104 <comment>Complete phone number.
</comment>
111 <name>phone_ext
</name>
112 <title>Phone Extension
</title>
119 <import>true
</import>
120 <export>true
</export>
121 <headerPattern>/extension/i
</headerPattern>
122 <dataPattern>/^\d+$/
</dataPattern>
123 <comment>Optional extension for a phone number.
</comment>
127 <name>phone_numeric
</name>
130 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
134 <name>index_phone_numeric
</name>
135 <fieldName>phone_numeric
</fieldName>
139 <name>phone_type
</name>
141 <values>Phone, Mobile, Fax, Pager
</values>
142 <headerPattern>/phone\s+type/i
</headerPattern>
143 <dataPattern>/phone|mobile|fax|pager/i
</dataPattern>
144 <comment>What type of telecom device is this.
</comment>
149 <name>phone_type_id
</name>
150 <title>Phone Type
</title>
151 <type>int unsigned
</type>
152 <export>true
</export>
153 <comment>Which type of phone does this number belongs.
</comment>
155 <optionGroupName>phone_type
</optionGroupName>