Merge pull request #1955 from totten/master-smarty-perm
[civicrm-core.git] / xml / schema / Core / ActionSchedule.xml
CommitLineData
6a488035
TO
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 <type>int unsigned</type>
12 <required>true</required>
13 <add>3.4</add>
14 </field>
15 <primaryKey>
16 <name>id</name>
17 <autoincrement>true</autoincrement>
18 </primaryKey>
19 <field>
20 <name>name</name>
21 <title>Name</title>
22 <type>varchar</type>
23 <length>64</length>
24 <comment>Name of the action(reminder)</comment>
25 <add>3.4</add>
26 </field>
27 <field>
28 <name>title</name>
29 <title>Title</title>
30 <type>varchar</type>
31 <length>64</length>
32 <comment>Title of the action(reminder)</comment>
33 <add>3.4</add>
34 </field>
35 <field>
36 <name>recipient</name>
37 <type>varchar</type>
38 <length>64</length>
39 <comment>Recipient</comment>
40 <add>3.4</add>
41 </field>
3e315abc 42 <field>
43 <name>limit_to</name>
44 <type>boolean</type>
45 <default>1</default>
46 <comment>Is this the recipient criteria limited to OR in addition to?</comment>
47 <add>4.4</add>
48 </field>
6a488035
TO
49 <field>
50 <name>entity_value</name>
51 <type>varchar</type>
52 <length>64</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>
3c7d2158 71 <type>enum</type>
6a488035
TO
72 <values>hour,day,week,month,year</values>
73 <comment>Time units for reminder.</comment>
74 <add>3.4</add>
75 </field>
76 <field>
77 <name>start_action_condition</name>
78 <type>varchar</type>
79 <length>32</length>
80 <comment>Reminder Action</comment>
81 <add>3.4</add>
82 </field>
83 <field>
84 <name>start_action_date</name>
85 <type>varchar</type>
86 <length>64</length>
87 <comment>Entity date</comment>
88 <add>3.4</add>
89 </field>
90 <field>
91 <name>is_repeat</name>
92 <title>Repeat?</title>
93 <type>boolean</type>
94 <default>0</default>
95 <add>3.4</add>
96 </field>
97 <field>
98 <name>repetition_frequency_unit</name>
3c7d2158 99 <type>enum</type>
6a488035
TO
100 <values>hour,day,week,month,year</values>
101 <comment>Time units for repetition of reminder.</comment>
102 <add>3.4</add>
103 </field>
104 <field>
105 <name>repetition_frequency_interval</name>
106 <type>int unsigned</type>
107 <comment>Time interval for repeating the reminder.</comment>
108 <add>3.4</add>
109 </field>
110 <field>
111 <name>end_frequency_unit</name>
3c7d2158 112 <type>enum</type>
6a488035
TO
113 <values>hour,day,week,month,year</values>
114 <comment>Time units till repetition of reminder.</comment>
115 <add>3.4</add>
116 </field>
117 <field>
118 <name>end_frequency_interval</name>
119 <type>int unsigned</type>
120 <comment>Time interval till repeating the reminder.</comment>
121 <add>3.4</add>
122 </field>
123 <field>
124 <name>end_action</name>
125 <type>varchar</type>
126 <length>32</length>
127 <comment>Reminder Action till repeating the reminder.</comment>
128 <add>3.4</add>
129 </field>
130 <field>
131 <name>end_date</name>
132 <type>varchar</type>
133 <length>64</length>
134 <comment>Entity end date</comment>
135 <add>3.4</add>
136 </field>
137 <field>
138 <name>is_active</name>
139 <type>boolean</type>
140 <default>1</default>
141 <comment>Is this option active?</comment>
142 <add>3.4</add>
143 </field>
3c7d2158 144 <field>
145 <name>recipient_manual</name>
6a488035 146 <title>Recipient Manual</title>
3c7d2158 147 <type>varchar</type>
148 <length>128</length>
149 <comment>Contact IDs to which reminder should be sent.</comment>
150 <add>3.4</add>
6a488035 151 </field>
3c7d2158 152 <field>
153 <name>recipient_listing</name>
6a488035 154 <title>Recipient Listing</title>
3c7d2158 155 <type>varchar</type>
156 <length>128</length>
157 <comment>listing based on recipient field.</comment>
158 <add>4.1</add>
6a488035
TO
159 </field>
160 <field>
161 <name>body_text</name>
162 <type>longtext</type>
163 <comment>Body of the mailing in text format.</comment>
164 <add>3.4</add>
165 </field>
166 <field>
167 <name>body_html</name>
168 <type>longtext</type>
169 <comment>Body of the mailing in html format.</comment>
170 <add>3.4</add>
171 </field>
172 <field>
173 <name>subject</name>
174 <type>varchar</type>
175 <length>128</length>
176 <comment>Subject of mailing</comment>
177 <add>3.4</add>
178 </field>
179 <field>
180 <name>record_activity</name>
181 <type>boolean</type>
182 <default>NULL</default>
183 <comment>Record Activity for this reminder?</comment>
184 <add>3.4</add>
185 </field>
186 <field>
187 <name>mapping_id</name>
188 <type>int unsigned</type>
189 <comment>FK to mapping which is being used by this reminder</comment>
190 <add>3.4</add>
191 </field>
192 <foreignKey>
193 <name>mapping_id</name>
194 <table>civicrm_action_mapping</table>
195 <key>id</key>
196 <onDelete>SET NULL</onDelete>
3c7d2158 197 </foreignKey>
6a488035 198 <field>
29494eef
AS
199 <name>group_id</name>
200 <type>int unsigned</type>
201 <comment>FK to Group</comment>
202 <pseudoconstant>
203 <table>civicrm_group</table>
204 <keyColumn>id</keyColumn>
205 <labelColumn>title</labelColumn>
206 </pseudoconstant>
207 <add>3.4</add>
208 </field>
6a488035
TO
209 <foreignKey>
210 <name>group_id</name>
211 <table>civicrm_group</table>
212 <key>id</key>
213 <onDelete>SET NULL</onDelete>
214 </foreignKey>
215 <field>
216 <name>msg_template_id</name>
011aeb62 217 <type>int unsigned</type>
218 <comment>FK to the message template.</comment>
6a488035
TO
219 </field>
220 <foreignKey>
221 <name>msg_template_id</name>
011aeb62 222 <table>civicrm_msg_template</table>
223 <key>id</key>
224 <onDelete>SET NULL</onDelete>
6a488035
TO
225 </foreignKey>
226 <field>
227 <name>absolute_date</name>
228 <type>date</type>
229 <comment>Date on which the reminder be sent.</comment>
230 <add>4.1</add>
231 </field>
232</table>