Import from SVN (r45945, r596)
[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>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 </field>
14 <primaryKey>
15 <name>id</name>
16 <autoincrement>true</autoincrement>
17 </primaryKey>
18 <field>
19 <name>mailing_id</name>
20 <type>int unsigned</type>
21 <required>true</required>
22 <comment>The ID of the mailing this Job will send.</comment>
23 </field>
24 <foreignKey>
25 <name>mailing_id</name>
26 <table>civicrm_mailing</table>
27 <key>id</key>
28 <onDelete>CASCADE</onDelete>
29 </foreignKey>
30 <field>
31 <name>contact_id</name>
32 <type>int unsigned</type>
33 <required>true</required>
34 <comment>FK to Contact</comment>
35 </field>
36 <foreignKey>
37 <name>contact_id</name>
38 <table>civicrm_contact</table>
39 <key>id</key>
40 <onDelete>CASCADE</onDelete>
41 </foreignKey>
42 <field>
43 <name>email_id</name>
44 <type>int unsigned</type>
45 <default>NULL</default>
46 <comment>FK to Email</comment>
47 </field>
48 <foreignKey>
49 <name>email_id</name>
50 <table>civicrm_email</table>
51 <key>id</key>
52 <onDelete>CASCADE</onDelete>
53 </foreignKey>
54 <field>
55 <name>phone_id</name>
56 <type>int unsigned</type>
57 <default>NULL</default>
58 <comment>FK to Phone</comment>
59 </field>
60 <foreignKey>
61 <name>phone_id</name>
62 <table>civicrm_phone</table>
63 <key>id</key>
64 <onDelete>CASCADE</onDelete>
65 </foreignKey>
66</table>