Merge pull request #15300 from civicrm/5.18
[civicrm-core.git] / xml / schema / Mailing / MailingJob.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Mailing</base>
5 <class>MailingJob</class>
6 <name>civicrm_mailing_job</name>
7 <comment>Stores information about the job that executes this mailing</comment>
8 <archive>true</archive>
9 <field>
10 <name>id</name>
11 <title>Mailing Job ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>mailing_id</name>
21 <title>Mailing</title>
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>The ID of the mailing this Job will send.</comment>
25 </field>
26 <foreignKey>
27 <name>mailing_id</name>
28 <table>civicrm_mailing</table>
29 <key>id</key>
30 <onDelete>CASCADE</onDelete>
31 </foreignKey>
32 <field>
33 <name>scheduled_date</name>
34 <title>Mailing Scheduled Date</title>
35 <type>timestamp</type>
36 <default>NULL</default>
37 <required>false</required>
38 <comment>date on which this job was scheduled.</comment>
39 </field>
40 <field>
41 <name>start_date</name>
42 <uniqueName>mailing_job_start_date</uniqueName>
43 <uniqueTitle>Mailing Start Date</uniqueTitle>
44 <title>Mailing Job Start Date</title>
45 <type>timestamp</type>
46 <default>NULL</default>
47 <required>false</required>
48 <comment>date on which this job was started.</comment>
49 </field>
50 <field>
51 <name>end_date</name>
52 <title>Mailing Job End Date</title>
53 <type>timestamp</type>
54 <default>NULL</default>
55 <required>false</required>
56 <comment>date on which this job ended.</comment>
57 </field>
58 <field>
59 <name>status</name>
60 <title>Mailing Job Status</title>
61 <type>varchar</type>
62 <length>12</length>
63 <comment>The state of this job</comment>
64 <pseudoconstant>
65 <callback>CRM_Core_SelectValues::getMailingJobStatus</callback>
66 </pseudoconstant>
67 <html>
68 <type>Select</type>
69 </html>
70 </field>
71 <field>
72 <name>is_test</name>
73 <title>Mailing Job Is Test?</title>
74 <type>boolean</type>
75 <default>0</default>
76 <comment>Is this job for a test mail?</comment>
77 <add>1.9</add>
78 </field>
79 <field>
80 <name>job_type</name>
81 <title>Mailing Job Type</title>
82 <type>varchar</type>
83 <length>255</length>
84 <comment>Type of mailling job: null | child </comment>
85 <add>3.3</add>
86 </field>
87 <field>
88 <name>parent_id</name>
89 <title>Mailing Job Parent</title>
90 <type>int unsigned</type>
91 <comment>Parent job id</comment>
92 <default>NULL</default>
93 <add>3.3</add>
94 </field>
95 <foreignKey>
96 <name>parent_id</name>
97 <table>civicrm_mailing_job</table>
98 <key>id</key>
99 <onDelete>CASCADE</onDelete>
100 </foreignKey>
101 <field>
102 <name>job_offset</name>
103 <title>Mailing Job Offset</title>
104 <type>int</type>
105 <comment>Offset of the child job</comment>
106 <default>0</default>
107 <add>3.3</add>
108 </field>
109 <field>
110 <name>job_limit</name>
111 <title>Mailing Job Limit</title>
112 <type>int</type>
113 <comment>Queue size limit for each child job</comment>
114 <default>0</default>
115 <add>3.3</add>
116 </field>
117 </table>