| 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 | <default>1</default> |
| 47 | <comment>Is this the recipient criteria limited to OR in addition to?</comment> |
| 48 | <add>4.4</add> |
| 49 | </field> |
| 50 | <field> |
| 51 | <name>entity_value</name> |
| 52 | <type>varchar</type> |
| 53 | <length>64</length> |
| 54 | <comment>Entity value</comment> |
| 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 | <add>3.4</add> |
| 63 | </field> |
| 64 | <field> |
| 65 | <name>start_action_offset</name> |
| 66 | <type>int unsigned</type> |
| 67 | <comment>Reminder Interval.</comment> |
| 68 | <add>3.4</add> |
| 69 | </field> |
| 70 | <field> |
| 71 | <name>start_action_unit</name> |
| 72 | <type>varchar</type> |
| 73 | <length>8</length> |
| 74 | <comment>Time units for reminder.</comment> |
| 75 | <pseudoconstant> |
| 76 | <callback>CRM_Core_SelectValues::getScheduleReminderFrequencyUnits</callback> |
| 77 | </pseudoconstant> |
| 78 | <add>3.4</add> |
| 79 | <html> |
| 80 | <type>Select</type> |
| 81 | </html> |
| 82 | </field> |
| 83 | <field> |
| 84 | <name>start_action_condition</name> |
| 85 | <type>varchar</type> |
| 86 | <length>32</length> |
| 87 | <comment>Reminder Action</comment> |
| 88 | <add>3.4</add> |
| 89 | </field> |
| 90 | <field> |
| 91 | <name>start_action_date</name> |
| 92 | <type>varchar</type> |
| 93 | <length>64</length> |
| 94 | <comment>Entity date</comment> |
| 95 | <add>3.4</add> |
| 96 | </field> |
| 97 | <field> |
| 98 | <name>is_repeat</name> |
| 99 | <title>Repeat?</title> |
| 100 | <type>boolean</type> |
| 101 | <default>0</default> |
| 102 | <add>3.4</add> |
| 103 | </field> |
| 104 | <field> |
| 105 | <name>repetition_frequency_unit</name> |
| 106 | <type>varchar</type> |
| 107 | <length>8</length> |
| 108 | <comment>Time units for repetition of reminder.</comment> |
| 109 | <pseudoconstant> |
| 110 | <callback>CRM_Core_SelectValues::getScheduleReminderFrequencyUnits</callback> |
| 111 | </pseudoconstant> |
| 112 | <add>3.4</add> |
| 113 | <html> |
| 114 | <type>Select</type> |
| 115 | </html> |
| 116 | </field> |
| 117 | <field> |
| 118 | <name>repetition_frequency_interval</name> |
| 119 | <type>int unsigned</type> |
| 120 | <comment>Time interval for repeating the reminder.</comment> |
| 121 | <add>3.4</add> |
| 122 | </field> |
| 123 | <field> |
| 124 | <name>end_frequency_unit</name> |
| 125 | <type>varchar</type> |
| 126 | <length>8</length> |
| 127 | <comment>Time units till repetition of reminder.</comment> |
| 128 | <pseudoconstant> |
| 129 | <callback>CRM_Core_SelectValues::getScheduleReminderFrequencyUnits</callback> |
| 130 | </pseudoconstant> |
| 131 | <add>3.4</add> |
| 132 | <html> |
| 133 | <type>Select</type> |
| 134 | </html> |
| 135 | </field> |
| 136 | <field> |
| 137 | <name>end_frequency_interval</name> |
| 138 | <type>int unsigned</type> |
| 139 | <comment>Time interval till repeating the reminder.</comment> |
| 140 | <add>3.4</add> |
| 141 | </field> |
| 142 | <field> |
| 143 | <name>end_action</name> |
| 144 | <type>varchar</type> |
| 145 | <length>32</length> |
| 146 | <comment>Reminder Action till repeating the reminder.</comment> |
| 147 | <add>3.4</add> |
| 148 | </field> |
| 149 | <field> |
| 150 | <name>end_date</name> |
| 151 | <type>varchar</type> |
| 152 | <length>64</length> |
| 153 | <comment>Entity end date</comment> |
| 154 | <add>3.4</add> |
| 155 | </field> |
| 156 | <field> |
| 157 | <name>is_active</name> |
| 158 | <title>Schedule is Active?</title> |
| 159 | <type>boolean</type> |
| 160 | <default>1</default> |
| 161 | <comment>Is this option active?</comment> |
| 162 | <add>3.4</add> |
| 163 | </field> |
| 164 | <field> |
| 165 | <name>recipient_manual</name> |
| 166 | <title>Recipient Manual</title> |
| 167 | <type>varchar</type> |
| 168 | <length>128</length> |
| 169 | <comment>Contact IDs to which reminder should be sent.</comment> |
| 170 | <add>3.4</add> |
| 171 | </field> |
| 172 | <field> |
| 173 | <name>recipient_listing</name> |
| 174 | <title>Recipient Listing</title> |
| 175 | <type>varchar</type> |
| 176 | <length>128</length> |
| 177 | <comment>listing based on recipient field.</comment> |
| 178 | <add>4.1</add> |
| 179 | </field> |
| 180 | <field> |
| 181 | <name>body_text</name> |
| 182 | <title>Reminder Text</title> |
| 183 | <type>longtext</type> |
| 184 | <comment>Body of the mailing in text format.</comment> |
| 185 | <add>3.4</add> |
| 186 | </field> |
| 187 | <field> |
| 188 | <name>body_html</name> |
| 189 | <title>Reminder HTML</title> |
| 190 | <type>longtext</type> |
| 191 | <comment>Body of the mailing in html format.</comment> |
| 192 | <add>3.4</add> |
| 193 | </field> |
| 194 | <field> |
| 195 | <name>sms_body_text</name> |
| 196 | <title>SMS Reminder Text</title> |
| 197 | <type>longtext</type> |
| 198 | <comment>Content of the SMS text.</comment> |
| 199 | <add>4.5</add> |
| 200 | </field> |
| 201 | <field> |
| 202 | <name>subject</name> |
| 203 | <title>Reminder Subject</title> |
| 204 | <type>varchar</type> |
| 205 | <length>128</length> |
| 206 | <comment>Subject of mailing</comment> |
| 207 | <add>3.4</add> |
| 208 | </field> |
| 209 | <field> |
| 210 | <name>record_activity</name> |
| 211 | <title>Record Activity for Reminder?</title> |
| 212 | <type>boolean</type> |
| 213 | <default>NULL</default> |
| 214 | <comment>Record Activity for this reminder?</comment> |
| 215 | <add>3.4</add> |
| 216 | </field> |
| 217 | <field> |
| 218 | <name>mapping_id</name> |
| 219 | <title>Reminder Mapping</title> |
| 220 | <type>int unsigned</type> |
| 221 | <comment>FK to mapping which is being used by this reminder</comment> |
| 222 | <add>3.4</add> |
| 223 | </field> |
| 224 | <foreignKey> |
| 225 | <name>mapping_id</name> |
| 226 | <table>civicrm_action_mapping</table> |
| 227 | <key>id</key> |
| 228 | <onDelete>SET NULL</onDelete> |
| 229 | </foreignKey> |
| 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>msg_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 | </table> |