Merge pull request #10602 from agileware/CIVICRM-167
[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>
0d94665e 42 <title>Mailing Job Start Date</title>
4387c66f 43 <type>timestamp</type>
44 <default>NULL</default>
45 <required>false</required>
5435b737 46 <comment>date on which this job was started.</comment>
6a488035
TO
47 </field>
48 <field>
5435b737 49 <name>end_date</name>
0d94665e 50 <title>Mailing Job End Date</title>
4387c66f 51 <type>timestamp</type>
52 <default>NULL</default>
53 <required>false</required>
5435b737 54 <comment>date on which this job ended.</comment>
6a488035
TO
55 </field>
56 <field>
5435b737 57 <name>status</name>
0d94665e 58 <title>Mailing Job Status</title>
5435b737
EM
59 <type>varchar</type>
60 <length>12</length>
61 <comment>The state of this job</comment>
62 <pseudoconstant>
63 <callback>CRM_Core_SelectValues::getMailingJobStatus</callback>
64 </pseudoconstant>
65 <html>
66 <type>Select</type>
67 </html>
6a488035
TO
68 </field>
69 <field>
5435b737 70 <name>is_test</name>
0d94665e 71 <title>Mailing Job Is Test?</title>
5435b737
EM
72 <type>boolean</type>
73 <default>0</default>
74 <comment>Is this job for a test mail?</comment>
75 <add>1.9</add>
6a488035
TO
76 </field>
77 <field>
5435b737 78 <name>job_type</name>
0d94665e 79 <title>Mailing Job Type</title>
5435b737
EM
80 <type>varchar</type>
81 <length>255</length>
82 <comment>Type of mailling job: null | child </comment>
83 <add>3.3</add>
6a488035
TO
84 </field>
85 <field>
5435b737 86 <name>parent_id</name>
0d94665e 87 <title>Mailing Job Parent</title>
5435b737
EM
88 <type>int unsigned</type>
89 <comment>Parent job id</comment>
90 <default>NULL</default>
91 <add>3.3</add>
6a488035
TO
92 </field>
93 <foreignKey>
5435b737
EM
94 <name>parent_id</name>
95 <table>civicrm_mailing_job</table>
96 <key>id</key>
97 <onDelete>CASCADE</onDelete>
6a488035
TO
98 </foreignKey>
99 <field>
5435b737 100 <name>job_offset</name>
0d94665e 101 <title>Mailing Job Offset</title>
5435b737
EM
102 <type>int</type>
103 <comment>Offset of the child job</comment>
104 <default>0</default>
105 <add>3.3</add>
6a488035
TO
106 </field>
107 <field>
5435b737 108 <name>job_limit</name>
0d94665e 109 <title>Mailing Job Limit</title>
5435b737
EM
110 <type>int</type>
111 <comment>Queue size limit for each child job</comment>
112 <default>0</default>
113 <add>3.3</add>
6a488035
TO
114 </field>
115</table>