Merge pull request #22680 from mattwire/paymentstatushelpers
[civicrm-core.git] / xml / schema / Contact / GroupOrganization.xml
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 <title>Group Organization ID</title>
13 <type>int unsigned</type>
14 <required>true</required>
15 <comment>Relationship ID</comment>
16 <html>
17 <type>Number</type>
18 </html>
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>
27 <title>Group ID</title>
28 <type>int unsigned</type>
29 <required>true</required>
30 <comment>ID of the group</comment>
31 <add>2.0</add>
32 <pseudoconstant>
33 <table>civicrm_group</table>
34 <keyColumn>id</keyColumn>
35 <labelColumn>title</labelColumn>
36 </pseudoconstant>
37 <html>
38 <type>Select</type>
39 <label>Group</label>
40 </html>
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>
51 <title>Organization ID</title>
52 <type>int unsigned</type>
53 <required>true</required>
54 <comment>ID of the Organization Contact</comment>
55 <html>
56 <label>Organization</label>
57 </html>
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>