Merge pull request #15300 from civicrm/5.18
[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 10 <name>id</name>
210af83a 11 <title>Mailing Job ID</title>
5435b737
EM
12 <type>int unsigned</type>
13 <required>true</required>
6a488035
TO
14 </field>
15 <primaryKey>
5435b737
EM
16 <name>id</name>
17 <autoincrement>true</autoincrement>
6a488035
TO
18 </primaryKey>
19 <field>
5435b737 20 <name>mailing_id</name>
0d94665e 21 <title>Mailing</title>
5435b737
EM
22 <type>int unsigned</type>
23 <required>true</required>
24 <comment>The ID of the mailing this Job will send.</comment>
6a488035
TO
25 </field>
26 <foreignKey>
5435b737
EM
27 <name>mailing_id</name>
28 <table>civicrm_mailing</table>
29 <key>id</key>
30 <onDelete>CASCADE</onDelete>
6a488035
TO
31 </foreignKey>
32 <field>
5435b737 33 <name>scheduled_date</name>
0d94665e 34 <title>Mailing Scheduled Date</title>
4387c66f 35 <type>timestamp</type>
36 <default>NULL</default>
37 <required>false</required>
5435b737 38 <comment>date on which this job was scheduled.</comment>
6a488035
TO
39 </field>
40 <field>
5435b737 41 <name>start_date</name>
de866a86 42 <uniqueName>mailing_job_start_date</uniqueName>
43 <uniqueTitle>Mailing Start Date</uniqueTitle>
0d94665e 44 <title>Mailing Job Start Date</title>
4387c66f 45 <type>timestamp</type>
46 <default>NULL</default>
47 <required>false</required>
5435b737 48 <comment>date on which this job was started.</comment>
6a488035
TO
49 </field>
50 <field>
5435b737 51 <name>end_date</name>
0d94665e 52 <title>Mailing Job End Date</title>
4387c66f 53 <type>timestamp</type>
54 <default>NULL</default>
55 <required>false</required>
5435b737 56 <comment>date on which this job ended.</comment>
6a488035
TO
57 </field>
58 <field>
5435b737 59 <name>status</name>
0d94665e 60 <title>Mailing Job Status</title>
5435b737
EM
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>
6a488035
TO
70 </field>
71 <field>
5435b737 72 <name>is_test</name>
0d94665e 73 <title>Mailing Job Is Test?</title>
5435b737
EM
74 <type>boolean</type>
75 <default>0</default>
76 <comment>Is this job for a test mail?</comment>
77 <add>1.9</add>
6a488035
TO
78 </field>
79 <field>
5435b737 80 <name>job_type</name>
0d94665e 81 <title>Mailing Job Type</title>
5435b737
EM
82 <type>varchar</type>
83 <length>255</length>
84 <comment>Type of mailling job: null | child </comment>
85 <add>3.3</add>
6a488035
TO
86 </field>
87 <field>
5435b737 88 <name>parent_id</name>
0d94665e 89 <title>Mailing Job Parent</title>
5435b737
EM
90 <type>int unsigned</type>
91 <comment>Parent job id</comment>
92 <default>NULL</default>
93 <add>3.3</add>
6a488035
TO
94 </field>
95 <foreignKey>
5435b737
EM
96 <name>parent_id</name>
97 <table>civicrm_mailing_job</table>
98 <key>id</key>
99 <onDelete>CASCADE</onDelete>
6a488035
TO
100 </foreignKey>
101 <field>
5435b737 102 <name>job_offset</name>
0d94665e 103 <title>Mailing Job Offset</title>
5435b737
EM
104 <type>int</type>
105 <comment>Offset of the child job</comment>
106 <default>0</default>
107 <add>3.3</add>
6a488035
TO
108 </field>
109 <field>
5435b737 110 <name>job_limit</name>
0d94665e 111 <title>Mailing Job Limit</title>
5435b737
EM
112 <type>int</type>
113 <comment>Queue size limit for each child job</comment>
114 <default>0</default>
115 <add>3.3</add>
6a488035
TO
116 </field>
117</table>