1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
6 <name>civicrm_phone
</name>
7 <comment>Phone information for a specific location.
</comment>
12 <type>int unsigned
</type>
13 <required>true
</required>
14 <comment>Unique Phone ID
</comment>
19 <autoincrement>true
</autoincrement>
22 <name>contact_id
</name>
23 <type>int unsigned
</type>
24 <comment>FK to Contact ID
</comment>
28 <name>contact_id
</name>
29 <table>civicrm_contact
</table>
32 <onDelete>CASCADE
</onDelete>
35 <name>location_type_id
</name>
36 <title>Phone Location Type
</title>
37 <type>int unsigned
</type>
38 <comment>Which Location does this phone belong to.
</comment>
40 <name>locationType
</name>
41 <table>civicrm_location_type
</table>
42 <keyColumn>id
</keyColumn>
43 <labelColumn>name
</labelColumn>
48 <name>index_location_type
</name>
49 <fieldName>location_type_id
</fieldName>
53 <name>is_primary
</name>
54 <title>Is Phone Primary?
</title>
57 <comment>Is this the primary phone for this contact and location.
</comment>
61 <name>index_is_primary
</name>
62 <fieldName>is_primary
</fieldName>
66 <name>is_billing
</name>
69 <comment>Is this the billing?
</comment>
73 <name>index_is_billing
</name>
74 <fieldName>is_billing
</fieldName>
78 <name>mobile_provider_id
</name>
79 <type>int unsigned
</type>
80 <comment>Which Mobile Provider does this phone belong to.
</comment>
84 <name>UI_mobile_provider_id
</name>
85 <fieldName>mobile_provider_id
</fieldName>
93 <headerPattern>/phone/i
</headerPattern>
94 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
95 <comment>Complete phone number.
</comment>
99 <name>phone_ext
</name>
100 <title>Phone Extension
</title>
104 <import>true
</import>
105 <export>true
</export>
106 <headerPattern>/extension/i
</headerPattern>
107 <dataPattern>/^\d+$/
</dataPattern>
108 <comment>Optional extension for a phone number.
</comment>
112 <name>phone_numeric
</name>
115 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
119 <name>index_phone_numeric
</name>
120 <fieldName>phone_numeric
</fieldName>
124 <name>phone_type
</name>
126 <values>Phone, Mobile, Fax, Pager
</values>
127 <headerPattern>/phone\s+type/i
</headerPattern>
128 <dataPattern>/phone|mobile|fax|pager/i
</dataPattern>
129 <comment>What type of telecom device is this.
</comment>
134 <name>phone_type_id
</name>
135 <title>Phone Type
</title>
136 <type>int unsigned
</type>
137 <comment>Which type of phone does this number belongs.
</comment>
139 <name>phoneType
</name>
140 <optionGroupName>phoneType
</optionGroupName>