CRM-17663 - Cruft removal
[civicrm-core.git] / xml / schema / Core / ActionSchedule.xml
1 <?xml version="1.0" encoding="iso-8859-1" ?>
2
3 <table>
4 <base>CRM/Core</base>
5 <class>ActionSchedule</class>
6 <name>civicrm_action_schedule</name>
7 <comment>Table to store the reminders.</comment>
8 <add>3.4</add>
9 <field>
10 <name>id</name>
11 <title>Action Schedule ID</title>
12 <type>int unsigned</type>
13 <required>true</required>
14 <add>3.4</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20 <field>
21 <name>name</name>
22 <title>Name</title>
23 <type>varchar</type>
24 <length>64</length>
25 <comment>Name of the action(reminder)</comment>
26 <add>3.4</add>
27 </field>
28 <field>
29 <name>title</name>
30 <title>Title</title>
31 <type>varchar</type>
32 <length>64</length>
33 <comment>Title of the action(reminder)</comment>
34 <add>3.4</add>
35 </field>
36 <field>
37 <name>recipient</name>
38 <type>varchar</type>
39 <length>64</length>
40 <comment>Recipient</comment>
41 <add>3.4</add>
42 </field>
43 <field>
44 <name>limit_to</name>
45 <type>boolean</type>
46 <comment>Is this the recipient criteria limited to OR in addition to?</comment>
47 <add>4.4</add>
48 </field>
49 <field>
50 <name>entity_value</name>
51 <type>varchar</type>
52 <length>255</length>
53 <comment>Entity value</comment>
54 <add>3.4</add>
55 </field>
56 <field>
57 <name>entity_status</name>
58 <type>varchar</type>
59 <length>64</length>
60 <comment>Entity status</comment>
61 <add>3.4</add>
62 </field>
63 <field>
64 <name>start_action_offset</name>
65 <type>int unsigned</type>
66 <comment>Reminder Interval.</comment>
67 <add>3.4</add>
68 </field>
69 <field>
70 <name>start_action_unit</name>
71 <type>varchar</type>
72 <length>8</length>
73 <comment>Time units for reminder.</comment>
74 <pseudoconstant>
75 <callback>CRM_Core_SelectValues::getRecurringFrequencyUnits</callback>
76 </pseudoconstant>
77 <add>3.4</add>
78 <html>
79 <type>Select</type>
80 </html>
81 </field>
82 <field>
83 <name>start_action_condition</name>
84 <type>varchar</type>
85 <length>32</length>
86 <comment>Reminder Action</comment>
87 <add>3.4</add>
88 </field>
89 <field>
90 <name>start_action_date</name>
91 <type>varchar</type>
92 <length>64</length>
93 <comment>Entity date</comment>
94 <add>3.4</add>
95 </field>
96 <field>
97 <name>is_repeat</name>
98 <title>Repeat?</title>
99 <type>boolean</type>
100 <default>0</default>
101 <add>3.4</add>
102 </field>
103 <field>
104 <name>repetition_frequency_unit</name>
105 <type>varchar</type>
106 <length>8</length>
107 <comment>Time units for repetition of reminder.</comment>
108 <pseudoconstant>
109 <callback>CRM_Core_SelectValues::getRecurringFrequencyUnits</callback>
110 </pseudoconstant>
111 <add>3.4</add>
112 <html>
113 <type>Select</type>
114 </html>
115 </field>
116 <field>
117 <name>repetition_frequency_interval</name>
118 <type>int unsigned</type>
119 <comment>Time interval for repeating the reminder.</comment>
120 <add>3.4</add>
121 </field>
122 <field>
123 <name>end_frequency_unit</name>
124 <type>varchar</type>
125 <length>8</length>
126 <comment>Time units till repetition of reminder.</comment>
127 <pseudoconstant>
128 <callback>CRM_Core_SelectValues::getRecurringFrequencyUnits</callback>
129 </pseudoconstant>
130 <add>3.4</add>
131 <html>
132 <type>Select</type>
133 </html>
134 </field>
135 <field>
136 <name>end_frequency_interval</name>
137 <type>int unsigned</type>
138 <comment>Time interval till repeating the reminder.</comment>
139 <add>3.4</add>
140 </field>
141 <field>
142 <name>end_action</name>
143 <type>varchar</type>
144 <length>32</length>
145 <comment>Reminder Action till repeating the reminder.</comment>
146 <add>3.4</add>
147 </field>
148 <field>
149 <name>end_date</name>
150 <type>varchar</type>
151 <length>64</length>
152 <comment>Entity end date</comment>
153 <add>3.4</add>
154 </field>
155 <field>
156 <name>is_active</name>
157 <title>Schedule is Active?</title>
158 <type>boolean</type>
159 <default>1</default>
160 <comment>Is this option active?</comment>
161 <add>3.4</add>
162 </field>
163 <field>
164 <name>recipient_manual</name>
165 <title>Recipient Manual</title>
166 <type>varchar</type>
167 <length>128</length>
168 <comment>Contact IDs to which reminder should be sent.</comment>
169 <add>3.4</add>
170 </field>
171 <field>
172 <name>recipient_listing</name>
173 <title>Recipient Listing</title>
174 <type>varchar</type>
175 <length>128</length>
176 <comment>listing based on recipient field.</comment>
177 <add>4.1</add>
178 </field>
179 <field>
180 <name>body_text</name>
181 <title>Reminder Text</title>
182 <type>longtext</type>
183 <comment>Body of the mailing in text format.</comment>
184 <add>3.4</add>
185 </field>
186 <field>
187 <name>body_html</name>
188 <title>Reminder HTML</title>
189 <type>longtext</type>
190 <comment>Body of the mailing in html format.</comment>
191 <add>3.4</add>
192 </field>
193 <field>
194 <name>sms_body_text</name>
195 <title>SMS Reminder Text</title>
196 <type>longtext</type>
197 <comment>Content of the SMS text.</comment>
198 <add>4.5</add>
199 </field>
200 <field>
201 <name>subject</name>
202 <title>Reminder Subject</title>
203 <type>varchar</type>
204 <length>128</length>
205 <comment>Subject of mailing</comment>
206 <add>3.4</add>
207 </field>
208 <field>
209 <name>record_activity</name>
210 <title>Record Activity for Reminder?</title>
211 <type>boolean</type>
212 <default>NULL</default>
213 <comment>Record Activity for this reminder?</comment>
214 <add>3.4</add>
215 </field>
216 <field>
217 <name>mapping_id</name>
218 <title>Reminder Mapping</title>
219 <type>varchar</type>
220 <length>64</length>
221 <comment>Name/ID of the mapping to use on this table</comment>
222 <add>3.4</add>
223 </field>
224 <field>
225 <name>group_id</name>
226 <title>Reminder Group</title>
227 <type>int unsigned</type>
228 <comment>FK to Group</comment>
229 <pseudoconstant>
230 <table>civicrm_group</table>
231 <keyColumn>id</keyColumn>
232 <labelColumn>title</labelColumn>
233 </pseudoconstant>
234 <html>
235 <type>Select</type>
236 </html>
237 <add>3.4</add>
238 </field>
239 <foreignKey>
240 <name>group_id</name>
241 <table>civicrm_group</table>
242 <key>id</key>
243 <onDelete>SET NULL</onDelete>
244 </foreignKey>
245 <field>
246 <name>msg_template_id</name>
247 <title>Reminder Template</title>
248 <type>int unsigned</type>
249 <comment>FK to the message template.</comment>
250 </field>
251 <foreignKey>
252 <name>msg_template_id</name>
253 <table>civicrm_msg_template</table>
254 <key>id</key>
255 <onDelete>SET NULL</onDelete>
256 </foreignKey>
257 <field>
258 <name>sms_template_id</name>
259 <title>SMS Reminder Template</title>
260 <type>int unsigned</type>
261 <comment>FK to the message template.</comment>
262 </field>
263 <foreignKey>
264 <name>sms_template_id</name>
265 <table>civicrm_msg_template</table>
266 <key>id</key>
267 <onDelete>SET NULL</onDelete>
268 </foreignKey>
269 <field>
270 <name>absolute_date</name>
271 <title>Fixed Date for Reminder</title>
272 <type>date</type>
273 <comment>Date on which the reminder be sent.</comment>
274 <add>4.1</add>
275 </field>
276 <field>
277 <name>from_name</name>
278 <title>Reminder from Name</title>
279 <type>varchar</type>
280 <length>255</length>
281 <comment>Name in "from" field</comment>
282 <add>4.5</add>
283 </field>
284 <field>
285 <name>from_email</name>
286 <title>Reminder From Email</title>
287 <type>varchar</type>
288 <length>255</length>
289 <comment>Email address in "from" field</comment>
290 <add>4.5</add>
291 </field>
292 <field>
293 <name>mode</name>
294 <title>Message Mode</title>
295 <default>"Email"</default>
296 <type>varchar</type>
297 <length>128</length>
298 <comment>Send the message as email or sms or both.</comment>
299 <pseudoconstant>
300 <optionGroupName>msg_mode</optionGroupName>
301 </pseudoconstant>
302 <html>
303 <type>Select</type>
304 </html>
305 <add>4.5</add>
306 </field>
307 <field>
308 <name>sms_provider_id</name>
309 <title>SMS Provider</title>
310 <type>int unsigned</type>
311 <add>4.5</add>
312 <html>
313 <type>Select</type>
314 </html>
315 </field>
316 <foreignKey>
317 <name>sms_provider_id</name>
318 <table>civicrm_sms_provider</table>
319 <key>id</key>
320 <onDelete>SET NULL</onDelete>
321 <add>4.5</add>
322 </foreignKey>
323 <field>
324 <name>used_for</name>
325 <type>varchar</type>
326 <length>64</length>
327 <comment>Used for repeating entity</comment>
328 <add>4.6</add>
329 </field>
330 <field>
331 <name>filter_contact_language</name>
332 <type>varchar</type>
333 <length>128</length>
334 <comment>Used for multilingual installation</comment>
335 <add>4.7</add>
336 </field>
337 <field>
338 <name>communication_language</name>
339 <type>varchar</type>
340 <length>8</length>
341 <comment>Used for multilingual installation</comment>
342 <add>4.7</add>
343 </field>
344 </table>