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 <table>civicrm_location_type
</table>
41 <keyColumn>id
</keyColumn>
42 <labelColumn>display_name
</labelColumn>
50 <name>index_location_type
</name>
51 <fieldName>location_type_id
</fieldName>
55 <name>is_primary
</name>
56 <title>Is Phone Primary?
</title>
59 <comment>Is this the primary phone for this contact and location.
</comment>
63 <name>index_is_primary
</name>
64 <fieldName>is_primary
</fieldName>
68 <name>is_billing
</name>
71 <comment>Is this the billing?
</comment>
75 <name>index_is_billing
</name>
76 <fieldName>is_billing
</fieldName>
80 <name>mobile_provider_id
</name>
81 <type>int unsigned
</type>
82 <comment>Which Mobile Provider does this phone belong to.
</comment>
86 <name>UI_mobile_provider_id
</name>
87 <fieldName>mobile_provider_id
</fieldName>
95 <headerPattern>/phone/i
</headerPattern>
96 <dataPattern>/^[\d\(\)\-\.\s]+$/
</dataPattern>
97 <comment>Complete phone number.
</comment>
101 <name>phone_ext
</name>
102 <title>Phone Extension
</title>
109 <import>true
</import>
110 <export>true
</export>
111 <headerPattern>/extension/i
</headerPattern>
112 <dataPattern>/^\d+$/
</dataPattern>
113 <comment>Optional extension for a phone number.
</comment>
117 <name>phone_numeric
</name>
120 <comment>Phone number stripped of all whitespace, letters, and punctuation.
</comment>
124 <name>index_phone_numeric
</name>
125 <fieldName>phone_numeric
</fieldName>
129 <name>phone_type
</name>
131 <values>Phone, Mobile, Fax, Pager
</values>
132 <headerPattern>/phone\s+type/i
</headerPattern>
133 <dataPattern>/phone|mobile|fax|pager/i
</dataPattern>
134 <comment>What type of telecom device is this.
</comment>
139 <name>phone_type_id
</name>
140 <title>Phone Type
</title>
141 <type>int unsigned
</type>
142 <comment>Which type of phone does this number belongs.
</comment>
144 <optionGroupName>phone_type
</optionGroupName>