Merge pull request #5101 from agh1/context-abbrev
[civicrm-core.git] / xml / schema / Contact / GroupNesting.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Contact</base>
5 <class>GroupNesting</class>
6 <name>civicrm_group_nesting</name>
7 <comment>Provide parent-child relationships for groups</comment>
8 <add>2.0</add>
9 <log>true</log>
10 <field>
11 <name>id</name>
7cd3d797 12 <title>Group Nesting 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>child_group_id</name>
7cd3d797 24 <title>Child Group</title>
6a488035
TO
25 <type>int unsigned</type>
26 <required>true</required>
27 <comment>ID of the child group</comment>
28 <add>2.0</add>
29 </field>
30 <foreignKey>
31 <name>child_group_id</name>
32 <table>civicrm_group</table>
33 <key>id</key>
34 <onDelete>CASCADE</onDelete>
35 <add>2.0</add>
36 </foreignKey>
37 <field>
38 <name>parent_group_id</name>
7cd3d797 39 <title>Parent Group</title>
6a488035
TO
40 <type>int unsigned</type>
41 <required>true</required>
42 <comment>ID of the parent group</comment>
43 <add>2.0</add>
44 </field>
45 <foreignKey>
46 <name>parent_group_id</name>
47 <table>civicrm_group</table>
48 <key>id</key>
49 <onDelete>CASCADE</onDelete>
50 <add>2.0</add>
51 </foreignKey>
52</table>