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> | |
449c4e6b | 10 | <title>Instant Messaging</title> |
7b66c3b5 | 11 | <titlePlural>Instant Messaging</titlePlural> |
449c4e6b | 12 | <icon>fa-comments-o</icon> |
8ab43c93 | 13 | <labelField>name</labelField> |
6a488035 | 14 | <field> |
8f069c03 | 15 | <name>id</name> |
32ac94e8 | 16 | <title>Instant Messenger ID</title> |
8f069c03 EM |
17 | <type>int unsigned</type> |
18 | <required>true</required> | |
19 | <comment>Unique IM ID</comment> | |
20 | <add>1.1</add> | |
6a488035 TO |
21 | </field> |
22 | <primaryKey> | |
8f069c03 EM |
23 | <name>id</name> |
24 | <autoincrement>true</autoincrement> | |
6a488035 TO |
25 | </primaryKey> |
26 | <field> | |
8f069c03 | 27 | <name>contact_id</name> |
32ac94e8 | 28 | <title>IM Contact</title> |
8f069c03 EM |
29 | <type>int unsigned</type> |
30 | <comment>FK to Contact ID</comment> | |
31 | <add>2.0</add> | |
6a488035 TO |
32 | </field> |
33 | <foreignKey> | |
8f069c03 EM |
34 | <name>contact_id</name> |
35 | <table>civicrm_contact</table> | |
36 | <key>id</key> | |
37 | <add>2.0</add> | |
38 | <onDelete>CASCADE</onDelete> | |
6a488035 TO |
39 | </foreignKey> |
40 | <field> | |
8f069c03 EM |
41 | <name>location_type_id</name> |
42 | <title>IM Location Type</title> | |
43 | <type>int unsigned</type> | |
44 | <comment>Which Location does this email belong to.</comment> | |
45 | <pseudoconstant> | |
46 | <table>civicrm_location_type</table> | |
47 | <keyColumn>id</keyColumn> | |
48 | <labelColumn>display_name</labelColumn> | |
49 | </pseudoconstant> | |
50 | <add>2.0</add> | |
6903e961 TM |
51 | <html> |
52 | <type>Select</type> | |
53 | </html> | |
6a488035 TO |
54 | </field> |
55 | <index> | |
56 | <name>index_location_type</name> | |
57 | <fieldName>location_type_id</fieldName> | |
58 | <add>2.0</add> | |
59 | </index> | |
60 | <field> | |
8f069c03 EM |
61 | <name>name</name> |
62 | <title>IM Screen Name</title> | |
63 | <type>varchar</type> | |
64 | <length>64</length> | |
65 | <import>true</import> | |
66 | <headerPattern>/I(nstant )?M(ess.*)?|screen(\s+)?name/i</headerPattern> | |
67 | <dataPattern>/^[A-Za-z][0-9A-Za-z]{20,}$/</dataPattern> | |
68 | <comment>IM screen name</comment> | |
69 | <add>1.1</add> | |
6903e961 TM |
70 | <html> |
71 | <type>Text</type> | |
72 | </html> | |
6a488035 TO |
73 | </field> |
74 | <field> | |
8f069c03 EM |
75 | <name>provider_id</name> |
76 | <title>IM Provider</title> | |
77 | <type>int unsigned</type> | |
78 | <comment>Which IM Provider does this screen name belong to.</comment> | |
79 | <add>1.1</add> | |
80 | <pseudoconstant> | |
81 | <optionGroupName>instant_messenger_service</optionGroupName> | |
82 | </pseudoconstant> | |
83 | <html> | |
84 | <type>Select</type> | |
85 | </html> | |
6a488035 TO |
86 | </field> |
87 | <index> | |
88 | <name>UI_provider_id</name> | |
3c7d2158 | 89 | <fieldName>provider_id</fieldName> |
6a488035 TO |
90 | <add>1.6</add> |
91 | </index> | |
92 | <field> | |
8f069c03 | 93 | <name>is_primary</name> |
b6673dcd | 94 | <title>Primary IM</title> |
8f069c03 EM |
95 | <type>boolean</type> |
96 | <default>0</default> | |
b6673dcd CW |
97 | <html> |
98 | <type>Radio</type> | |
99 | </html> | |
8f069c03 EM |
100 | <comment>Is this the primary IM for this contact and location.</comment> |
101 | <add>1.1</add> | |
6a488035 TO |
102 | </field> |
103 | <index> | |
104 | <name>index_is_primary</name> | |
105 | <fieldName>is_primary</fieldName> | |
106 | <add>2.0</add> | |
107 | </index> | |
108 | <field> | |
8f069c03 | 109 | <name>is_billing</name> |
32ac94e8 | 110 | <title>Is IM Billing?</title> |
8f069c03 EM |
111 | <type>boolean</type> |
112 | <default>0</default> | |
113 | <comment>Is this the billing?</comment> | |
114 | <add>2.0</add> | |
6a488035 TO |
115 | </field> |
116 | <index> | |
117 | <name>index_is_billing</name> | |
118 | <fieldName>is_billing</fieldName> | |
119 | <add>2.0</add> | |
120 | </index> | |
121 | </table> |