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