Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | ||
3 | <table> | |
4 | <base>CRM/Contact</base> | |
5 | <class>GroupOrganization</class> | |
6 | <name>civicrm_group_organization</name> | |
7 | <comment>Integrate Organization information into Groups</comment> | |
8 | <add>2.0</add> | |
9 | <log>true</log> | |
10 | <field> | |
11 | <name>id</name> | |
7cd3d797 | 12 | <title>Group Organization ID</title> |
6a488035 TO |
13 | <type>int unsigned</type> |
14 | <required>true</required> | |
15 | <comment>Relationship ID</comment> | |
0481e12c A |
16 | <html> |
17 | <type>Number</type> | |
18 | </html> | |
6a488035 TO |
19 | <add>2.0</add> |
20 | </field> | |
21 | <primaryKey> | |
22 | <name>id</name> | |
23 | <autoincrement>true</autoincrement> | |
24 | </primaryKey> | |
25 | <field> | |
26 | <name>group_id</name> | |
57e94608 | 27 | <title>Group ID</title> |
6a488035 TO |
28 | <type>int unsigned</type> |
29 | <required>true</required> | |
30 | <comment>ID of the group</comment> | |
31 | <add>2.0</add> | |
29494eef AS |
32 | <pseudoconstant> |
33 | <table>civicrm_group</table> | |
34 | <keyColumn>id</keyColumn> | |
35 | <labelColumn>title</labelColumn> | |
36 | </pseudoconstant> | |
614d72ec | 37 | <html> |
e0991796 | 38 | <type>Select</type> |
57e94608 | 39 | <label>Group</label> |
614d72ec | 40 | </html> |
6a488035 TO |
41 | </field> |
42 | <foreignKey> | |
43 | <name>group_id</name> | |
44 | <table>civicrm_group</table> | |
45 | <key>id</key> | |
46 | <onDelete>CASCADE</onDelete> | |
47 | <add>2.0</add> | |
48 | </foreignKey> | |
49 | <field> | |
50 | <name>organization_id</name> | |
57e94608 | 51 | <title>Organization ID</title> |
6a488035 TO |
52 | <type>int unsigned</type> |
53 | <required>true</required> | |
54 | <comment>ID of the Organization Contact</comment> | |
57e94608 A |
55 | <html> |
56 | <label>Organization</label> | |
57 | </html> | |
6a488035 TO |
58 | <add>2.0</add> |
59 | </field> | |
60 | <foreignKey> | |
61 | <name>organization_id</name> | |
62 | <table>civicrm_contact</table> | |
63 | <key>id</key> | |
64 | <onDelete>CASCADE</onDelete> | |
65 | <add>2.0</add> | |
66 | </foreignKey> | |
67 | <index> | |
68 | <name>UI_group_organization</name> | |
69 | <unique>true</unique> | |
70 | <fieldName>group_id</fieldName> | |
71 | <fieldName>organization_id</fieldName> | |
72 | <add>2.0</add> | |
73 | </index> | |
74 | </table> |