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
</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>
53 <name>index_location_type
</name>
54 <fieldName>location_type_id
</fieldName>
58 <name>is_primary
</name>
59 <title>Primary phone
</title>
65 <comment>Is this the primary phone for this contact and location.
</comment>
69 <name>index_is_primary
</name>
70 <fieldName>is_primary
</fieldName>
74 <name>is_billing
</name>
75 <title>Is Billing Phone
</title>
78 <comment>Is this the billing?
</comment>
82 <name>index_is_billing
</name>
83 <fieldName>is_billing
</fieldName>
87 <name>mobile_provider_id
</name>
88 <title>Mobile Provider
</title>
89 <type>int unsigned
</type>
90 <comment>Which Mobile Provider does this phone belong to.
</comment>
94 <name>UI_mobile_provider_id
</name>
95 <fieldName>mobile_provider_id
</fieldName>
102 <import>true
</import>
103 <headerPattern>/phone/i
</headerPattern>
104 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
105 <comment>Complete phone number.
</comment>
112 <name>phone_ext
</name>
113 <title>Phone Extension
</title>
120 <import>true
</import>
121 <export>true
</export>
122 <headerPattern>/extension/i
</headerPattern>
123 <dataPattern>/^\d+$/
</dataPattern>
124 <comment>Optional extension for a phone number.
</comment>
128 <name>phone_numeric
</name>
131 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
135 <name>index_phone_numeric
</name>
136 <fieldName>phone_numeric
</fieldName>
140 <name>phone_type
</name>
142 <values>Phone, Mobile, Fax, Pager
</values>
143 <headerPattern>/phone\s+type/i
</headerPattern>
144 <dataPattern>/phone|mobile|fax|pager/i
</dataPattern>
145 <comment>What type of telecom device is this.
</comment>
150 <name>phone_type_id
</name>
151 <title>Phone Type
</title>
152 <type>int unsigned
</type>
153 <export>true
</export>
154 <comment>Which type of phone does this number belongs.
</comment>
156 <optionGroupName>phone_type
</optionGroupName>