Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Core</base> | |
5 | <class>IM</class> | |
6 | <name>civicrm_im</name> | |
7 | <comment>IM information for a specific location.</comment> | |
8 | <add>1.1</add> | |
9 | <log>true</log> | |
10 | <field> | |
8f069c03 | 11 | <name>id</name> |
32ac94e8 | 12 | <title>Instant Messenger ID</title> |
8f069c03 EM |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
15 | <comment>Unique IM ID</comment> | |
16 | <add>1.1</add> | |
6a488035 TO |
17 | </field> |
18 | <primaryKey> | |
8f069c03 EM |
19 | <name>id</name> |
20 | <autoincrement>true</autoincrement> | |
6a488035 TO |
21 | </primaryKey> |
22 | <field> | |
8f069c03 | 23 | <name>contact_id</name> |
32ac94e8 | 24 | <title>IM Contact</title> |
8f069c03 EM |
25 | <type>int unsigned</type> |
26 | <comment>FK to Contact ID</comment> | |
27 | <add>2.0</add> | |
6a488035 TO |
28 | </field> |
29 | <foreignKey> | |
8f069c03 EM |
30 | <name>contact_id</name> |
31 | <table>civicrm_contact</table> | |
32 | <key>id</key> | |
33 | <add>2.0</add> | |
34 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
35 | </foreignKey> |
36 | <field> | |
8f069c03 EM |
37 | <name>location_type_id</name> |
38 | <title>IM Location Type</title> | |
39 | <type>int unsigned</type> | |
40 | <comment>Which Location does this email belong to.</comment> | |
41 | <pseudoconstant> | |
42 | <table>civicrm_location_type</table> | |
43 | <keyColumn>id</keyColumn> | |
44 | <labelColumn>display_name</labelColumn> | |
45 | </pseudoconstant> | |
46 | <add>2.0</add> | |
6a488035 TO |
47 | </field> |
48 | <index> | |
49 | <name>index_location_type</name> | |
50 | <fieldName>location_type_id</fieldName> | |
51 | <add>2.0</add> | |
52 | </index> | |
53 | <field> | |
8f069c03 EM |
54 | <name>name</name> |
55 | <title>IM Screen Name</title> | |
56 | <type>varchar</type> | |
57 | <length>64</length> | |
58 | <import>true</import> | |
59 | <headerPattern>/I(nstant )?M(ess.*)?|screen(\s+)?name/i</headerPattern> | |
60 | <dataPattern>/^[A-Za-z][0-9A-Za-z]{20,}$/</dataPattern> | |
61 | <comment>IM screen name</comment> | |
62 | <add>1.1</add> | |
6a488035 TO |
63 | </field> |
64 | <field> | |
8f069c03 EM |
65 | <name>provider_id</name> |
66 | <title>IM Provider</title> | |
67 | <type>int unsigned</type> | |
68 | <comment>Which IM Provider does this screen name belong to.</comment> | |
69 | <add>1.1</add> | |
70 | <pseudoconstant> | |
71 | <optionGroupName>instant_messenger_service</optionGroupName> | |
72 | </pseudoconstant> | |
73 | <html> | |
74 | <type>Select</type> | |
75 | </html> | |
6a488035 TO |
76 | </field> |
77 | <index> | |
78 | <name>UI_provider_id</name> | |
3c7d2158 | 79 | <fieldName>provider_id</fieldName> |
6a488035 TO |
80 | <add>1.6</add> |
81 | </index> | |
82 | <field> | |
8f069c03 EM |
83 | <name>is_primary</name> |
84 | <title>Is IM Primary?</title> | |
85 | <type>boolean</type> | |
86 | <default>0</default> | |
87 | <comment>Is this the primary IM for this contact and location.</comment> | |
88 | <add>1.1</add> | |
6a488035 TO |
89 | </field> |
90 | <index> | |
91 | <name>index_is_primary</name> | |
92 | <fieldName>is_primary</fieldName> | |
93 | <add>2.0</add> | |
94 | </index> | |
95 | <field> | |
8f069c03 | 96 | <name>is_billing</name> |
32ac94e8 | 97 | <title>Is IM Billing?</title> |
8f069c03 EM |
98 | <type>boolean</type> |
99 | <default>0</default> | |
100 | <comment>Is this the billing?</comment> | |
101 | <add>2.0</add> | |
6a488035 TO |
102 | </field> |
103 | <index> | |
104 | <name>index_is_billing</name> | |
105 | <fieldName>is_billing</fieldName> | |
106 | <add>2.0</add> | |
107 | </index> | |
108 | </table> |