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>Is Phone Primary?
</title>
61 <comment>Is this the primary phone for this contact and location.
</comment>
65 <name>index_is_primary
</name>
66 <fieldName>is_primary
</fieldName>
70 <name>is_billing
</name>
71 <title>Is Billing Phone
</title>
74 <comment>Is this the billing?
</comment>
78 <name>index_is_billing
</name>
79 <fieldName>is_billing
</fieldName>
83 <name>mobile_provider_id
</name>
84 <title>Mobile Provider
</title>
85 <type>int unsigned
</type>
86 <comment>Which Mobile Provider does this phone belong to.
</comment>
90 <name>UI_mobile_provider_id
</name>
91 <fieldName>mobile_provider_id
</fieldName>
99 <headerPattern>/phone/i
</headerPattern>
100 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
101 <comment>Complete phone number.
</comment>
105 <name>phone_ext
</name>
106 <title>Phone Extension
</title>
113 <import>true
</import>
114 <export>true
</export>
115 <headerPattern>/extension/i
</headerPattern>
116 <dataPattern>/^\d+$/
</dataPattern>
117 <comment>Optional extension for a phone number.
</comment>
121 <name>phone_numeric
</name>
124 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
128 <name>index_phone_numeric
</name>
129 <fieldName>phone_numeric
</fieldName>
133 <name>phone_type
</name>
135 <values>Phone, Mobile, Fax, Pager
</values>
136 <headerPattern>/phone\s+type/i
</headerPattern>
137 <dataPattern>/phone|mobile|fax|pager/i
</dataPattern>
138 <comment>What type of telecom device is this.
</comment>
143 <name>phone_type_id
</name>
144 <title>Phone Type
</title>
145 <type>int unsigned
</type>
146 <comment>Which type of phone does this number belongs.
</comment>
148 <optionGroupName>phone_type
</optionGroupName>