Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <?xml version="1.0" encoding="iso-8859-1" ?> |
2 | <table> | |
3 | <base>CRM/Campaign</base> | |
4 | <class>Survey</class> | |
5 | <name>civicrm_survey</name> | |
6 | <comment>Campaign Survey Details.</comment> | |
7 | <add>3.2</add> | |
f813f78e | 8 | |
6a488035 TO |
9 | <field> |
10 | <name>id</name> | |
bf76be71 | 11 | <title>Survey ID</title> |
6a488035 TO |
12 | <type>int unsigned</type> |
13 | <required>true</required> | |
14 | <comment>Survey id.</comment> | |
15 | <add>3.3</add> | |
16 | </field> | |
17 | <primaryKey> | |
18 | <name>id</name> | |
19 | <autoincrement>true</autoincrement> | |
20 | </primaryKey> | |
21 | ||
22 | <field> | |
23 | <name>title</name> | |
f813f78e | 24 | <title>Survey Title</title> |
6a488035 TO |
25 | <type>varchar</type> |
26 | <length>255</length> | |
27 | <required>true</required> | |
434cdb95 | 28 | <localizable>true</localizable> |
6a488035 TO |
29 | <comment>Title of the Survey.</comment> |
30 | <import>true</import> | |
31 | <add>3.3</add> | |
32 | </field> | |
33 | ||
34 | <field> | |
35 | <name>campaign_id</name> | |
bf76be71 | 36 | <title>Survey Campaign ID</title> |
6a488035 | 37 | <type>int unsigned</type> |
f813f78e | 38 | <default>NULL</default> |
6a488035 | 39 | <comment>Foreign key to the Campaign.</comment> |
3e3eacd0 CW |
40 | <pseudoconstant> |
41 | <table>civicrm_campaign</table> | |
42 | <keyColumn>id</keyColumn> | |
43 | <labelColumn>title</labelColumn> | |
3e3eacd0 | 44 | </pseudoconstant> |
6a488035 TO |
45 | <add>3.3</add> |
46 | </field> | |
47 | <foreignKey> | |
48 | <name>campaign_id</name> | |
49 | <table>civicrm_campaign</table> | |
50 | <key>id</key> | |
51 | <add>3.3</add> | |
52 | <onDelete>SET NULL</onDelete> | |
53 | </foreignKey> | |
f813f78e | 54 | |
6a488035 TO |
55 | <field> |
56 | <name>activity_type_id</name> | |
a42c9322 | 57 | <title>Activity Type</title> |
f813f78e | 58 | <type>int unsigned</type> |
59 | <default>NULL</default> | |
3c7d2158 | 60 | <comment>Implicit FK to civicrm_option_value where option_group = activity_type</comment> |
6a488035 | 61 | <import>true</import> |
f813f78e | 62 | <add>3.3</add> |
4080e473 AS |
63 | <pseudoconstant> |
64 | <optionGroupName>activity_type</optionGroupName> | |
65 | </pseudoconstant> | |
614d72ec | 66 | <html> |
e0991796 | 67 | <type>Select</type> |
614d72ec | 68 | </html> |
6a488035 TO |
69 | </field> |
70 | <index> | |
71 | <name>UI_activity_type_id</name> | |
72 | <fieldName>activity_type_id</fieldName> | |
73 | <add>3.3</add> | |
74 | </index> | |
75 | ||
76 | <field> | |
77 | <name>recontact_interval</name> | |
bf76be71 | 78 | <title>Follow up Interval</title> |
6a488035 TO |
79 | <type>text</type> |
80 | <comment>Recontact intervals for each status.</comment> | |
7deea513 | 81 | <html> |
82 | <type>TextArea</type> | |
817807ab | 83 | <rows>20</rows> |
84 | <cols>80</cols> | |
7deea513 | 85 | </html> |
6a488035 TO |
86 | <add>3.3</add> |
87 | </field> | |
f813f78e | 88 | |
6a488035 TO |
89 | <field> |
90 | <name>instructions</name> | |
bf76be71 | 91 | <title>Instructions</title> |
6a488035 | 92 | <type>text</type> |
434cdb95 | 93 | <localizable>true</localizable> |
6a488035 | 94 | <comment>Script instructions for volunteers to use for the survey.</comment> |
7deea513 | 95 | <html> |
96 | <type>TextArea</type> | |
817807ab | 97 | <rows>20</rows> |
98 | <cols>80</cols> | |
7deea513 | 99 | </html> |
6a488035 TO |
100 | <add>3.3</add> |
101 | </field> | |
102 | ||
103 | <field> | |
104 | <name>release_frequency</name> | |
bf76be71 | 105 | <title>Survey Hold Duration</title> |
6a488035 TO |
106 | <type>int unsigned</type> |
107 | <default>NULL</default> | |
108 | <comment>Number of days for recurrence of release.</comment> | |
109 | <add>3.3</add> | |
110 | </field> | |
f813f78e | 111 | |
112 | <field> | |
6a488035 TO |
113 | <name>max_number_of_contacts</name> |
114 | <title>Maximum number of contacts</title> | |
f813f78e | 115 | <type>int unsigned</type> |
6a488035 | 116 | <default>NULL</default> |
f813f78e | 117 | <comment>Maximum number of contacts to allow for survey.</comment> |
6a488035 TO |
118 | <add>3.3</add> |
119 | </field> | |
f813f78e | 120 | |
121 | <field> | |
6a488035 TO |
122 | <name>default_number_of_contacts</name> |
123 | <title>Default number of contacts</title> | |
f813f78e | 124 | <type>int unsigned</type> |
6a488035 | 125 | <default>NULL</default> |
f813f78e | 126 | <comment>Default number of contacts to allow for survey.</comment> |
6a488035 TO |
127 | <add>3.3</add> |
128 | </field> | |
f813f78e | 129 | |
130 | <field> | |
131 | <name>is_active</name> | |
bf76be71 | 132 | <title>Survey Is Active</title> |
6a488035 | 133 | <type>boolean</type> |
f813f78e | 134 | <default>1</default> |
135 | <comment>Is this survey enabled or disabled/cancelled?</comment> | |
136 | <add>3.3</add> | |
6a488035 | 137 | </field> |
f813f78e | 138 | |
139 | <field> | |
140 | <name>is_default</name> | |
bf76be71 | 141 | <title>Is Default Survey</title> |
6a488035 | 142 | <type>boolean</type> |
f813f78e | 143 | <default>0</default> |
144 | <comment>Is this default survey?</comment> | |
145 | <add>3.3</add> | |
146 | </field> | |
147 | ||
6a488035 TO |
148 | <field> |
149 | <name>created_id</name> | |
bf76be71 | 150 | <title>Survey Created By</title> |
6a488035 TO |
151 | <type>int unsigned</type> |
152 | <comment>FK to civicrm_contact, who created this Survey.</comment> | |
153 | <add>3.3</add> | |
154 | </field> | |
155 | <foreignKey> | |
bf76be71 EM |
156 | <name>created_id</name> |
157 | <table>civicrm_contact</table> | |
158 | <key>id</key> | |
159 | <add>3.3</add> | |
160 | <onDelete>SET NULL</onDelete> | |
6a488035 | 161 | </foreignKey> |
f813f78e | 162 | |
6a488035 TO |
163 | <field> |
164 | <name>created_date</name> | |
165 | <type>datetime</type> | |
166 | <title>Campaign Created Date</title> | |
167 | <comment>Date and time that Survey was created.</comment> | |
168 | <add>3.3</add> | |
169 | </field> | |
f813f78e | 170 | |
6a488035 TO |
171 | <field> |
172 | <name>last_modified_id</name> | |
bf76be71 | 173 | <title>Survey Modified</title> |
6a488035 TO |
174 | <type>int unsigned</type> |
175 | <comment>FK to civicrm_contact, who recently edited this Survey.</comment> | |
176 | <add>3.3</add> | |
177 | </field> | |
178 | <foreignKey> | |
179 | <name>last_modified_id</name> | |
180 | <table>civicrm_contact</table> | |
181 | <key>id</key> | |
182 | <add>3.3</add> | |
183 | <onDelete>SET NULL</onDelete> | |
184 | </foreignKey> | |
f813f78e | 185 | |
6a488035 TO |
186 | <field> |
187 | <name>last_modified_date</name> | |
bf76be71 | 188 | <title>Survey Modified On</title> |
6a488035 TO |
189 | <type>datetime</type> |
190 | <comment>Date and time that Survey was edited last time.</comment> | |
191 | <add>3.3</add> | |
192 | </field> | |
193 | ||
194 | <field> | |
195 | <name>result_id</name> | |
bf76be71 | 196 | <title>Survey Result</title> |
6a488035 TO |
197 | <type>int unsigned</type> |
198 | <default>NULL</default> | |
199 | <comment>Used to store option group id.</comment> | |
200 | <add>3.3</add> | |
201 | </field> | |
202 | <field> | |
203 | <name>bypass_confirm</name> | |
bf76be71 | 204 | <title>No Email Verification</title> |
6a488035 TO |
205 | <type>boolean</type> |
206 | <default>0</default> | |
207 | <comment>Bypass the email verification.</comment> | |
208 | <add>4.2</add> | |
209 | </field> | |
210 | <field> | |
211 | <name>thankyou_title</name> | |
212 | <title>Thank-you Title</title> | |
213 | <type>varchar</type> | |
214 | <length>255</length> | |
215 | <localizable>true</localizable> | |
216 | <comment>Title for Thank-you page (header title tag, and display at the top of the page).</comment> | |
217 | <add>4.2</add> | |
218 | </field> | |
219 | <field> | |
220 | <name>thankyou_text</name> | |
221 | <title>Thank-you Text</title> | |
222 | <type>text</type> | |
7deea513 | 223 | <html> |
224 | <type>TextArea</type> | |
817807ab | 225 | <rows>8</rows> |
226 | <cols>60</cols> | |
7deea513 | 227 | </html> |
6a488035 TO |
228 | <localizable>true</localizable> |
229 | <comment>text and html allowed. displayed above result on success page</comment> | |
230 | <add>4.2</add> | |
231 | </field> | |
424392c5 | 232 | <field> |
233 | <name>is_share</name> | |
234 | <title>Is shared through social media</title> | |
235 | <type>boolean</type> | |
236 | <default>1</default> | |
237 | <comment>Can people share the petition through social media?</comment> | |
238 | <add>4.4</add> | |
239 | </field> | |
6a488035 | 240 | </table> |