Merge pull request #15421 from artfulrobot/queue-safety
[civicrm-core.git] / xml / schema / Mailing / MailingGroup.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Mailing</base>
5 <class>MailingGroup</class>
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>
10 <name>id</name>
11 <title>Mailing Group ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>mailing_id</name>
21 <title>Mailing</title>
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>The ID of a previous mailing to include/exclude recipients.</comment>
25 </field>
26 <foreignKey>
27 <name>mailing_id</name>
28 <table>civicrm_mailing</table>
29 <key>id</key>
30 <onDelete>CASCADE</onDelete>
31 </foreignKey>
32 <field>
33 <name>group_type</name>
34 <title>Mailing Group Type</title>
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>
44 </field>
45 <field>
46 <name>entity_table</name>
47 <title>Mailing Group Entity Table</title>
48 <type>varchar</type>
49 <length>64</length>
50 <required>true</required>
51 <comment>Name of table where item being referenced is stored.</comment>
52 <pseudoconstant>
53 <callback>CRM_Mailing_BAO_Mailing::mailingGroupEntityTables</callback>
54 </pseudoconstant>
55 </field>
56 <field>
57 <name>entity_id</name>
58 <title>Mailing Group Entity</title>
59 <type>int unsigned</type>
60 <required>true</required>
61 <comment>Foreign key to the referenced item.</comment>
62 </field>
63 <dynamicForeignKey>
64 <idColumn>entity_id</idColumn>
65 <typeColumn>entity_table</typeColumn>
66 </dynamicForeignKey>
67 <field>
68 <name>search_id</name>
69 <title>Mailing Group Search</title>
70 <type>int</type>
71 <comment>The filtering search. custom search id or -1 for civicrm api search</comment>
72 </field>
73 <field>
74 <name>search_args</name>
75 <title>Mailing Group Search Arguments</title>
76 <type>text</type>
77 <comment>The arguments to be sent to the search function</comment>
78 </field>
79 </table>