plugins/logs/share/db/sql/sys_log_exec.sql.php
<?php
return '
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`date` int(10) unsigned NOT NULL DEFAULT \'0\',
`user_id` int(10) unsigned NOT NULL DEFAULT \'0\',
`user_group` tinyint(3) unsigned NOT NULL DEFAULT \'0\',
`request_uri` varchar(255) NOT NULL DEFAULT \'\',
`query_string` varchar(255) NOT NULL DEFAULT \'\',
`ip` varchar(16) NOT NULL DEFAULT \'\',
`lang` char(2) NOT NULL DEFAULT \'\',
`country` char(2) NOT NULL DEFAULT \'\',
`utm_source` varchar(255) NOT NULL DEFAULT \'\',
`user_agent` varchar(255) NOT NULL DEFAULT \'\',
`referer` varchar(255) NOT NULL DEFAULT \'\',
`exec_time` float NOT NULL DEFAULT \'0\',
`num_dbq` smallint(5) unsigned NOT NULL DEFAULT \'0\',
`page_size` int(10) unsigned NOT NULL DEFAULT \'0\',
`memory` int(10) unsigned NOT NULL DEFAULT \'0\',
`site_id` tinyint(3) unsigned NOT NULL DEFAULT \'0\',
`server_id` tinyint(3) unsigned NOT NULL DEFAULT \'0\',
`is_admin` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_common_page` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_https` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_post` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_no_graphics` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_ajax` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_spider` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_redirect` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_console` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_unit_test` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_dev` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_debug` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_banned` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_403` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_404` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_503` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_cache_on` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
`is_mobile` tinyint(1) unsigned NOT NULL DEFAULT \'0\',
PRIMARY KEY (`id`)
';