Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2014-12-16-01-08-03
[civicrm-core.git] / xml / schema / Mailing / MailingGroup.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Mailing</base>
04124b30 5 <class>MailingGroup</class>
6a488035
TO
6 <name>civicrm_mailing_group</name>
7 <comment>Stores information about the groups that participate in this mailing..</comment>
8 <archive>true</archive>
9 <field>
5435b737 10 <name>id</name>
0d94665e 11 <title>Mailing Group ID</title>
5435b737
EM
12 <type>int unsigned</type>
13 <required>true</required>
6a488035
TO
14 </field>
15 <primaryKey>
5435b737
EM
16 <name>id</name>
17 <autoincrement>true</autoincrement>
6a488035
TO
18 </primaryKey>
19 <field>
5435b737 20 <name>mailing_id</name>
0d94665e 21 <title>Mailing</title>
5435b737
EM
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>The ID of a previous mailing to include/exclude recipients.</comment>
6a488035
TO
25 </field>
26 <foreignKey>
5435b737
EM
27 <name>mailing_id</name>
28 <table>civicrm_mailing</table>
29 <key>id</key>
30 <onDelete>CASCADE</onDelete>
6a488035
TO
31 </foreignKey>
32 <field>
5435b737 33 <name>group_type</name>
0d94665e 34 <title>Mailing Group Type</title>
5435b737
EM
35 <type>varchar</type>
36 <length>8</length>
37 <comment>Are the members of the group included or excluded?.</comment>
38 <pseudoconstant>
39 <callback>CRM_Core_SelectValues::getMailingGroupTypes</callback>
40 </pseudoconstant>
41 <html>
42 <type>Select</type>
43 </html>
6a488035
TO
44 </field>
45 <field>
5435b737 46 <name>entity_table</name>
0d94665e 47 <title>Mailing Group Entity Table</title>
5435b737
EM
48 <type>varchar</type>
49 <length>64</length>
50 <required>true</required>
51 <comment>Name of table where item being referenced is stored.</comment>
6a488035
TO
52 </field>
53 <field>
5435b737 54 <name>entity_id</name>
0d94665e 55 <title>Mailing Group Entity</title>
5435b737
EM
56 <type>int unsigned</type>
57 <required>true</required>
58 <comment>Foreign key to the referenced item.</comment>
6a488035 59 </field>
71e5aa5c 60 <dynamicForeignKey>
5435b737
EM
61 <idColumn>entity_id</idColumn>
62 <typeColumn>entity_table</typeColumn>
71e5aa5c 63 </dynamicForeignKey>
6a488035 64 <field>
5435b737 65 <name>search_id</name>
0d94665e 66 <title>Mailing Group Search</title>
5435b737
EM
67 <type>int</type>
68 <comment>The filtering search. custom search id or -1 for civicrm api search</comment>
6a488035
TO
69 </field>
70 <field>
5435b737 71 <name>search_args</name>
0d94665e 72 <title>Mailing Group Search Arguments</title>
5435b737
EM
73 <type>text</type>
74 <comment>The arguments to be sent to the search function</comment>
6a488035
TO
75 </field>
76</table>