Merge pull request #15231 from pradpnayak/entityrefHook
[civicrm-core.git] / xml / schema / Mailing / Spool.xml
CommitLineData
6a488035
TO
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>
5435b737 9 <name>id</name>
f3ea5182 10 <title>Spool ID</title>
5435b737
EM
11 <type>int unsigned</type>
12 <required>true</required>
6a488035
TO
13 </field>
14 <primaryKey>
5435b737
EM
15 <name>id</name>
16 <autoincrement>true</autoincrement>
6a488035
TO
17 </primaryKey>
18 <field>
5435b737 19 <name>job_id</name>
f3ea5182 20 <title>Mailing Job</title>
5435b737
EM
21 <type>int unsigned</type>
22 <required>true</required>
23 <comment>The ID of the Job .</comment>
6a488035
TO
24 </field>
25 <foreignKey>
5435b737
EM
26 <name>job_id</name>
27 <table>civicrm_mailing_job</table>
28 <key>id</key>
29 <onDelete>CASCADE</onDelete>
6a488035
TO
30 </foreignKey>
31 <field>
5435b737 32 <name>recipient_email</name>
f3ea5182 33 <title>Recipient Email</title>
5435b737
EM
34 <type>text</type>
35 <comment>The email of the receipients this mail is to be sent.</comment>
6a488035
TO
36 </field>
37 <field>
5435b737 38 <name>headers</name>
f3ea5182 39 <title>Headers</title>
5435b737
EM
40 <type>text</type>
41 <comment>The header information of this mailing .</comment>
6a488035
TO
42 </field>
43 <field>
5435b737 44 <name>body</name>
f3ea5182 45 <title>Body</title>
5435b737
EM
46 <type>text</type>
47 <comment>The body of this mailing.</comment>
6a488035
TO
48 </field>
49 <field>
5435b737 50 <name>added_at</name>
f3ea5182 51 <title>Added</title>
4387c66f 52 <type>timestamp</type>
53 <required>false</required>
54 <default>NULL</default>
5435b737 55 <comment>date on which this job was added.</comment>
6a488035
TO
56 </field>
57 <field>
5435b737 58 <name>removed_at</name>
f3ea5182 59 <title>Removed</title>
4387c66f 60 <type>timestamp</type>
61 <required>false</required>
62 <default>NULL</default>
5435b737 63 <comment>date on which this job was removed.</comment>
6a488035
TO
64 </field>
65</table>