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