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> | |
16 | <add>2.0</add> | |
17 | </field> | |
18 | <primaryKey> | |
19 | <name>id</name> | |
20 | <autoincrement>true</autoincrement> | |
21 | </primaryKey> | |
22 | <field> | |
23 | <name>group_id</name> | |
7cd3d797 | 24 | <title>Group</title> |
6a488035 TO |
25 | <type>int unsigned</type> |
26 | <required>true</required> | |
27 | <comment>ID of the group</comment> | |
28 | <add>2.0</add> | |
29494eef AS |
29 | <pseudoconstant> |
30 | <table>civicrm_group</table> | |
31 | <keyColumn>id</keyColumn> | |
32 | <labelColumn>title</labelColumn> | |
33 | </pseudoconstant> | |
614d72ec | 34 | <html> |
e0991796 | 35 | <type>Select</type> |
614d72ec | 36 | </html> |
6a488035 TO |
37 | </field> |
38 | <foreignKey> | |
39 | <name>group_id</name> | |
40 | <table>civicrm_group</table> | |
41 | <key>id</key> | |
42 | <onDelete>CASCADE</onDelete> | |
43 | <add>2.0</add> | |
44 | </foreignKey> | |
45 | <field> | |
46 | <name>organization_id</name> | |
7cd3d797 | 47 | <title>Organization</title> |
6a488035 TO |
48 | <type>int unsigned</type> |
49 | <required>true</required> | |
50 | <comment>ID of the Organization Contact</comment> | |
51 | <add>2.0</add> | |
52 | </field> | |
53 | <foreignKey> | |
54 | <name>organization_id</name> | |
55 | <table>civicrm_contact</table> | |
56 | <key>id</key> | |
57 | <onDelete>CASCADE</onDelete> | |
58 | <add>2.0</add> | |
59 | </foreignKey> | |
60 | <index> | |
61 | <name>UI_group_organization</name> | |
62 | <unique>true</unique> | |
63 | <fieldName>group_id</fieldName> | |
64 | <fieldName>organization_id</fieldName> | |
65 | <add>2.0</add> | |
66 | </index> | |
67 | </table> |