Import from SVN (r45945, r596)
[civicrm-core.git] / xml / schema / Campaign / Survey.xml
CommitLineData
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>
8
9 <field>
10 <name>id</name>
11 <type>int unsigned</type>
12 <required>true</required>
13 <comment>Survey id.</comment>
14 <add>3.3</add>
15 </field>
16 <primaryKey>
17 <name>id</name>
18 <autoincrement>true</autoincrement>
19 </primaryKey>
20
21 <field>
22 <name>title</name>
23 <title>Survey Title</title>
24 <type>varchar</type>
25 <length>255</length>
26 <required>true</required>
27 <comment>Title of the Survey.</comment>
28 <import>true</import>
29 <add>3.3</add>
30 </field>
31
32 <field>
33 <name>campaign_id</name>
34 <type>int unsigned</type>
35 <default>NULL</default>
36 <comment>Foreign key to the Campaign.</comment>
37 <add>3.3</add>
38 </field>
39 <foreignKey>
40 <name>campaign_id</name>
41 <table>civicrm_campaign</table>
42 <key>id</key>
43 <add>3.3</add>
44 <onDelete>SET NULL</onDelete>
45 </foreignKey>
46
47 <field>
48 <name>activity_type_id</name>
49 <title>Activity Type ID</title>
50 <type>int unsigned</type>
51 <default>NULL</default>
52 <comment>Implicit FK to civicrm_option_value where option_group = activity_type</comment>
53 <import>true</import>
54 <add>3.3</add>
55 </field>
56 <index>
57 <name>UI_activity_type_id</name>
58 <fieldName>activity_type_id</fieldName>
59 <add>3.3</add>
60 </index>
61
62 <field>
63 <name>recontact_interval</name>
64 <type>text</type>
65 <comment>Recontact intervals for each status.</comment>
66 <htmlType>textarea</htmlType>
67 <rows>20</rows>
68 <cols>80</cols>
69 <add>3.3</add>
70 </field>
71
72 <field>
73 <name>instructions</name>
74 <type>text</type>
75 <comment>Script instructions for volunteers to use for the survey.</comment>
76 <htmlType>textarea</htmlType>
77 <rows>20</rows>
78 <cols>80</cols>
79 <add>3.3</add>
80 </field>
81
82 <field>
83 <name>release_frequency</name>
84 <type>int unsigned</type>
85 <default>NULL</default>
86 <comment>Number of days for recurrence of release.</comment>
87 <add>3.3</add>
88 </field>
89
90 <field>
91 <name>max_number_of_contacts</name>
92 <title>Maximum number of contacts</title>
93 <type>int unsigned</type>
94 <default>NULL</default>
95 <comment>Maximum number of contacts to allow for survey.</comment>
96 <add>3.3</add>
97 </field>
98
99 <field>
100 <name>default_number_of_contacts</name>
101 <title>Default number of contacts</title>
102 <type>int unsigned</type>
103 <default>NULL</default>
104 <comment>Default number of contacts to allow for survey.</comment>
105 <add>3.3</add>
106 </field>
107
108 <field>
109 <name>is_active</name>
110 <type>boolean</type>
111 <default>1</default>
112 <comment>Is this survey enabled or disabled/cancelled?</comment>
113 <add>3.3</add>
114 </field>
115
116 <field>
117 <name>is_default</name>
118 <type>boolean</type>
119 <default>0</default>
120 <comment>Is this default survey?</comment>
121 <add>3.3</add>
122 </field>
123
124 <field>
125 <name>created_id</name>
126 <type>int unsigned</type>
127 <comment>FK to civicrm_contact, who created this Survey.</comment>
128 <add>3.3</add>
129 </field>
130 <foreignKey>
131 <name>created_id</name>
132 <table>civicrm_contact</table>
133 <key>id</key>
134 <add>3.3</add>
135 <onDelete>SET NULL</onDelete>
136 </foreignKey>
137
138 <field>
139 <name>created_date</name>
140 <type>datetime</type>
141 <title>Campaign Created Date</title>
142 <comment>Date and time that Survey was created.</comment>
143 <add>3.3</add>
144 </field>
145
146 <field>
147 <name>last_modified_id</name>
148 <type>int unsigned</type>
149 <comment>FK to civicrm_contact, who recently edited this Survey.</comment>
150 <add>3.3</add>
151 </field>
152 <foreignKey>
153 <name>last_modified_id</name>
154 <table>civicrm_contact</table>
155 <key>id</key>
156 <add>3.3</add>
157 <onDelete>SET NULL</onDelete>
158 </foreignKey>
159
160 <field>
161 <name>last_modified_date</name>
162 <type>datetime</type>
163 <comment>Date and time that Survey was edited last time.</comment>
164 <add>3.3</add>
165 </field>
166
167 <field>
168 <name>result_id</name>
169 <type>int unsigned</type>
170 <default>NULL</default>
171 <comment>Used to store option group id.</comment>
172 <add>3.3</add>
173 </field>
174 <field>
175 <name>bypass_confirm</name>
176 <type>boolean</type>
177 <default>0</default>
178 <comment>Bypass the email verification.</comment>
179 <add>4.2</add>
180 </field>
181 <field>
182 <name>thankyou_title</name>
183 <title>Thank-you Title</title>
184 <type>varchar</type>
185 <length>255</length>
186 <localizable>true</localizable>
187 <comment>Title for Thank-you page (header title tag, and display at the top of the page).</comment>
188 <add>4.2</add>
189 </field>
190 <field>
191 <name>thankyou_text</name>
192 <title>Thank-you Text</title>
193 <type>text</type>
194 <htmlType>textarea</htmlType>
195 <rows>8</rows>
196 <cols>60</cols>
197 <localizable>true</localizable>
198 <comment>text and html allowed. displayed above result on success page</comment>
199 <add>4.2</add>
200 </field>
201</table>