Merge pull request #23181 from civicrm/5.49
[civicrm-core.git] / xml / schema / Contact / GroupNesting.xml
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>
12 <title>Group Nesting 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>child_group_id</name>
27 <title>Child Group ID</title>
28 <type>int unsigned</type>
29 <required>true</required>
30 <comment>ID of the child group</comment>
31 <html>
32 <label>Child Group</label>
33 </html>
34 <add>2.0</add>
35 </field>
36 <foreignKey>
37 <name>child_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>parent_group_id</name>
45 <title>Parent Group ID</title>
46 <type>int unsigned</type>
47 <required>true</required>
48 <comment>ID of the parent group</comment>
49 <html>
50 <label>Parent Group</label>
51 </html>
52 <add>2.0</add>
53 </field>
54 <foreignKey>
55 <name>parent_group_id</name>
56 <table>civicrm_group</table>
57 <key>id</key>
58 <onDelete>CASCADE</onDelete>
59 <add>2.0</add>
60 </foreignKey>
61 </table>