commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / civicrm / xml / schema / Campaign / Survey.xml
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>
8
9 <field>
10 <name>id</name>
11 <title>Survey ID</title>
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>
24 <title>Survey Title</title>
25 <type>varchar</type>
26 <length>255</length>
27 <required>true</required>
28 <localizable>true</localizable>
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>
36 <title>Survey Campaign ID</title>
37 <type>int unsigned</type>
38 <default>NULL</default>
39 <comment>Foreign key to the Campaign.</comment>
40 <pseudoconstant>
41 <table>civicrm_campaign</table>
42 <keyColumn>id</keyColumn>
43 <labelColumn>title</labelColumn>
44 </pseudoconstant>
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>
54
55 <field>
56 <name>activity_type_id</name>
57 <title>Activity Type</title>
58 <type>int unsigned</type>
59 <default>NULL</default>
60 <comment>Implicit FK to civicrm_option_value where option_group = activity_type</comment>
61 <import>true</import>
62 <add>3.3</add>
63 <pseudoconstant>
64 <optionGroupName>activity_type</optionGroupName>
65 </pseudoconstant>
66 <html>
67 <type>Select</type>
68 </html>
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>
78 <title>Follow up Interval</title>
79 <type>text</type>
80 <comment>Recontact intervals for each status.</comment>
81 <html>
82 <type>TextArea</type>
83 <rows>20</rows>
84 <cols>80</cols>
85 </html>
86 <add>3.3</add>
87 </field>
88
89 <field>
90 <name>instructions</name>
91 <title>Instructions</title>
92 <type>text</type>
93 <localizable>true</localizable>
94 <comment>Script instructions for volunteers to use for the survey.</comment>
95 <html>
96 <type>TextArea</type>
97 <rows>20</rows>
98 <cols>80</cols>
99 </html>
100 <add>3.3</add>
101 </field>
102
103 <field>
104 <name>release_frequency</name>
105 <title>Survey Hold Duration</title>
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>
111
112 <field>
113 <name>max_number_of_contacts</name>
114 <title>Maximum number of contacts</title>
115 <type>int unsigned</type>
116 <default>NULL</default>
117 <comment>Maximum number of contacts to allow for survey.</comment>
118 <add>3.3</add>
119 </field>
120
121 <field>
122 <name>default_number_of_contacts</name>
123 <title>Default number of contacts</title>
124 <type>int unsigned</type>
125 <default>NULL</default>
126 <comment>Default number of contacts to allow for survey.</comment>
127 <add>3.3</add>
128 </field>
129
130 <field>
131 <name>is_active</name>
132 <title>Survey Is Active</title>
133 <type>boolean</type>
134 <default>1</default>
135 <comment>Is this survey enabled or disabled/cancelled?</comment>
136 <add>3.3</add>
137 </field>
138
139 <field>
140 <name>is_default</name>
141 <title>Is Default Survey</title>
142 <type>boolean</type>
143 <default>0</default>
144 <comment>Is this default survey?</comment>
145 <add>3.3</add>
146 </field>
147
148 <field>
149 <name>created_id</name>
150 <title>Survey Created By</title>
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>
156 <name>created_id</name>
157 <table>civicrm_contact</table>
158 <key>id</key>
159 <add>3.3</add>
160 <onDelete>SET NULL</onDelete>
161 </foreignKey>
162
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>
170
171 <field>
172 <name>last_modified_id</name>
173 <title>Survey Modified</title>
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>
185
186 <field>
187 <name>last_modified_date</name>
188 <title>Survey Modified On</title>
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>
196 <title>Survey Result</title>
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>
204 <title>No Email Verification</title>
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>
223 <html>
224 <type>TextArea</type>
225 <rows>8</rows>
226 <cols>60</cols>
227 </html>
228 <localizable>true</localizable>
229 <comment>text and html allowed. displayed above result on success page</comment>
230 <add>4.2</add>
231 </field>
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>
240 </table>