Merge pull request #12728 from pradpnayak/MailingComponent
[civicrm-core.git] / xml / schema / Mailing / Spool.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Mailing</base>
5 <class>Spool</class>
6 <name>civicrm_mailing_spool</name>
7 <comment>Stores the outbond mails</comment>
8 <field>
9 <name>id</name>
10 <title>Spool ID</title>
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 <title>Mailing Job</title>
21 <type>int unsigned</type>
22 <required>true</required>
23 <comment>The ID of the Job .</comment>
24 </field>
25 <foreignKey>
26 <name>job_id</name>
27 <table>civicrm_mailing_job</table>
28 <key>id</key>
29 <onDelete>CASCADE</onDelete>
30 </foreignKey>
31 <field>
32 <name>recipient_email</name>
33 <title>Recipient Email</title>
34 <type>text</type>
35 <comment>The email of the receipients this mail is to be sent.</comment>
36 </field>
37 <field>
38 <name>headers</name>
39 <title>Headers</title>
40 <type>text</type>
41 <comment>The header information of this mailing .</comment>
42 </field>
43 <field>
44 <name>body</name>
45 <title>Body</title>
46 <type>text</type>
47 <comment>The body of this mailing.</comment>
48 </field>
49 <field>
50 <name>added_at</name>
51 <title>Added</title>
52 <type>timestamp</type>
53 <required>false</required>
54 <default>NULL</default>
55 <comment>date on which this job was added.</comment>
56 </field>
57 <field>
58 <name>removed_at</name>
59 <title>Removed</title>
60 <type>timestamp</type>
61 <required>false</required>
62 <default>NULL</default>
63 <comment>date on which this job was removed.</comment>
64 </field>
65 </table>