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