Merge pull request #5197 from totten/master-abtest-unify
[civicrm-core.git] / xml / schema / Mailing / Recipients.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Mailing</base>
5 <class>Recipients</class>
6 <name>civicrm_mailing_recipients</name>
7 <comment>Stores information about the recipients of a mailing.</comment>
8 <archive>true</archive>
9 <field>
5435b737 10 <name>id</name>
0d94665e 11 <title>Mailing Recipients 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 the mailing this Job will send.</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>contact_id</name>
0d94665e 34 <title>Mailing Recipient</title>
5435b737
EM
35 <type>int unsigned</type>
36 <required>true</required>
37 <comment>FK to Contact</comment>
6a488035
TO
38 </field>
39 <foreignKey>
5435b737
EM
40 <name>contact_id</name>
41 <table>civicrm_contact</table>
42 <key>id</key>
43 <onDelete>CASCADE</onDelete>
6a488035
TO
44 </foreignKey>
45 <field>
5435b737 46 <name>email_id</name>
0d94665e 47 <title>Recipient Email</title>
5435b737
EM
48 <type>int unsigned</type>
49 <default>NULL</default>
50 <comment>FK to Email</comment>
6a488035
TO
51 </field>
52 <foreignKey>
5435b737
EM
53 <name>email_id</name>
54 <table>civicrm_email</table>
55 <key>id</key>
56 <onDelete>CASCADE</onDelete>
6a488035
TO
57 </foreignKey>
58 <field>
5435b737 59 <name>phone_id</name>
0d94665e 60 <title>Recipient Phone</title>
5435b737
EM
61 <type>int unsigned</type>
62 <default>NULL</default>
63 <comment>FK to Phone</comment>
6a488035
TO
64 </field>
65 <foreignKey>
5435b737
EM
66 <name>phone_id</name>
67 <table>civicrm_phone</table>
68 <key>id</key>
69 <onDelete>CASCADE</onDelete>
6a488035
TO
70 </foreignKey>
71</table>