CRM-13497 - Move rows and cols
[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>
6a488035
TO
32 </field>
33 <foreignKey>
34 <name>group_id</name>
35 <table>civicrm_group</table>
36 <key>id</key>
37 <onDelete>CASCADE</onDelete>
38 <add>2.0</add>
39 </foreignKey>
40 <field>
41 <name>organization_id</name>
42 <type>int unsigned</type>
43 <required>true</required>
44 <comment>ID of the Organization Contact</comment>
45 <add>2.0</add>
46 </field>
47 <foreignKey>
48 <name>organization_id</name>
49 <table>civicrm_contact</table>
50 <key>id</key>
51 <onDelete>CASCADE</onDelete>
52 <add>2.0</add>
53 </foreignKey>
54 <index>
55 <name>UI_group_organization</name>
56 <unique>true</unique>
57 <fieldName>group_id</fieldName>
58 <fieldName>organization_id</fieldName>
59 <add>2.0</add>
60 </index>
61</table>