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: `eventum367`
-- --------------------------------------------------------
-- Table structure for table `api_token`
CREATE TABLE `api_token` (
`apt_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`apt_usr_id` int(10) unsigned NOT NULL,
`apt_created` datetime NOT NULL,
`apt_status` varchar(10) NOT NULL DEFAULT 'active',
`apt_token` varchar(32) NOT NULL,
KEY `apt_usr_id` (`apt_usr_id`,`apt_status`),
KEY `apt_token` (`apt_token`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `attachment_chunk`
CREATE TABLE `attachment_chunk` (
`path_id` mediumint(8) unsigned NOT NULL,
`chunk_no` smallint(6) unsigned NOT NULL,
`content` mediumblob NOT NULL,
PRIMARY KEY (`path_id`,`chunk_no`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `attachment_path`
CREATE TABLE `attachment_path` (
`path_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT,
`type` enum('dir','file') NOT NULL,
`path` varchar(255) NOT NULL,
`mimetype` varchar(255) CHARACTER SET ascii DEFAULT NULL,
`visibility` varchar(25) DEFAULT '',
`size` int(11) unsigned DEFAULT NULL,
`is_compressed` tinyint(4) NOT NULL DEFAULT '1',
`update_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `columns_to_display`
CREATE TABLE `columns_to_display` (
`ctd_prj_id` int(11) unsigned NOT NULL,
`ctd_page` varchar(20) NOT NULL,
`ctd_field` varchar(30) NOT NULL,
`ctd_min_role` tinyint(1) NOT NULL DEFAULT '0',
`ctd_rank` tinyint(4) NOT NULL DEFAULT '0',
PRIMARY KEY (`ctd_prj_id`,`ctd_page`,`ctd_field`),
KEY `ctd_prj_id` (`ctd_prj_id`,`ctd_page`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- Dumping data for table `columns_to_display`
INSERT INTO `columns_to_display` VALUES
(1, 'list_issues', 'pri_rank', 1, 1),
(1, 'list_issues', 'iss_id', 1, 2),
(1, 'list_issues', 'usr_full_name', 1, 3),
(1, 'list_issues', 'grp_name', 1, 4),
(1, 'list_issues', 'assigned', 1, 5),
(1, 'list_issues', 'time_spent', 1, 6),
(1, 'list_issues', 'prc_title', 1, 7),
(1, 'list_issues', 'pre_title', 1, 8),
(1, 'list_issues', 'iss_customer_id', 1, 9),
(1, 'list_issues', 'sta_rank', 1, 10),
(1, 'list_issues', 'status_action_date', 1, 11),
(1, 'list_issues', 'last_action_date', 1, 12),
(1, 'list_issues', 'custom_fields', 1, 13),
(1, 'list_issues', 'iss_summary', 1, 14),
(1, 'list_issues', 'iss_dev_time', 9, 15),
(1, 'list_issues', 'iss_percent_complete', 9, 16);
-- --------------------------------------------------------
-- Table structure for table `commit`
`com_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`com_scm_name` varchar(255) NOT NULL DEFAULT 'default',
`com_project_name` varchar(255) DEFAULT NULL,
`com_changeset` varchar(40) NOT NULL,
`com_branch` varchar(255) DEFAULT NULL,
`com_author_email` varchar(255) DEFAULT NULL,
`com_author_name` varchar(255) DEFAULT NULL,
`com_usr_id` int(11) DEFAULT NULL,
`com_commit_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`com_message` mediumtext,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `commit_file`
CREATE TABLE `commit_file` (
`cof_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cof_com_id` int(10) unsigned NOT NULL,
`cof_filename` varchar(255) NOT NULL DEFAULT '',
`cof_added` tinyint(1) NOT NULL DEFAULT '0',
`cof_modified` tinyint(1) NOT NULL DEFAULT '0',
`cof_removed` tinyint(1) NOT NULL DEFAULT '0',
`cof_old_version` varchar(40) DEFAULT NULL,
`cof_new_version` varchar(40) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `customer_account_manager`
CREATE TABLE `customer_account_manager` (
`cam_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cam_prj_id` int(11) unsigned NOT NULL,
`cam_customer_id` varchar(128) NOT NULL,
`cam_usr_id` int(11) unsigned NOT NULL,
`cam_type` varchar(7) NOT NULL,
UNIQUE KEY `cam_manager` (`cam_prj_id`,`cam_customer_id`,`cam_usr_id`),
KEY `cam_customer_id` (`cam_customer_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `customer_note`
CREATE TABLE `customer_note` (
`cno_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`cno_prj_id` int(11) unsigned NOT NULL,
`cno_customer_id` varchar(128) NOT NULL,
`cno_created_date` datetime NOT NULL,
`cno_updated_date` datetime DEFAULT NULL,
UNIQUE KEY `cno_prj_id` (`cno_prj_id`,`cno_customer_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `custom_field`
CREATE TABLE `custom_field` (
`fld_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`fld_title` varchar(32) NOT NULL DEFAULT '',
`fld_description` varchar(64) DEFAULT NULL,
`fld_type` varchar(8) NOT NULL DEFAULT 'text',
`fld_report_form` int(1) NOT NULL DEFAULT '1',
`fld_report_form_required` int(1) NOT NULL DEFAULT '0',
`fld_anonymous_form` int(1) NOT NULL DEFAULT '1',
`fld_anonymous_form_required` int(1) NOT NULL DEFAULT '0',
`fld_close_form` tinyint(1) NOT NULL DEFAULT '0',
`fld_close_form_required` tinyint(1) NOT NULL DEFAULT '0',
`fld_edit_form_required` tinyint(1) NOT NULL DEFAULT '0',
`fld_list_display` tinyint(1) NOT NULL DEFAULT '0',
`fld_min_role` tinyint(1) NOT NULL DEFAULT '0',
`fld_min_role_edit` tinyint(1) NOT NULL DEFAULT '0',
`fld_rank` smallint(6) NOT NULL DEFAULT '0',
`fld_backend` varchar(255) CHARACTER SET ascii DEFAULT NULL,
`fld_order_by` varchar(20) NOT NULL DEFAULT 'cfo_id ASC',
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `custom_field_option`
CREATE TABLE `custom_field_option` (
`cfo_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cfo_fld_id` int(10) unsigned NOT NULL DEFAULT '0',
`cfo_rank` int(10) unsigned NOT NULL DEFAULT '0',
`cfo_value` varchar(128) NOT NULL DEFAULT '',
KEY `icf_fld_id` (`cfo_fld_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `custom_filter`
CREATE TABLE `custom_filter` (
`cst_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cst_usr_id` int(10) unsigned NOT NULL DEFAULT '0',
`cst_prj_id` int(10) unsigned NOT NULL DEFAULT '0',
`cst_title` varchar(64) NOT NULL DEFAULT '',
`cst_priorities` varchar(255) DEFAULT NULL,
`cst_severities` varchar(255) DEFAULT NULL,
`cst_keywords` varchar(64) DEFAULT NULL,
`cst_users` varchar(255) DEFAULT NULL,
`cst_reporters` varchar(255) DEFAULT NULL,
`cst_categories` varchar(255) DEFAULT NULL,
`cst_statuses` varchar(255) DEFAULT NULL,
`cst_releases` varchar(255) DEFAULT NULL,
`cst_products` varchar(255) DEFAULT NULL,
`cst_show_authorized` char(3) DEFAULT '',
`cst_show_notification_list` char(3) DEFAULT '',
`cst_created_date` date DEFAULT NULL,
`cst_created_date_filter_type` varchar(7) DEFAULT NULL,
`cst_created_date_time_period` smallint(6) DEFAULT NULL,
`cst_created_date_end` date DEFAULT NULL,
`cst_updated_date` date DEFAULT NULL,
`cst_updated_date_filter_type` varchar(7) DEFAULT NULL,
`cst_updated_date_time_period` smallint(6) DEFAULT NULL,
`cst_updated_date_end` date DEFAULT NULL,
`cst_last_response_date` date DEFAULT NULL,
`cst_last_response_date_filter_type` varchar(7) DEFAULT NULL,
`cst_last_response_date_time_period` smallint(6) DEFAULT NULL,
`cst_last_response_date_end` date DEFAULT NULL,
`cst_first_response_date` date DEFAULT NULL,
`cst_first_response_date_filter_type` varchar(7) DEFAULT NULL,
`cst_first_response_date_time_period` smallint(6) DEFAULT NULL,
`cst_first_response_date_end` date DEFAULT NULL,
`cst_closed_date` date DEFAULT NULL,
`cst_closed_date_filter_type` varchar(7) DEFAULT NULL,
`cst_closed_date_time_period` smallint(6) DEFAULT NULL,
`cst_closed_date_end` date DEFAULT NULL,
`cst_rows` char(3) DEFAULT NULL,
`cst_sort_by` varchar(32) DEFAULT NULL,
`cst_sort_order` varchar(4) DEFAULT NULL,
`cst_hide_closed` int(1) DEFAULT NULL,
`cst_is_global` int(1) DEFAULT '0',
`cst_search_type` varchar(15) NOT NULL DEFAULT 'customer',
KEY `cst_usr_id` (`cst_usr_id`,`cst_prj_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `email_account`
CREATE TABLE `email_account` (
`ema_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ema_prj_id` int(10) unsigned NOT NULL DEFAULT '0',
`ema_type` varchar(32) NOT NULL DEFAULT '',
`ema_folder` varchar(255) CHARACTER SET latin1 DEFAULT NULL,
`ema_hostname` varchar(255) CHARACTER SET latin1 NOT NULL DEFAULT '',
`ema_port` varchar(5) NOT NULL DEFAULT '',
`ema_username` varchar(64) NOT NULL DEFAULT '',
`ema_password` varchar(255) NOT NULL DEFAULT '',
`ema_get_only_new` int(1) NOT NULL DEFAULT '0',
`ema_leave_copy` int(1) NOT NULL DEFAULT '0',
`ema_issue_auto_creation` varchar(8) NOT NULL DEFAULT 'disabled',
`ema_issue_auto_creation_options` text,
`ema_use_routing` tinyint(1) DEFAULT '0',
UNIQUE KEY `ema_username` (`ema_username`,`ema_hostname`,`ema_folder`),
KEY `ema_prj_id` (`ema_prj_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `email_draft`
CREATE TABLE `email_draft` (
`emd_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`emd_usr_id` int(11) unsigned NOT NULL,
`emd_iss_id` int(11) unsigned NOT NULL,
`emd_sup_id` int(11) unsigned DEFAULT NULL,
`emd_status` enum('pending','edited','sent') NOT NULL DEFAULT 'pending',
`emd_updated_date` datetime NOT NULL,
`emd_subject` varchar(255) NOT NULL,
`emd_body` longtext NOT NULL,
`emd_unknown_user` varchar(255) DEFAULT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `email_draft_recipient`
CREATE TABLE `email_draft_recipient` (
`edr_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`edr_emd_id` int(11) unsigned NOT NULL,
`edr_is_cc` tinyint(1) unsigned NOT NULL DEFAULT '0',
`edr_email` varchar(255) NOT NULL,
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `email_response`
CREATE TABLE `email_response` (
`ere_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ere_title` varchar(64) NOT NULL,
`ere_response_body` text NOT NULL,
UNIQUE KEY `ere_title` (`ere_title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `faq`
`faq_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`faq_prj_id` int(11) unsigned NOT NULL,
`faq_usr_id` int(11) unsigned NOT NULL,
`faq_created_date` datetime NOT NULL,
`faq_updated_date` datetime DEFAULT NULL,
`faq_title` varchar(255) NOT NULL,
`faq_message` longtext NOT NULL,
`faq_rank` tinyint(3) unsigned NOT NULL,
UNIQUE KEY `faq_title` (`faq_title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `faq_support_level`
CREATE TABLE `faq_support_level` (
`fsl_faq_id` int(11) unsigned NOT NULL,
`fsl_support_level_id` varchar(50) NOT NULL,
PRIMARY KEY (`fsl_faq_id`,`fsl_support_level_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
-- Table structure for table `group`
`grp_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`grp_name` varchar(100) NOT NULL,
`grp_description` varchar(255) DEFAULT NULL,
`grp_manager_usr_id` int(11) unsigned NOT NULL,
UNIQUE KEY `grp_name` (`grp_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `history_type`
CREATE TABLE `history_type` (
`htt_id` tinyint(3) unsigned NOT NULL AUTO_INCREMENT,
`htt_name` varchar(25) NOT NULL,
`htt_role` tinyint(1) DEFAULT '0',
UNIQUE KEY `htt_name` (`htt_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=71 ;
-- Dumping data for table `history_type`
INSERT INTO `history_type` VALUES
(1, 'attachment_removed', 0),
(2, 'attachment_added', 0),
(3, 'custom_field_updated', 0),
(9, 'status_changed', 0),
(10, 'remote_status_change', 0),
(11, 'remote_assigned', 0),
(12, 'remote_replier_added', 0),
(13, 'details_updated', 0),
(14, 'customer_details_updated', 0),
(16, 'issue_auto_assigned', 0),
(17, 'rr_issue_assigned', 0),
(18, 'duplicate_update', 0),
(19, 'duplicate_removed', 0),
(20, 'duplicate_added', 0),
(21, 'issue_opened_anon', 0),
(22, 'remote_issue_created', 0),
(24, 'issue_updated', 0),
(25, 'user_associated', 0),
(26, 'user_all_unassociated', 0),
(27, 'replier_added', 0),
(28, 'remote_note_added', 0),
(31, 'note_converted_draft', 4),
(32, 'note_converted_email', 4),
(33, 'notification_removed', 0),
(34, 'notification_added', 0),
(35, 'notification_updated', 0),
(36, 'phone_entry_added', 4),
(37, 'phone_entry_removed', 4),
(38, 'scm_checkin_removed', 0),
(39, 'email_associated', 0),
(40, 'email_disassociated', 0),
(44, 'remote_time_added', 4),
(45, 'email_blocked', 4),
(48, 'replier_removed', 0),
(49, 'replier_other_added', 0),
(50, 'issue_associated', 0),
(51, 'issue_all_unassociated', 0),
(52, 'user_unassociated', 0),
(53, 'issue_unassociated', 0),
(54, 'group_changed', 4),
(55, 'status_auto_changed', 4),
(56, 'incident_redeemed', 4),
(57, 'incident_unredeemed', 4),
(58, 'scm_checkin_associated', 0),
(59, 'issue_bulk_updated', 0),
(61, 'version_details_updated', 4),
(62, 'partner_added', 4),
(63, 'partner_removed', 4),
(64, 'issue_cloned_from', 4),
(65, 'issue_cloned_to', 4),
(66, 'access_level_changed', 4),
(67, 'access_list_added', 4),
(68, 'access_list_removed', 4),
-- --------------------------------------------------------
-- Table structure for table `irc_notice`
CREATE TABLE `irc_notice` (
`ino_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ino_prj_id` int(11) NOT NULL,
`ino_iss_id` int(11) unsigned NOT NULL,
`ino_created_date` datetime NOT NULL,
`ino_message` varchar(255) NOT NULL,
`ino_status` varchar(8) NOT NULL DEFAULT 'pending',
`ino_target_usr_id` int(11) unsigned DEFAULT NULL,
`ino_category` varchar(25) DEFAULT NULL,
KEY `ino_status` (`ino_status`,`ino_prj_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
-- Table structure for table `issue`
`iss_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`iss_customer_id` varchar(128) DEFAULT NULL,