PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 6.2.1
MainWP Dashboard: Self-hosted WordPress Management for Agencies v6.2.1
6.2.2 6.2.1 6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 All 155 releases
mainwp / includes / core-db-schema-info.php

core-db-schema-info.php in MainWP Dashboard: Self-hosted WordPress Management for Agencies 6.2.1, at includes/core-db-schema-info.php

384 lines 18.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * MainWP Core database schema information used to detect database issues.
4 *
5 * This file was initially generated by external code and tools.
6 *
7 * Table names are defined without the default prefix (`$wpdb->prefix . 'mainwp_'`). The prefix is added after loading for processing.
8 *
9 * @package MainWP/Dashboard
10 */
11
12 // Exit if accessed directly.
13 if ( ! defined( 'ABSPATH' ) ) {
14 exit;
15 }
16
17
18 return array(
19 'wp_clients' => array(
20 'columns' => array(
21 'client_id' => 'int(11) NOT NULL auto_increment',
22 'image' => "varchar(255) NOT NULL default ''",
23 'name' => 'varchar(255) NOT NULL',
24 'address_1' => "varchar(255) NOT NULL default ''",
25 'address_2' => "varchar(255) NOT NULL default ''",
26 'city' => "varchar(100) NOT NULL default ''",
27 'zip' => "varchar(32) NOT NULL default ''",
28 'state' => "varchar(200) NOT NULL default ''",
29 'country' => "varchar(200) NOT NULL default ''",
30 'note' => "longtext NOT NULL default ''",
31 'selected_icon_info' => "varchar(64) NOT NULL default ''",
32 'client_email' => 'varchar(191) NOT NULL',
33 'client_phone' => "varchar(100) NOT NULL default ''",
34 'client_facebook' => "varchar(255) NOT NULL default ''",
35 'client_twitter' => "varchar(255) NOT NULL default ''",
36 'client_instagram' => "varchar(255) NOT NULL default ''",
37 'client_linkedin' => "varchar(255) NOT NULL default ''",
38 'created' => 'int(11) NOT NULL DEFAULT 0',
39 'suspended' => 'tinyint(1) NOT NULL DEFAULT 0',
40 'primary_contact_id' => 'int(11) NOT NULL default 0',
41 ),
42 ),
43
44 'wp_clients_fields' => array(
45 'columns' => array(
46 'field_id' => 'int(11) NOT NULL auto_increment',
47 'field_name' => 'varchar(191) NOT NULL DEFAULT ""',
48 'field_desc' => 'varchar(255) NOT NULL DEFAULT ""',
49 'client_id' => 'int(11) NOT NULL',
50 ),
51 ),
52
53 'wp_clients_field_values' => array(
54 'columns' => array(
55 'value_id' => 'int(11) NOT NULL auto_increment',
56 'field_id' => 'int(11) NOT NULL',
57 'field_value' => 'longtext NOT NULL DEFAULT ""',
58 'value_client_id' => 'int(11) NOT NULL',
59 ),
60 ),
61
62 'wp_clients_contacts' => array(
63 'columns' => array(
64 'contact_id' => 'int(11) NOT NULL auto_increment',
65 'contact_client_id' => 'int(11) NOT NULL',
66 'contact_email' => 'varchar(191) NOT NULL',
67 'contact_image' => 'varchar(255) NOT NULL default ""',
68 'contact_icon_info' => 'varchar(64) NOT NULL default ""',
69 'contact_name' => 'varchar(255) NOT NULL',
70 'contact_phone' => 'varchar(100) NOT NULL default ""',
71 'contact_role' => 'varchar(255) NOT NULL default ""',
72 'facebook' => 'varchar(255) NOT NULL default ""',
73 'twitter' => 'varchar(255) NOT NULL default ""',
74 'instagram' => 'varchar(255) NOT NULL default ""',
75 'linkedin' => 'varchar(255) NOT NULL default ""',
76 ),
77 ),
78 'monitors' => array(
79 'columns' => array(
80 'monitor_id' => 'int(11) NOT NULL auto_increment',
81 'wpid' => 'int(11) NOT NULL',
82 'active' => 'tinyint(1) DEFAULT -1',
83 'type' => "varchar(20) NOT NULL DEFAULT ''",
84 'keyword' => "varchar(255) NOT NULL DEFAULT ''",
85 'suburl' => "varchar(255) NOT NULL DEFAULT ''",
86 'issub' => 'tinyint(1) DEFAULT 0',
87 'timeout' => 'smallint NOT NULL DEFAULT -1',
88 'interval' => 'int(11) NOT NULL DEFAULT -1',
89 'retry_interval' => 'int(11) NOT NULL DEFAULT 1',
90 'up_status_codes' => "text NOT NULL DEFAULT ''",
91 'last_status' => 'tinyint(1) DEFAULT 99',
92 'last_main_status' => 'tinyint(1) DEFAULT 99',
93 'last_http_code' => 'int(11) NOT NULL DEFAULT 0',
94 'lasttime_check' => 'int(11) NOT NULL',
95 'retries' => 'tinyint(1) DEFAULT 0',
96 'maxretries' => 'tinyint(1) DEFAULT -1',
97 'maxredirects' => 'tinyint(1) DEFAULT 2',
98 'method' => "varchar(20) NOT NULL DEFAULT ''",
99 'dts_interval_lasttime' => 'int(11) NOT NULL DEFAULT 0',
100 'dts_auto_monitoring_time' => 'int(11) NOT NULL DEFAULT 0',
101 'dts_auto_monitoring_start' => 'int(11) NOT NULL DEFAULT 0',
102 'dts_auto_monitoring_retry_time' => 'int(11) NOT NULL DEFAULT 0',
103 ),
104 ),
105
106 'monitor_heartbeat' => array(
107 'columns' => array(
108 'heartbeat_id' => 'int(11) NOT NULL auto_increment',
109 'monitor_id' => 'int(11) NOT NULL',
110 'msg' => 'text NOT NULL',
111 'importance' => 'tinyint(1) NOT NULL DEFAULT 0',
112 'status' => 'smallint NOT NULL DEFAULT 3',
113 'time' => 'DATETIME NOT NULL',
114 'ping_ms' => 'int DEFAULT 0',
115 'duration' => 'int DEFAULT 0',
116 'down_count' => 'tinyint(1) NOT NULL DEFAULT 0',
117 'http_code' => 'smallint NOT NULL DEFAULT 0',
118 ),
119 ),
120
121 'monitor_stat_hourly' => array(
122 'columns' => array(
123 'stat_hourly_id' => 'int(11) NOT NULL auto_increment',
124 'monitor_id' => 'int(11) NOT NULL',
125 'up' => 'int DEFAULT 0',
126 'down' => 'int DEFAULT 0',
127 'ping_avg' => 'int DEFAULT 0',
128 'ping_min' => 'int DEFAULT 0',
129 'ping_max' => 'int DEFAULT 0',
130 'timestamp' => 'int DEFAULT 0',
131 ),
132 ),
133
134 'wp' => array(
135 'columns' => array(
136 'id' => 'int(11) NOT NULL auto_increment',
137 'userid' => 'int(11) NOT NULL',
138 'adminname' => 'text NOT NULL',
139 'name' => 'text NOT NULL',
140 'url' => 'text NOT NULL',
141 'pubkey' => 'text NOT NULL',
142 'privkey' => 'text NOT NULL',
143 'siteurl' => 'text NOT NULL',
144 'ga_id' => 'text NOT NULL',
145 'gas_id' => 'int(11) NOT NULL',
146 'offline_checks_last' => 'int(11) NOT NULL',
147 'offline_check_result' => 'int(11) NOT NULL',
148 'http_response_code' => 'int(11) NOT NULL DEFAULT 0',
149 'http_code_noticed' => 'tinyint(1) NOT NULL DEFAULT 1',
150 'disable_health_check' => 'tinyint(1) NOT NULL DEFAULT 0',
151 'health_threshold' => 'int(11) NOT NULL DEFAULT 0',
152 'note' => 'text NOT NULL',
153 'statsUpdate' => 'int(11) NOT NULL',
154 'directories' => 'longtext NOT NULL',
155 'plugin_upgrades' => 'longtext NOT NULL',
156 'theme_upgrades' => 'longtext NOT NULL',
157 'translation_upgrades' => 'longtext NOT NULL',
158 'premium_upgrades' => 'longtext NOT NULL',
159 'securityIssues' => 'longtext NOT NULL',
160 'themes' => 'longtext NOT NULL',
161 'ignored_themes' => 'longtext NOT NULL',
162 'plugins' => 'longtext NOT NULL',
163 'ignored_plugins' => 'longtext NOT NULL',
164 'users' => 'longtext NOT NULL',
165 'categories' => 'longtext NOT NULL',
166 'pluginDir' => 'text NOT NULL',
167 'automatic_update' => 'tinyint(1) NOT NULL',
168 'backup_before_upgrade' => 'tinyint(1) NOT NULL DEFAULT 2',
169 'mainwpdir' => 'tinyint(1) NOT NULL',
170 'loadFilesBeforeZip' => 'tinyint(1) NOT NULL DEFAULT 1',
171 'is_ignoreCoreUpdates' => 'tinyint(1) NOT NULL DEFAULT 0',
172 'is_ignorePluginUpdates' => 'tinyint(1) NOT NULL DEFAULT 0',
173 'is_ignoreThemeUpdates' => 'tinyint(1) NOT NULL DEFAULT 0',
174 'verify_certificate' => 'tinyint(1) NOT NULL DEFAULT 1',
175 'force_use_ipv4' => 'tinyint(1) NOT NULL DEFAULT 0',
176 'ssl_version' => 'tinyint(1) NOT NULL DEFAULT 0',
177 'ip' => "text NOT NULL DEFAULT ''",
178 'uniqueId' => 'text NOT NULL',
179 'maximumFileDescriptorsOverride' => 'tinyint(1) NOT NULL DEFAULT 0',
180 'maximumFileDescriptorsAuto' => 'tinyint(1) NOT NULL DEFAULT 1',
181 'maximumFileDescriptors' => 'int(11) NOT NULL DEFAULT 150',
182 'primary_backup_method' => "varchar(64) NOT NULL DEFAULT ''",
183 'http_user' => "text NOT NULL DEFAULT ''",
184 'http_pass' => "text NOT NULL DEFAULT ''",
185 'wpe' => 'tinyint(1) NOT NULL',
186 'is_staging' => 'tinyint(1) NOT NULL DEFAULT 0',
187 'client_id' => 'int(11) NOT NULL DEFAULT 0',
188 'suspended' => 'tinyint(1) NOT NULL DEFAULT 0',
189 ),
190 ),
191
192 'wp_sync' => array(
193 'columns' => array(
194 'sync_id' => 'int(11) NOT NULL auto_increment',
195 'wpid' => 'int(11) NOT NULL',
196 'version' => "text NOT NULL DEFAULT ''",
197 'sync_errors' => "longtext NOT NULL DEFAULT ''",
198 'uptodate' => "longtext NOT NULL DEFAULT ''",
199 'dtsAutomaticSync' => 'int(11) NOT NULL DEFAULT 0',
200 'dtsAutomaticSyncStart' => 'int(11) NOT NULL DEFAULT 0',
201 'dtsSync' => 'int(11) NOT NULL DEFAULT 0',
202 'dtsSyncStart' => 'int(11) NOT NULL DEFAULT 0',
203 'totalsize' => 'int(11) NOT NULL DEFAULT 0',
204 'dbsize' => 'int(11) NOT NULL DEFAULT 0',
205 'extauth' => "text NOT NULL DEFAULT ''",
206 'last_post_gmt' => 'int(11) NOT NULL DEFAULT 0',
207 'health_value' => 'int(11) NOT NULL DEFAULT 0',
208 'health_status' => 'tinyint(1) NOT NULL DEFAULT 0',
209 'health_site_noticed' => 'tinyint(1) NOT NULL DEFAULT 1',
210 ),
211 ),
212
213 'wp_options' => array(
214 'columns' => array(
215 'opt_id' => 'int(11) NOT NULL auto_increment',
216 'wpid' => 'int(11) NOT NULL',
217 'name' => "text NOT NULL DEFAULT ''",
218 'value' => "longtext NOT NULL DEFAULT ''",
219 ),
220 ),
221
222 'users' => array(
223 'columns' => array(
224 'userid' => 'int(11) NOT NULL',
225 'user_email' => "text NOT NULL DEFAULT ''",
226 'ignored_plugins' => "longtext NOT NULL DEFAULT ''",
227 'trusted_plugins' => "longtext NOT NULL DEFAULT ''",
228 'trusted_plugins_notes' => "longtext NOT NULL DEFAULT ''",
229 'ignored_themes' => "longtext NOT NULL DEFAULT ''",
230 'ignored_wp_upgrades' => "longtext NOT NULL DEFAULT ''",
231 'trusted_themes' => "longtext NOT NULL DEFAULT ''",
232 'trusted_themes_notes' => "longtext NOT NULL DEFAULT ''",
233 'site_view' => "tinyint(1) NOT NULL DEFAULT '0'",
234 'pluginDir' => "text NOT NULL DEFAULT ''",
235 'dismissed_plugins' => "longtext NOT NULL DEFAULT ''",
236 'dismissed_themes' => "longtext NOT NULL DEFAULT ''",
237 ),
238 ),
239
240 'wp_status' => array(
241 'columns' => array(
242 'statusid' => 'bigint(20) unsigned NOT NULL auto_increment',
243 'wpid' => 'int(11) NOT NULL',
244 'http_code' => 'smallint NOT NULL DEFAULT 0',
245 'status' => 'tinyint(1) NOT NULL DEFAULT 0',
246 'event_timestamp' => 'int(11) NOT NULL',
247 'duration' => 'int(11) NOT NULL DEFAULT 0',
248 ),
249 ),
250
251 'group' => array(
252 'columns' => array(
253 'id' => 'int(11) NOT NULL auto_increment',
254 'userid' => 'int(11) NOT NULL',
255 'name' => 'text NOT NULL',
256 'color' => 'varchar(32) NOT NULL DEFAULT ""',
257 ),
258 ),
259
260 'wp_group' => array(
261 'columns' => array(
262 'wp_group_id' => 'int(11) NOT NULL auto_increment',
263 'wpid' => 'int(11) NOT NULL',
264 'groupid' => 'int(11) NOT NULL',
265 ),
266 ),
267
268 'lookup_item_objects' => array(
269 'columns' => array(
270 'lookup_id' => 'bigint(20) unsigned NOT NULL auto_increment',
271 'item_id' => 'bigint(20) unsigned NOT NULL',
272 'item_name' => 'varchar(32) NOT NULL',
273 'object_id' => 'bigint(20) unsigned NOT NULL',
274 'object_name' => 'varchar(32) NOT NULL',
275 ),
276 ),
277
278
279 'api_keys' => array(
280 'columns' => array(
281 'key_id' => 'bigint(20) unsigned NOT NULL auto_increment',
282 'user_id' => 'bigint(20) unsigned NOT NULL',
283 'description' => 'varchar(200) NULL',
284 'permissions' => 'varchar(10) NOT NULL',
285 'consumer_key' => 'char(64) NOT NULL',
286 'consumer_secret' => 'varchar(255) NOT NULL',
287 'nonces' => 'longtext NULL',
288 'truncated_key' => 'char(7) NOT NULL',
289 'key_pass' => 'char(64) NOT NULL DEFAULT ""',
290 'key_type' => 'tinyint(1) NOT NULL DEFAULT 0',
291 'enabled' => 'tinyint(1) DEFAULT 0',
292 'last_access' => 'datetime NULL default null',
293 ),
294 ),
295
296 'action_log' => array(
297 'columns' => array(
298 'id' => 'int(11) NOT NULL auto_increment',
299 'log_content' => "mediumtext NOT NULL DEFAULT ''",
300 'log_type' => 'tinyint(1) DEFAULT 0',
301 'log_color' => 'tinyint(1) DEFAULT 0',
302 'log_user' => "varchar(128) NOT NULL DEFAULT ''",
303 'log_timestamp' => 'int(11) NOT NULL DEFAULT 0',
304 ),
305 ),
306
307 'request_log' => array(
308 'columns' => array(
309 'id' => 'int(11) NOT NULL auto_increment',
310 'wpid' => 'int(11) NOT NULL',
311 'ip' => "text NOT NULL DEFAULT ''",
312 'subnet' => "text NOT NULL DEFAULT ''",
313 'micro_timestamp_stop' => 'DECIMAL( 12, 2 ) NOT NULL DEFAULT 0',
314 'micro_timestamp_start' => 'DECIMAL( 12, 2 ) NOT NULL DEFAULT 0',
315 ),
316 ),
317
318 'schedule_processes' => array(
319 'columns' => array(
320 'process_id' => 'int(11) NOT NULL auto_increment',
321 'item_id' => 'int(11) NOT NULL',
322 'type' => 'varchar(32) NOT NULL',
323 'process_slug' => 'varchar(64) NOT NULL',
324 'status' => "varchar(32) NOT NULL DEFAULT ''",
325 'dts_process_start' => 'int(11) NOT NULL DEFAULT 0',
326 'dts_process_init_time' => 'int(11) NOT NULL DEFAULT 0',
327 'dts_process_stop' => 'int(11) NOT NULL DEFAULT 0',
328 ),
329 ),
330
331 'cost_tracker' => array(
332 'columns' => array(
333 'id' => 'int(11) NOT NULL AUTO_INCREMENT',
334 'name' => 'text NOT NULL',
335 'url' => 'text NOT NULL',
336 'type' => 'varchar(20) NOT NULL',
337 'product_type' => 'varchar(20) NOT NULL',
338 'slug' => 'varchar(191) NOT NULL DEFAULT ""',
339 'license_type' => 'varchar(20) NOT NULL',
340 'cost_status' => 'varchar(20) NOT NULL',
341 'payment_method' => 'varchar(50) NOT NULL',
342 'price' => 'decimal(26,8) NOT NULL',
343 'renewal_type' => 'varchar(20) NOT NULL',
344 'last_renewal' => 'int(11) NOT NULL',
345 'next_renewal' => 'int(11) NOT NULL',
346 'next_renewal_today' => 'int(11) NOT NULL',
347 'last_alert' => 'int(11) NOT NULL',
348 'cost_icon' => 'varchar(64) NOT NULL DEFAULT ""',
349 'cost_color' => 'varchar(64) NOT NULL DEFAULT ""',
350 'sites' => 'text NOT NULL',
351 'groups' => 'text NOT NULL',
352 'clients' => 'text NOT NULL',
353 'note' => 'text NOT NULL',
354 ),
355 ),
356
357 'wp_logs' => array(
358 'columns' => array(
359 'log_id' => 'bigint(20) NOT NULL auto_increment',
360 'site_id' => 'bigint(20) unsigned NULL',
361 'log_type_id' => 'bigint NOT NULL DEFAULT 0',
362 'item' => "varchar(256) NOT NULL DEFAULT ''",
363 'user_id' => "int(11) unsigned NOT NULL DEFAULT '0'",
364 'user_login' => 'varchar(100) NOT NULL',
365 'action' => 'varchar(100) NOT NULL',
366 'context' => 'varchar(100) NOT NULL',
367 'connector' => 'varchar(100) NOT NULL',
368 'state' => 'tinyint(1) unsigned NULL',
369 'created' => 'BIGINT(20) UNSIGNED NOT NULL',
370 'duration' => "float(11,4) NOT NULL DEFAULT '0'",
371 'dismiss' => 'tinyint(1) NOT NULL DEFAULT 0',
372 ),
373 ),
374
375 'wp_logs_meta' => array(
376 'columns' => array(
377 'meta_id' => 'bigint(20) unsigned NOT NULL AUTO_INCREMENT',
378 'meta_log_id' => 'bigint(20) unsigned NOT NULL',
379 'meta_key' => 'varchar(200) NOT NULL',
380 'meta_value' => 'mediumtext NOT NULL',
381 ),
382 ),
383 );
384