| 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 | </field> |
| 53 | <field> |
| 54 | <name>entity_id</name> |
| 55 | <title>Mailing Group Entity</title> |
| 56 | <type>int unsigned</type> |
| 57 | <required>true</required> |
| 58 | <comment>Foreign key to the referenced item.</comment> |
| 59 | </field> |
| 60 | <dynamicForeignKey> |
| 61 | <idColumn>entity_id</idColumn> |
| 62 | <typeColumn>entity_table</typeColumn> |
| 63 | </dynamicForeignKey> |
| 64 | <field> |
| 65 | <name>search_id</name> |
| 66 | <title>Mailing Group Search</title> |
| 67 | <type>int</type> |
| 68 | <comment>The filtering search. custom search id or -1 for civicrm api search</comment> |
| 69 | </field> |
| 70 | <field> |
| 71 | <name>search_args</name> |
| 72 | <title>Mailing Group Search Arguments</title> |
| 73 | <type>text</type> |
| 74 | <comment>The arguments to be sent to the search function</comment> |
| 75 | </field> |
| 76 | </table> |