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>
20 <autoincrement>true
</autoincrement>
24 <type>int unsigned
</type>
25 <title>Group ID
</title>
26 <required>true
</required>
27 <comment>FK to civicrm_group
</comment>
30 <table>civicrm_group
</table>
31 <keyColumn>id
</keyColumn>
32 <labelColumn>title
</labelColumn>
40 <table>civicrm_group
</table>
43 <onDelete>CASCADE
</onDelete>
46 <name>contact_id
</name>
47 <type>int unsigned
</type>
48 <title>Contact ID
</title>
49 <required>true
</required>
50 <comment>FK to civicrm_contact
</comment>
54 <name>contact_id
</name>
55 <table>civicrm_contact
</table>
58 <onDelete>CASCADE
</onDelete>
64 <title>Group Contact Status
</title>
65 <comment>status of contact relative to membership in group
</comment>
67 <callback>CRM_Core_SelectValues::groupContactStatus
</callback>
75 <name>location_id
</name>
76 <type>int unsigned
</type>
77 <title>Group Contact Location
</title>
78 <comment>Optional location to associate with this membership
</comment>
82 <name>location_id
</name>
83 <table>civicrm_loc_block
</table>
86 <onDelete>SET NULL
</onDelete>
90 <type>int unsigned
</type>
91 <title>Group Contact Email
</title>
92 <comment>Optional email to associate with this membership
</comment>
97 <table>civicrm_email
</table>
102 <name>UI_contact_group
</name>
103 <fieldName>contact_id
</fieldName>
104 <fieldName>group_id
</fieldName>
105 <unique>true
</unique>