CRM-15168 a few more titles
[civicrm-core.git] / xml / schema / Mailing / MailingJob.xml
CommitLineData
6a488035
TO
1<?xml version="1.0" encoding="iso-8859-1" ?>
2
3<table>
4 <base>CRM/Mailing</base>
9da8dc8c 5 <class>MailingJob</class>
6a488035
TO
6 <name>civicrm_mailing_job</name>
7 <comment>Stores information about the job that executes this mailing</comment>
8 <archive>true</archive>
9 <field>
5435b737
EM
10 <name>id</name>
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
EM
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>
6a488035
TO
23 </field>
24 <foreignKey>
5435b737
EM
25 <name>mailing_id</name>
26 <table>civicrm_mailing</table>
27 <key>id</key>
28 <onDelete>CASCADE</onDelete>
6a488035
TO
29 </foreignKey>
30 <field>
5435b737
EM
31 <name>scheduled_date</name>
32 <type>datetime</type>
33 <comment>date on which this job was scheduled.</comment>
6a488035
TO
34 </field>
35 <field>
5435b737
EM
36 <name>start_date</name>
37 <type>datetime</type>
38 <comment>date on which this job was started.</comment>
6a488035
TO
39 </field>
40 <field>
5435b737
EM
41 <name>end_date</name>
42 <type>datetime</type>
43 <comment>date on which this job ended.</comment>
6a488035
TO
44 </field>
45 <field>
5435b737
EM
46 <name>status</name>
47 <type>varchar</type>
48 <length>12</length>
49 <comment>The state of this job</comment>
50 <pseudoconstant>
51 <callback>CRM_Core_SelectValues::getMailingJobStatus</callback>
52 </pseudoconstant>
53 <html>
54 <type>Select</type>
55 </html>
6a488035
TO
56 </field>
57 <field>
5435b737
EM
58 <name>is_test</name>
59 <type>boolean</type>
60 <default>0</default>
61 <comment>Is this job for a test mail?</comment>
62 <add>1.9</add>
6a488035
TO
63 </field>
64 <field>
5435b737
EM
65 <name>job_type</name>
66 <type>varchar</type>
67 <length>255</length>
68 <comment>Type of mailling job: null | child </comment>
69 <add>3.3</add>
6a488035
TO
70 </field>
71 <field>
5435b737
EM
72 <name>parent_id</name>
73 <type>int unsigned</type>
74 <comment>Parent job id</comment>
75 <default>NULL</default>
76 <add>3.3</add>
6a488035
TO
77 </field>
78 <foreignKey>
5435b737
EM
79 <name>parent_id</name>
80 <table>civicrm_mailing_job</table>
81 <key>id</key>
82 <onDelete>CASCADE</onDelete>
6a488035
TO
83 </foreignKey>
84 <field>
5435b737
EM
85 <name>job_offset</name>
86 <type>int</type>
87 <comment>Offset of the child job</comment>
88 <default>0</default>
89 <add>3.3</add>
6a488035
TO
90 </field>
91 <field>
5435b737
EM
92 <name>job_limit</name>
93 <type>int</type>
94 <comment>Queue size limit for each child job</comment>
95 <default>0</default>
96 <add>3.3</add>
6a488035
TO
97 </field>
98</table>