1 <?xml version=
"1.0" encoding=
"iso-8859-1" ?>
4 <base>CRM/Contact
</base>
5 <class>GroupContact
</class>
6 <name>civicrm_group_contact
</name>
7 <comment>Join table sets membership for 'static' groups. Also used to store 'opt-out' entries for 'query' type groups (status = 'OUT')
</comment>
12 <type>int unsigned
</type>
13 <title>Group Contact ID
</title>
14 <required>true
</required>
15 <comment>primary key
</comment>
23 <autoincrement>true
</autoincrement>
27 <type>int unsigned
</type>
28 <title>Group ID
</title>
29 <required>true
</required>
30 <comment>FK to civicrm_group
</comment>
33 <table>civicrm_group
</table>
34 <keyColumn>id
</keyColumn>
35 <labelColumn>title
</labelColumn>
44 <table>civicrm_group
</table>
47 <onDelete>CASCADE
</onDelete>
50 <name>contact_id
</name>
51 <type>int unsigned
</type>
52 <title>Contact ID
</title>
53 <required>true
</required>
54 <comment>FK to civicrm_contact
</comment>
56 <label>Contact
</label>
61 <name>contact_id
</name>
62 <table>civicrm_contact
</table>
65 <onDelete>CASCADE
</onDelete>
71 <title>Group Contact Status
</title>
72 <comment>status of contact relative to membership in group
</comment>
74 <callback>CRM_Core_SelectValues::groupContactStatus
</callback>
82 <name>location_id
</name>
83 <type>int unsigned
</type>
84 <title>Location ID
</title>
85 <comment>Optional location to associate with this membership
</comment>
87 <label>Location
</label>
92 <name>location_id
</name>
93 <table>civicrm_loc_block
</table>
96 <onDelete>SET NULL
</onDelete>
100 <type>int unsigned
</type>
101 <title>Email ID
</title>
102 <comment>Optional email to associate with this membership
</comment>
109 <name>email_id
</name>
110 <table>civicrm_email
</table>
115 <name>UI_contact_group
</name>
116 <fieldName>contact_id
</fieldName>
117 <fieldName>group_id
</fieldName>
118 <unique>true
</unique>