install.sql
9.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
--
-- Table structure for table `#__creative_forms`
--
CREATE TABLE IF NOT EXISTS `#__creative_forms` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`email_to` text NOT NULL,
`email_bcc` text NOT NULL,
`email_subject` text NOT NULL,
`email_from` text NOT NULL,
`email_from_name` text NOT NULL,
`email_replyto` text NOT NULL,
`email_replyto_name` text NOT NULL,
`shake_count` mediumint(8) UNSIGNED NOT NULL,
`shake_distanse` mediumint(8) UNSIGNED NOT NULL,
`shake_duration` mediumint(8) UNSIGNED NOT NULL,
`id_template` mediumint(8) UNSIGNED NOT NULL,
`name` text NOT NULL,
`top_text` text NOT NULL,
`pre_text` text NOT NULL,
`thank_you_text` text NOT NULL,
`send_text` text NOT NULL,
`send_new_text` text NOT NULL,
`close_alert_text` text NOT NULL,
`form_width` text NOT NULL,
`alias` text NOT NULL,
`created` datetime NOT NULL,
`publish_up` datetime NOT NULL,
`publish_down` datetime NOT NULL,
`published` tinyint(1) NOT NULL,
`checked_out` int(10) UNSIGNED NOT NULL,
`checked_out_time` datetime NOT NULL,
`access` int(10) UNSIGNED NOT NULL,
`featured` tinyint(3) UNSIGNED NOT NULL,
`ordering` int(11) NOT NULL,
`language` char(7) NOT NULL,
`redirect` enum('0','1') NOT NULL DEFAULT '0',
`redirect_itemid` int(10) UNSIGNED NOT NULL,
`redirect_url` text NOT NULL,
`redirect_delay` int(11) NOT NULL,
`send_copy_enable` enum('0','1') NOT NULL,
`send_copy_text` text NOT NULL,
`show_back` enum('0','1') NOT NULL DEFAULT '1',
`email_info_show_referrer` tinyint(4) NOT NULL DEFAULT '1',
`email_info_show_ip` tinyint(4) NOT NULL DEFAULT '1',
`email_info_show_browser` tinyint(4) NOT NULL DEFAULT '1',
`email_info_show_os` tinyint(4) NOT NULL DEFAULT '1',
`email_info_show_sc_res` tinyint(4) NOT NULL DEFAULT '1',
`custom_css` text NOT NULL,
`render_type` tinyint(3) UNSIGNED NOT NULL,
`popup_button_text` text NOT NULL,
`static_button_position` tinyint(3) UNSIGNED NOT NULL,
`static_button_offset` text NOT NULL,
`appear_animation_type` tinyint(3) UNSIGNED NOT NULL DEFAULT '1',
`check_token` tinyint(3) UNSIGNED NOT NULL,
`next_button_text` text NOT NULL,
`prev_button_text` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARACTER SET = `utf8`;
--
-- Table structure for table `#__creative_fields`
--
CREATE TABLE IF NOT EXISTS `#__creative_fields` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_user` int(10) unsigned NOT NULL,
`id_form` mediumint(8) unsigned NOT NULL,
`name` text NOT NULL,
`tooltip_text` text NOT NULL,
`id_type` mediumint(8) unsigned NOT NULL,
`alias` text NOT NULL,
`created` datetime NOT NULL,
`publish_up` datetime NOT NULL,
`publish_down` datetime NOT NULL,
`published` tinyint(1) NOT NULL,
`checked_out` int(10) unsigned NOT NULL,
`checked_out_time` datetime NOT NULL,
`access` int(10) unsigned NOT NULL,
`featured` tinyint(3) unsigned NOT NULL,
`ordering` int(11) NOT NULL,
`language` char(7) NOT NULL,
`required` enum('0','1') NOT NULL DEFAULT '0',
`width` text NOT NULL,
`field_margin_top` text NOT NULL,
`select_show_scroll_after` int(11) NOT NULL DEFAULT '10',
`select_show_search_after` int(11) NOT NULL DEFAULT '10',
`message_required` text NOT NULL,
`message_invalid` text NOT NULL,
`ordering_field` enum('0','1') NOT NULL DEFAULT '0',
`show_parent_label` enum('0','1') NOT NULL DEFAULT '1',
`select_default_text` text NOT NULL,
`select_no_match_text` text NOT NULL,
`upload_button_text` text NOT NULL,
`upload_minfilesize` text NOT NULL,
`upload_maxfilesize` text NOT NULL,
`upload_acceptfiletypes` text NOT NULL,
`upload_minfilesize_message` text NOT NULL,
`upload_maxfilesize_message` text NOT NULL,
`upload_acceptfiletypes_message` text NOT NULL,
`captcha_wrong_message` text NOT NULL,
`datepicker_date_format` text NOT NULL,
`datepicker_animation` text NOT NULL,
`datepicker_style` smallint(5) unsigned NOT NULL DEFAULT '1',
`datepicker_icon_style` smallint(6) NOT NULL DEFAULT '1',
`datepicker_show_icon` smallint(5) unsigned NOT NULL DEFAULT '1',
`datepicker_input_readonly` smallint(5) unsigned NOT NULL DEFAULT '1',
`datepicker_number_months` smallint(5) unsigned NOT NULL DEFAULT '1',
`datepicker_mindate` text NOT NULL,
`datepicker_maxdate` text NOT NULL,
`datepicker_changemonths` smallint(5) unsigned NOT NULL DEFAULT '0',
`datepicker_changeyears` smallint(5) unsigned NOT NULL DEFAULT '0',
`column_type` tinyint(4) NOT NULL,
`custom_html` text NOT NULL,
`google_maps` text NOT NULL,
`heading` text NOT NULL,
`recaptcha_site_key` text NOT NULL,
`recaptcha_security_key` text NOT NULL,
`recaptcha_wrong_message` text NOT NULL,
`recaptcha_theme` text NOT NULL,
`recaptcha_type` text NOT NULL,
`contact_data` text NOT NULL,
`contact_data_width` smallint(6) NOT NULL DEFAULT '120',
`creative_popup` text NOT NULL,
`creative_popup_embed` text NOT NULL,
PRIMARY KEY (`id`),
KEY `id_user` (`id_user`),
KEY `id_form` (`id_form`)
) ENGINE=MyISAM CHARACTER SET = `utf8`;
--
-- Table structure for table `#__creative_field_types`
--
CREATE TABLE IF NOT EXISTS `#__creative_field_types` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARACTER SET = `utf8`;
--
-- Table structure for table `#__creative_form_options`
--
CREATE TABLE IF NOT EXISTS `#__creative_form_options` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`id_parent` int(11) unsigned NOT NULL,
`name` text NOT NULL,
`value` text NOT NULL,
`ordering` int(11) NOT NULL,
`showrow` enum('0','1') NOT NULL DEFAULT '1',
`selected` enum('0','1') NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARACTER SET = `utf8`;
--
-- Table structure for table `#__contact_templates`
--
CREATE TABLE IF NOT EXISTS `#__contact_templates` (
`id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`name` text NOT NULL,
`created` datetime NOT NULL,
`date_start` date NOT NULL,
`date_end` date NOT NULL,
`publish_up` datetime NOT NULL,
`publish_down` datetime NOT NULL,
`published` tinyint(1) NOT NULL,
`checked_out` int(10) unsigned NOT NULL,
`checked_out_time` datetime NOT NULL,
`access` int(10) unsigned NOT NULL,
`featured` tinyint(3) unsigned NOT NULL,
`ordering` int(11) NOT NULL,
`language` char(7) NOT NULL,
`styles` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARACTER SET = `utf8`;
--
-- Dumping data for table `#__creative_field_types`
--
INSERT IGNORE INTO `#__creative_field_types` (`id`, `name`) VALUES
(1, 'Text Input'),
(2, 'Text Area'),
(3, 'Name'),
(4, 'E-mail'),
(5, 'Address'),
(6, 'Phone'),
(7, 'Number'),
(8, 'Url'),
(9, 'Select'),
(10, 'Multiple Select'),
(11, 'Checkbox'),
(12, 'Radio'),
(13, 'Captcha : PRO feature'),
(14, 'File upload : PRO feature'),
(16, 'Custom Html : PRO feature'),
(15, 'Datepicker : PRO feature'),
(17, 'Heading : PRO feature'),
(18, 'Google Maps : PRO feature'),
(19, 'Google reCAPTCHA : PRO feature'),
(20, 'Contact Data : PRO feature'),
(21, 'Creative Popup : PRO feature'),
(22, 'Multiple Recipients : BUSINESS feature'),
(23, 'Time : BUSINESS feature'),
(24, 'Stars : BUSINESS feature'),
(25, 'E-Signature : BUSINESS feature'),
(26, 'Page Break : BUSINESS feature'),
(27, 'If-Then : BUSINESS feature'),
(28, 'Hidden : BUSINESS feature');
-- table submissions
CREATE TABLE IF NOT EXISTS `#__creative_submissions` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`id_form` int(10) UNSIGNED NOT NULL,
`date` datetime NOT NULL,
`email` text NOT NULL,
`message` text NOT NULL,
`ip` text NOT NULL,
`browser` text NOT NULL,
`op_s` text NOT NULL,
`sc_res` text NOT NULL,
`name` text NOT NULL,
`viewed` enum('0','1') NOT NULL DEFAULT '0',
`country` text NOT NULL,
`city` text NOT NULL,
`page_title` text NOT NULL,
`page_url` text NOT NULL,
`star_index` tinyint(3) UNSIGNED NOT NULL,
`imp_index` tinyint(3) UNSIGNED NOT NULL,
`uploads` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT IGNORE INTO `#__creative_submissions` (`id`, `id_form`, `date`, `email`, `message`, `ip`, `browser`, `op_s`, `sc_res`, `name`, `viewed`, `country`, `city`, `page_title`, `page_url`, `star_index`, `imp_index`, `uploads`) VALUES
(NULL, 1, NOW(), 'demo1@creative-solutions.net', 'Name: Demo User\r\nEmail: demo@creative-solutions.net\r\nCountry: Armenia\r\nHow did you find us?: Web search\r\nMessage:\nHello,\r\n\r\nThis is test message\r\n\n', '::1', 'Google Chrome 49.0.2623.112', 'Windows 7', '1920X1080', 'Demo User 1', '0', '', '', 'CCF', 'http://localhost/Joomla_3.5.0/index.php/ccf', 1, 1, ''),
(NULL, 1, NOW(), 'demo2@creative-solutions.net', 'Name: Demo User\r\nEmail: demo@creative-solutions.net\r\nCountry: Armenia\r\nHow did you find us?: Web search\r\nMessage:\nHello,\r\n\r\nThis is test message\r\n\n', '::1', 'Google Chrome 49.0.2623.112', 'Windows 7', '1920X1080', 'Demo User 2', '0', '', '', 'CCF', 'http://localhost/Joomla_3.5.0/index.php/ccf', 2, 2, ''),
(NULL, 1, NOW(), 'demo3@creative-solutions.net', 'Name: Demo User\r\nEmail: demo@creative-solutions.net\r\nCountry: Armenia\r\nHow did you find us?: Web search\r\nMessage:\nHello,\r\n\r\nThis is test message\r\n\n', '::1', 'Google Chrome 49.0.2623.112', 'Windows 7', '1920X1080', 'Demo User 3', '0', '', '', 'CCF', 'http://localhost/Joomla_3.5.0/index.php/ccf', 3, 0, ''),
(NULL, 1, NOW(), 'demo4@creative-solutions.net', 'Name: Demo User\r\nEmail: demo@creative-solutions.net\r\nCountry: Armenia\r\nHow did you find us?: Web search\r\nMessage:\nHello,\r\n\r\nThis is test message\r\n\n', '::1', 'Google Chrome 49.0.2623.112', 'Windows 7', '1920X1080', 'Demo User 4', '0', '', '', 'CCF', 'http://localhost/Joomla_3.5.0/index.php/ccf', 4, 1, ''),
(NULL, 1, NOW(), 'demo5@creative-solutions.net', 'Name: Demo User\r\nEmail: demo@creative-solutions.net\r\nCountry: Armenia\r\nHow did you find us?: Web search\r\nMessage:\nHello,\r\n\r\nThis is test message\r\n\n', '::1', 'Google Chrome 49.0.2623.112', 'Windows 7', '1920X1080', 'Demo User 5', '0', '', '', 'CCF', 'http://localhost/Joomla_3.5.0/index.php/ccf', 5, 2, '');