Merge pull request #2649 from rocxa/master
[civicrm-core.git] / xml / schema / Mailing / Event / Queue.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Mailing/Event</base>
5 <class>Queue</class>
6 <name>civicrm_mailing_event_queue</name>
7 <comment>A collection of all intended recipients of a job</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>job_id</name>
20 <type>int unsigned</type>
21 <required>true</required>
22 <comment>FK to Job</comment>
23 </field>
24 <foreignKey>
25 <name>job_id</name>
26 <table>civicrm_mailing_job</table>
27 <key>id</key>
28 <onDelete>CASCADE</onDelete>
29 </foreignKey>
30 <field>
31 <name>email_id</name>
32 <type>int unsigned</type>
011aeb62 33 <default>NULL</default>
6a488035
TO
34 <comment>FK to Email</comment>
35 </field>
36 <foreignKey>
37 <name>email_id</name>
38 <table>civicrm_email</table>
39 <key>id</key>
40 <onDelete>CASCADE</onDelete>
41 </foreignKey>
42 <field>
43 <name>contact_id</name>
44 <type>int unsigned</type>
45 <required>true</required>
46 <comment>FK to Contact</comment>
47 </field>
48 <foreignKey>
49 <name>contact_id</name>
50 <table>civicrm_contact</table>
51 <key>id</key>
52 <onDelete>CASCADE</onDelete>
53 </foreignKey>
54 <field>
55 <name>hash</name>
56 <type>varchar</type>
57 <length>255</length>
58 <required>true</required>
59 <comment>Security hash</comment>
60 </field>
61 <field>
62 <name>phone_id</name>
63 <type>int unsigned</type>
011aeb62 64 <default>NULL</default>
6a488035
TO
65 <comment>FK to Phone</comment>
66 </field>
67 <foreignKey>
68 <name>phone_id</name>
69 <table>civicrm_phone</table>
70 <key>id</key>
71 <onDelete>CASCADE</onDelete>
72 </foreignKey>
73</table>