SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
-- Database: `soft_pier088`
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]administration_tools`
CREATE TABLE `[[dbprefix]]administration_tools` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`controller` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`action` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`order` tinyint(3) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
-- Dumping data for table `[[dbprefix]]administration_tools`
INSERT INTO `[[dbprefix]]administration_tools` VALUES
(1, 'test_mail_settings', 'administration', 'tool_test_email', 1),
(2, 'mass_mailer', 'administration', 'tool_mass_mailer', 2),
(3, 'system_info', 'administration', 'system_info', 3),
(4, 'browse_log', 'administration', 'browse_log', 4);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]application_logs`
CREATE TABLE `[[dbprefix]]application_logs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`taken_by_id` int(10) unsigned DEFAULT NULL,
`project_id` int(10) unsigned NOT NULL DEFAULT '0',
`rel_object_id` int(10) NOT NULL DEFAULT '0',
`object_name` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`rel_object_manager` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned DEFAULT NULL,
`action` enum('upload','open','close','delete','edit','add') CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`is_private` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_silent` tinyint(1) unsigned NOT NULL DEFAULT '0',
KEY `created_on` (`created_on`),
KEY `project_id` (`project_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
-- Dumping data for table `[[dbprefix]]application_logs`
INSERT INTO `[[dbprefix]]application_logs` VALUES
(1, 1, 1, 1, 'Welcome', 'Projects', '[[regtime]]', 1, 'add', 0, 0),
(2, 1, 1, 1, 'Welcome', 'ProjectMilestones', '[[regtime]]', 1, 'add', 0, 0),
(3, 1, 1, 1, 'Welcome', 'ProjectTaskLists', '[[regtime]]', 1, 'add', 0, 0);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]attached_files`
CREATE TABLE `[[dbprefix]]attached_files` (
`rel_object_manager` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`rel_object_id` int(10) unsigned NOT NULL DEFAULT '0',
`file_id` int(10) unsigned NOT NULL DEFAULT '0',
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned DEFAULT NULL,
PRIMARY KEY (`rel_object_manager`,`rel_object_id`,`file_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]comments`
CREATE TABLE `[[dbprefix]]comments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rel_object_id` int(10) unsigned NOT NULL DEFAULT '0',
`rel_object_manager` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`text` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`is_private` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_anonymous` tinyint(1) unsigned NOT NULL DEFAULT '0',
`author_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`author_email` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`author_homepage` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned DEFAULT NULL,
`updated_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_by_id` int(10) unsigned DEFAULT NULL,
KEY `object_id` (`rel_object_id`,`rel_object_manager`),
KEY `created_on` (`created_on`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]companies`
CREATE TABLE `[[dbprefix]]companies` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`client_of_id` int(10) unsigned DEFAULT NULL,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`description` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`email` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`homepage` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`address` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`address2` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`city` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`state` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`zipcode` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`country` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`phone_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`fax_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`logo_file` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`is_favorite` tinyint(1) unsigned NOT NULL DEFAULT '0',
`timezone` float(4,2) NOT NULL DEFAULT '0.00',
`hide_welcome_info` tinyint(1) unsigned NOT NULL DEFAULT '0',
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned DEFAULT NULL,
`updated_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_by_id` int(10) unsigned DEFAULT NULL,
KEY `created_on` (`created_on`),
KEY `client_of_id` (`client_of_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
-- Dumping data for table `[[dbprefix]]companies`
INSERT INTO `[[dbprefix]]companies` VALUES
(1, 0, '[[comp_name]]', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0.00, 0, '[[date_gmt]]', 1, '[[date_gmt]]', 0);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]config_categories`
CREATE TABLE `[[dbprefix]]config_categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`is_system` tinyint(1) unsigned NOT NULL DEFAULT '0',
`category_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `name` (`name`),
KEY `order` (`category_order`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- Dumping data for table `[[dbprefix]]config_categories`
INSERT INTO `[[dbprefix]]config_categories` VALUES
(6, 'authentication', 0, 8);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]config_options`
CREATE TABLE `[[dbprefix]]config_options` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`category_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`value` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`config_handler_class` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`is_system` tinyint(1) unsigned NOT NULL DEFAULT '0',
`option_order` tinyint(3) unsigned NOT NULL DEFAULT '0',
`dev_comment` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
UNIQUE KEY `name` (`name`),
KEY `order` (`option_order`),
KEY `category_id` (`category_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=61 ;
-- Dumping data for table `[[dbprefix]]config_options`
INSERT INTO `[[dbprefix]]config_options` VALUES
(1, 'system', 'project_logs_per_page', '10', 'IntegerConfigHandler', 1, 0, NULL),
(2, 'system', 'messages_per_page', '5', 'IntegerConfigHandler', 1, 0, NULL),
(3, 'system', 'max_avatar_width', '50', 'IntegerConfigHandler', 1, 0, NULL),
(4, 'system', 'max_avatar_height', '50', 'IntegerConfigHandler', 1, 0, NULL),
(5, 'system', 'logs_per_project', '5', 'IntegerConfigHandler', 1, 0, NULL),
(6, 'system', 'max_logo_width', '50', 'IntegerConfigHandler', 1, 0, NULL),
(7, 'system', 'max_logo_height', '50', 'IntegerConfigHandler', 1, 0, NULL),
(8, 'system', 'files_per_page', '10', 'IntegerConfigHandler', 1, 0, NULL),
(9, 'general', 'calendar_first_day_of_week', '1', 'DayOfWeekConfigHandler', 0, 0, NULL),
(10, 'general', 'site_name', '[[site_name]]', 'StringConfigHandler', 0, 0, NULL),
(11, 'general', 'upgrade_last_check_datetime', '2006-09-02 13:46:47', 'DateTimeConfigHandler', 1, 0, 'Date and time of the last upgrade check'),
(12, 'general', 'upgrade_last_check_new_version', '0', 'BoolConfigHandler', 1, 0, 'True if system checked for the new version and found it. This value is used to highlight upgrade tab in the administration'),
(13, 'general', 'upgrade_check_enabled', '0', 'BoolConfigHandler', 0, 0, 'Upgrade check enabled / disabled'),
(14, 'general', 'file_storage_adapter', 'fs', 'FileStorageConfigHandler', 0, 0, 'What storage adapter should be used? fs or mysql'),
(15, 'general', 'default_project_folders', 'images\r\ndocuments\r\nother\r\n', 'TextConfigHandler', 0, 3, NULL),
(16, 'general', 'theme', 'marine', 'ThemeConfigHandler', 0, 0, NULL),
(17, 'general', 'logout_redirect_page', 'default', 'StringConfigHandler', 0, 0, 'Logout Redirect mod by Alex: Redirect to a set page upon logout'),
(18, 'mailing', 'exchange_compatible', '0', 'BoolConfigHandler', 0, 90, NULL),
(19, 'mailing', 'mail_transport', 'mail()', 'MailTransportConfigHandler', 0, 10, 'Values: ''mail()'' - try to emulate mail() function, ''smtp'' - use SMTP connection'),
(20, 'mailing', 'mail_use_reply_to', '0', 'BoolConfigHandler', 0, 11, 'Enable to use Reply-To header in mails'),
(21, 'mailing', 'mail_from', '', 'StringConfigHandler', 0, 12, 'The From address in every mail sent out'),
(22, 'mailing', 'smtp_server', '', 'StringConfigHandler', 0, 20, ''),
(23, 'mailing', 'smtp_port', '25', 'IntegerConfigHandler', 0, 21, NULL),
(24, 'mailing', 'smtp_authenticate', '0', 'BoolConfigHandler', 0, 22, 'Use SMTP authentication'),
(25, 'mailing', 'smtp_username', '', 'StringConfigHandler', 0, 23, NULL),
(26, 'mailing', 'smtp_password', '', 'PasswordConfigHandler', 0, 24, NULL),
(27, 'mailing', 'smtp_secure_connection', 'no', 'SecureSmtpConnectionConfigHandler', 0, 25, 'Values: no, ssl, tls'),
(28, 'general', 'ldap_host', '', 'StringConfigHandler', 0, 0, NULL),
(29, 'general', 'ldap_domain', '%s', 'StringConfigHandler', 0, 0, 'Note: %s is replaced with user name. Example 1. %s@example.com . Example 2. uid=%s,dc=example,dc=com'),
(30, 'general', 'ldap_secure_connection', 'no', 'SecureLDAPConnectionConfigHandler', 0, 0, 'Values: no, tls'),
(31, 'features', 'per_project_activity_logs', '0', 'BoolConfigHandler', 0, 0, 'Show recent activity logs per project on the owner company dashboard (like BaseCamp) rather than all mashed together'),
(32, 'features', 'logs_show_icons', '1', 'BoolConfigHandler', 0, 0, 'Show log icons'),
(33, 'general', 'categories_per_page', '25', 'IntegerConfigHandler', 0, 0, NULL),
(34, 'features', 'default_private', '1', 'BoolConfigHandler', 0, 0, 'Default setting for private option'),
(35, 'features', 'send_notification_default', '0', 'BoolConfigHandler', 0, 0, 'Default setting for Send notification option'),
(36, 'features', 'enable_efqm', '0', 'BoolConfigHandler', 0, 0, 'Enable EFQM options (www.efqm.org)'),
(37, 'features', 'display_application_logs', '1', 'BoolConfigHandler', 0, 0, 'Display application logs'),
(38, 'features', 'login_show_options', '1', 'BoolConfigHandler', 0, 0, 'Show options on the login page'),
(39, 'general', 'installation_root', '/', 'StringConfigHandler', 0, 0, NULL),
(40, 'general', 'check_email_unique', '0', 'BoolConfigHandler', 0, 0, 'True if emails should be unique when adding/editing a user'),
(41, 'database', 'character_set', 'utf8', 'StringConfigHandler', 0, 0, 'Standard SQL character set (e.g. utf8, latin1)'),
(42, 'database', 'collation', 'utf8_unicode_ci', 'StringConfigHandler', 0, 0, 'Standard SQL collate value (e.g. latin1_bin, utf8_bin, utf8_unicode_ci)'),
(43, 'general', 'session_lifetime', '3600', 'IntegerConfigHandler', 0, 24, ''),
(44, 'general', 'remember_login_lifetime', '1209600', 'IntegerConfigHandler', 0, 24, ''),
(45, 'general', 'default_controller', 'dashboard', 'StringConfigHandler', 0, 25, 'Controller to use after login (future use)'),
(46, 'general', 'default_action', 'index', 'DefaultDashboardActionConfigHandler', 0, 26, 'Action to perform after login (e.g. show dashboard)'),
(47, 'system', 'product_name', 'ProjectPier', 'StringConfigHandler', 1, 0, NULL),
(48, 'system', 'product_version', '0.8.8', 'StringConfigHandler', 1, 0, NULL),
(49, 'general', 'installation_welcome_text', 'Welcome to ProjectPier 0.8.8', 'StringConfigHandler', 0, 11, NULL),
(50, 'general', 'installation_welcome_logo', '<img src="public/assets/themes/marine/images/projectpier-logo.png" style="position: relative; left: 0px; top: 0px;">', 'StringConfigHandler', 0, 10, 'Logo to display above login user/pass'),
(52, 'authentication', 'authdb server', 'localhost', 'StringConfigHandler', 0, 1, NULL),
(53, 'authentication', 'authdb username', 'root', 'StringConfigHandler', 0, 2, NULL),
(54, 'authentication', 'authdb password', '', 'PasswordConfigHandler', 0, 3, NULL),
(55, 'authentication', 'authdb database', '', 'StringConfigHandler', 0, 3, NULL),
(56, 'authentication', 'authdb sql', 'select `user_email` as email from `wp_users` where `user_login` = ''$username'' and user_pass = md5(''$password'') limit 1', 'StringConfigHandler', 0, 4, NULL),
(57, 'general', 'dashboard_logs_count', '50', 'IntegerConfigHandler', 0, 27, NULL),
(58, 'general', 'map url', 'http://maps.google.com?q=$location', 'StringConfigHandler', 0, 3, NULL),
(59, 'general', 'route url', 'http://maps.google.com?saddr=$from&daddr=$to', 'StringConfigHandler', 0, 3, NULL),
(60, 'general', 'parking space reservation url', '', 'StringConfigHandler', 0, 3, NULL);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]contacts`
CREATE TABLE `[[dbprefix]]contacts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`company_id` int(10) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
`email` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`display_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`first_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`middle_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`last_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`title` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`avatar_file` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`use_gravatar` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_favorite` tinyint(1) unsigned NOT NULL DEFAULT '0',
`timezone` float(4,2) NOT NULL DEFAULT '0.00',
`office_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`fax_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`mobile_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`home_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`license_plate` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`food_preferences` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`department_details` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`location_details` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`language_preferences` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned DEFAULT NULL,
`updated_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_by_id` int(10) unsigned DEFAULT NULL,
KEY `company_id` (`company_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
-- Dumping data for table `[[dbprefix]]contacts`
INSERT INTO `[[dbprefix]]contacts` VALUES
(1, 1, 1, '[[admin_email]]', '[[admin_username]]', '', '', '', '', '', 0, 0, 0.00, '', '', '', '', '', '', '', '', '', '[[date_gmt]]', 0, '[[date_gmt]]', 0);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]contact_im_values`
CREATE TABLE `[[dbprefix]]contact_im_values` (
`contact_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`im_type_id` int(10) unsigned NOT NULL DEFAULT '0',
`im_value` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`is_default` tinyint(1) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`contact_id`,`im_type_id`),
KEY `im_value` (`im_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]file_repo`
CREATE TABLE `[[dbprefix]]file_repo` (
`id` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`seq` int(10) unsigned NOT NULL DEFAULT '0',
`content` longblob NOT NULL,
`order` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`,`seq`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]file_repo_attributes`
CREATE TABLE `[[dbprefix]]file_repo_attributes` (
`id` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`attribute` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`value` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id`,`attribute`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]file_types`
CREATE TABLE `[[dbprefix]]file_types` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`extension` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`icon` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`is_searchable` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_image` tinyint(1) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `extension` (`extension`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=39 ;
-- Dumping data for table `[[dbprefix]]file_types`
INSERT INTO `[[dbprefix]]file_types` VALUES
(1, 'xxx', 'unknown.png', 0, 0),
(2, 'zip', 'archive.png', 0, 0),
(3, 'rar', 'archive.png', 0, 0),
(4, 'bz', 'archive.png', 0, 0),
(5, 'bz2', 'archive.png', 0, 0),
(6, 'gz', 'archive.png', 0, 0),
(7, 'ace', 'archive.png', 0, 0),
(8, 'mp3', 'audio.png', 0, 0),
(9, 'wma', 'audio.png', 0, 0),
(10, 'ogg', 'audio.png', 0, 0),
(11, 'doc', 'doc.png', 0, 0),
(12, 'docx', 'doc.png', 0, 0),
(13, 'xml', 'doc.png', 0, 0),
(14, 'xsl', 'doc.png', 0, 0),
(15, 'xls', 'doc.png', 0, 0),
(16, 'xlsx', 'doc.png', 0, 0),
(17, 'gif', 'image.png', 0, 1),
(18, 'jpg', 'image.png', 0, 1),
(19, 'jpeg', 'image.png', 0, 1),
(20, 'png', 'image.png', 0, 1),
(21, 'mov', 'mov.png', 0, 0),
(22, 'pdf', 'pdf.png', 0, 0),
(23, 'psd', 'psd.png', 0, 0),
(24, 'rm', 'rm.png', 0, 0),
(25, 'svg', 'svg.png', 0, 0),
(26, 'swf', 'swf.png', 0, 0),
(27, 'avi', 'video.png', 0, 0),
(28, 'mpeg', 'video.png', 0, 0),
(29, 'mpg', 'video.png', 0, 0),
(30, 'qt', 'mov.png', 0, 0),
(31, 'vob', 'video.png', 0, 0),
(32, 'wmv', 'video.png', 0, 0),
(33, 'rtf', 'doc.png', 0, 0),
(34, 'txt', 'doc.png', 1, 0),
(35, 'php', 'doc.png', 1, 0),
(36, 'mp4', 'video.png', 1, 0),
(37, 'ppt', 'doc.png', 0, 0),
(38, 'pptx', 'doc.png', 0, 0);
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]im_types`
CREATE TABLE `[[dbprefix]]im_types` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`icon` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- Dumping data for table `[[dbprefix]]im_types`
INSERT INTO `[[dbprefix]]im_types` VALUES
(4, 'Yahoo!', 'yahoo.gif'),
(5, 'Skype', 'skype.gif'),
(6, 'Jabber', 'jabber.gif');
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]message_subscriptions`
CREATE TABLE `[[dbprefix]]message_subscriptions` (
`message_id` int(10) unsigned NOT NULL DEFAULT '0',
`user_id` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`message_id`,`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]page_attachments`
CREATE TABLE `[[dbprefix]]page_attachments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`rel_object_id` int(10) unsigned DEFAULT NULL,
`rel_object_manager` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`project_id` int(10) unsigned NOT NULL,
`page_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`text` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`order` tinyint(3) NOT NULL DEFAULT '0',
`created_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`created_by_id` int(10) unsigned DEFAULT NULL,
`updated_on` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_by_id` int(10) unsigned DEFAULT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `[[dbprefix]]permissions`
CREATE TABLE `[[dbprefix]]permissions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`source` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`permission` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=26 ;
-- Dumping data for table `[[dbprefix]]permissions`
INSERT INTO `[[dbprefix]]permissions` VALUES
(3, 'milestones', 'manage'),
(4, 'messages', 'manage'),
(6, 'tasks', 'assign to other clients'),
(7, 'tasks', 'assign to owner company'),
(8, 'tickets', 'manage'),
(9, 'projects', 'manage'),