mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 17:52:46 +01:00
1225 lines
42 KiB
SQL
1225 lines
42 KiB
SQL
-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
|
|
--
|
|
-- Host: localhost Database: playbook
|
|
-- ------------------------------------------------------
|
|
-- Server version 5.7.24
|
|
|
|
/*!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 */;
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
|
|
--
|
|
-- Table structure for table `ar_internal_metadata`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `ar_internal_metadata`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `ar_internal_metadata` (
|
|
`key` varchar(255) NOT NULL,
|
|
`value` varchar(255) DEFAULT NULL,
|
|
`created_at` datetime NOT NULL,
|
|
`updated_at` datetime NOT NULL,
|
|
PRIMARY KEY (`key`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `attachments`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `attachments`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `attachments` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`container_id` int(11) DEFAULT NULL,
|
|
`container_type` varchar(30) DEFAULT NULL,
|
|
`filename` varchar(255) NOT NULL DEFAULT '',
|
|
`disk_filename` varchar(255) NOT NULL DEFAULT '',
|
|
`filesize` bigint(20) NOT NULL DEFAULT '0',
|
|
`content_type` varchar(255) DEFAULT '',
|
|
`digest` varchar(64) NOT NULL DEFAULT '',
|
|
`downloads` int(11) NOT NULL DEFAULT '0',
|
|
`author_id` int(11) NOT NULL DEFAULT '0',
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
`description` varchar(255) DEFAULT NULL,
|
|
`disk_directory` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_attachments_on_author_id` (`author_id`),
|
|
KEY `index_attachments_on_created_on` (`created_on`),
|
|
KEY `index_attachments_on_container_id_and_container_type` (`container_id`,`container_type`),
|
|
KEY `index_attachments_on_disk_filename` (`disk_filename`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `auth_sources`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `auth_sources`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `auth_sources` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`type` varchar(30) NOT NULL DEFAULT '',
|
|
`name` varchar(60) NOT NULL DEFAULT '',
|
|
`host` varchar(60) DEFAULT NULL,
|
|
`port` int(11) DEFAULT NULL,
|
|
`account` varchar(255) DEFAULT NULL,
|
|
`account_password` varchar(255) DEFAULT '',
|
|
`base_dn` varchar(255) DEFAULT NULL,
|
|
`attr_login` varchar(30) DEFAULT NULL,
|
|
`attr_firstname` varchar(30) DEFAULT NULL,
|
|
`attr_lastname` varchar(30) DEFAULT NULL,
|
|
`attr_mail` varchar(30) DEFAULT NULL,
|
|
`onthefly_register` tinyint(1) NOT NULL DEFAULT '0',
|
|
`tls` tinyint(1) NOT NULL DEFAULT '0',
|
|
`filter` text,
|
|
`timeout` int(11) DEFAULT NULL,
|
|
`verify_peer` tinyint(1) NOT NULL DEFAULT '1',
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_auth_sources_on_id_and_type` (`id`,`type`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `boards`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `boards`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `boards` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) NOT NULL,
|
|
`name` varchar(255) NOT NULL DEFAULT '',
|
|
`description` varchar(255) DEFAULT NULL,
|
|
`position` int(11) DEFAULT NULL,
|
|
`topics_count` int(11) NOT NULL DEFAULT '0',
|
|
`messages_count` int(11) NOT NULL DEFAULT '0',
|
|
`last_message_id` int(11) DEFAULT NULL,
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `boards_project_id` (`project_id`),
|
|
KEY `index_boards_on_last_message_id` (`last_message_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `changes`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `changes`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `changes` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`changeset_id` int(11) NOT NULL,
|
|
`action` varchar(1) NOT NULL DEFAULT '',
|
|
`path` text NOT NULL,
|
|
`from_path` text,
|
|
`from_revision` varchar(255) DEFAULT NULL,
|
|
`revision` varchar(255) DEFAULT NULL,
|
|
`branch` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `changesets_changeset_id` (`changeset_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `changeset_parents`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `changeset_parents`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `changeset_parents` (
|
|
`changeset_id` int(11) NOT NULL,
|
|
`parent_id` int(11) NOT NULL,
|
|
KEY `changeset_parents_changeset_ids` (`changeset_id`),
|
|
KEY `changeset_parents_parent_ids` (`parent_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `changesets`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `changesets`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `changesets` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`repository_id` int(11) NOT NULL,
|
|
`revision` varchar(255) NOT NULL,
|
|
`committer` varchar(255) DEFAULT NULL,
|
|
`committed_on` datetime NOT NULL,
|
|
`comments` longtext,
|
|
`commit_date` date DEFAULT NULL,
|
|
`scmid` varchar(255) DEFAULT NULL,
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `changesets_repos_rev` (`repository_id`,`revision`),
|
|
KEY `index_changesets_on_user_id` (`user_id`),
|
|
KEY `index_changesets_on_repository_id` (`repository_id`),
|
|
KEY `index_changesets_on_committed_on` (`committed_on`),
|
|
KEY `changesets_repos_scmid` (`repository_id`,`scmid`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `changesets_issues`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `changesets_issues`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `changesets_issues` (
|
|
`changeset_id` int(11) NOT NULL,
|
|
`issue_id` int(11) NOT NULL,
|
|
UNIQUE KEY `changesets_issues_ids` (`changeset_id`,`issue_id`),
|
|
KEY `index_changesets_issues_on_issue_id` (`issue_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `comments`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `comments`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `comments` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`commented_type` varchar(30) NOT NULL DEFAULT '',
|
|
`commented_id` int(11) NOT NULL DEFAULT '0',
|
|
`author_id` int(11) NOT NULL DEFAULT '0',
|
|
`content` text,
|
|
`created_on` datetime NOT NULL,
|
|
`updated_on` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_comments_on_commented_id_and_commented_type` (`commented_id`,`commented_type`),
|
|
KEY `index_comments_on_author_id` (`author_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `custom_field_enumerations`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `custom_field_enumerations`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `custom_field_enumerations` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`custom_field_id` int(11) NOT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
`active` tinyint(1) NOT NULL DEFAULT '1',
|
|
`position` int(11) NOT NULL DEFAULT '1',
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `custom_fields`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `custom_fields`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `custom_fields` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`type` varchar(30) NOT NULL DEFAULT '',
|
|
`name` varchar(30) NOT NULL DEFAULT '',
|
|
`field_format` varchar(30) NOT NULL DEFAULT '',
|
|
`possible_values` text,
|
|
`regexp` varchar(255) DEFAULT '',
|
|
`min_length` int(11) DEFAULT NULL,
|
|
`max_length` int(11) DEFAULT NULL,
|
|
`is_required` tinyint(1) NOT NULL DEFAULT '0',
|
|
`is_for_all` tinyint(1) NOT NULL DEFAULT '0',
|
|
`is_filter` tinyint(1) NOT NULL DEFAULT '0',
|
|
`position` int(11) DEFAULT NULL,
|
|
`searchable` tinyint(1) DEFAULT '0',
|
|
`default_value` text,
|
|
`editable` tinyint(1) DEFAULT '1',
|
|
`visible` tinyint(1) NOT NULL DEFAULT '1',
|
|
`multiple` tinyint(1) DEFAULT '0',
|
|
`format_store` text,
|
|
`description` text,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_custom_fields_on_id_and_type` (`id`,`type`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `custom_fields_projects`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `custom_fields_projects`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `custom_fields_projects` (
|
|
`custom_field_id` int(11) NOT NULL DEFAULT '0',
|
|
`project_id` int(11) NOT NULL DEFAULT '0',
|
|
UNIQUE KEY `index_custom_fields_projects_on_custom_field_id_and_project_id` (`custom_field_id`,`project_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `custom_fields_roles`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `custom_fields_roles`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `custom_fields_roles` (
|
|
`custom_field_id` int(11) NOT NULL,
|
|
`role_id` int(11) NOT NULL,
|
|
UNIQUE KEY `custom_fields_roles_ids` (`custom_field_id`,`role_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `custom_fields_trackers`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `custom_fields_trackers`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `custom_fields_trackers` (
|
|
`custom_field_id` int(11) NOT NULL DEFAULT '0',
|
|
`tracker_id` int(11) NOT NULL DEFAULT '0',
|
|
UNIQUE KEY `index_custom_fields_trackers_on_custom_field_id_and_tracker_id` (`custom_field_id`,`tracker_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `custom_values`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `custom_values`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `custom_values` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`customized_type` varchar(30) NOT NULL DEFAULT '',
|
|
`customized_id` int(11) NOT NULL DEFAULT '0',
|
|
`custom_field_id` int(11) NOT NULL DEFAULT '0',
|
|
`value` longtext,
|
|
PRIMARY KEY (`id`),
|
|
KEY `custom_values_customized` (`customized_type`,`customized_id`),
|
|
KEY `index_custom_values_on_custom_field_id` (`custom_field_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=11184 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `documents`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `documents`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `documents` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) NOT NULL DEFAULT '0',
|
|
`category_id` int(11) NOT NULL DEFAULT '0',
|
|
`title` varchar(255) NOT NULL DEFAULT '',
|
|
`description` text,
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `documents_project_id` (`project_id`),
|
|
KEY `index_documents_on_category_id` (`category_id`),
|
|
KEY `index_documents_on_created_on` (`created_on`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `email_addresses`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `email_addresses`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `email_addresses` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL,
|
|
`address` varchar(255) NOT NULL,
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`notify` tinyint(1) NOT NULL DEFAULT '1',
|
|
`created_on` datetime NOT NULL,
|
|
`updated_on` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_email_addresses_on_user_id` (`user_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `enabled_modules`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `enabled_modules`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enabled_modules` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) DEFAULT NULL,
|
|
`name` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `enabled_modules_project_id` (`project_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `enumerations`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `enumerations`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `enumerations` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(30) NOT NULL DEFAULT '',
|
|
`position` int(11) DEFAULT NULL,
|
|
`is_default` tinyint(1) NOT NULL DEFAULT '0',
|
|
`type` varchar(255) DEFAULT NULL,
|
|
`active` tinyint(1) NOT NULL DEFAULT '1',
|
|
`project_id` int(11) DEFAULT NULL,
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
`position_name` varchar(30) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_enumerations_on_project_id` (`project_id`),
|
|
KEY `index_enumerations_on_id_and_type` (`id`,`type`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `groups_users`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `groups_users`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `groups_users` (
|
|
`group_id` int(11) NOT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
UNIQUE KEY `groups_users_ids` (`group_id`,`user_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `import_items`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `import_items`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `import_items` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`import_id` int(11) NOT NULL,
|
|
`position` int(11) NOT NULL,
|
|
`obj_id` int(11) DEFAULT NULL,
|
|
`message` text,
|
|
`unique_id` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_import_items_on_import_id_and_unique_id` (`import_id`,`unique_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `imports`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `imports`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `imports` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`type` varchar(255) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`filename` varchar(255) DEFAULT NULL,
|
|
`settings` text,
|
|
`total_items` int(11) DEFAULT NULL,
|
|
`finished` tinyint(1) NOT NULL DEFAULT '0',
|
|
`created_at` datetime NOT NULL,
|
|
`updated_at` datetime NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `issue_categories`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `issue_categories`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `issue_categories` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) NOT NULL DEFAULT '0',
|
|
`name` varchar(60) NOT NULL DEFAULT '',
|
|
`assigned_to_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `issue_categories_project_id` (`project_id`),
|
|
KEY `index_issue_categories_on_assigned_to_id` (`assigned_to_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `issue_relations`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `issue_relations`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `issue_relations` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`issue_from_id` int(11) NOT NULL,
|
|
`issue_to_id` int(11) NOT NULL,
|
|
`relation_type` varchar(255) NOT NULL DEFAULT '',
|
|
`delay` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `index_issue_relations_on_issue_from_id_and_issue_to_id` (`issue_from_id`,`issue_to_id`),
|
|
KEY `index_issue_relations_on_issue_from_id` (`issue_from_id`),
|
|
KEY `index_issue_relations_on_issue_to_id` (`issue_to_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `issue_statuses`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `issue_statuses`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `issue_statuses` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(30) NOT NULL DEFAULT '',
|
|
`is_closed` tinyint(1) NOT NULL DEFAULT '0',
|
|
`position` int(11) DEFAULT NULL,
|
|
`default_done_ratio` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_issue_statuses_on_position` (`position`),
|
|
KEY `index_issue_statuses_on_is_closed` (`is_closed`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `issues`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `issues`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `issues` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`tracker_id` int(11) NOT NULL,
|
|
`project_id` int(11) NOT NULL,
|
|
`subject` varchar(255) NOT NULL DEFAULT '',
|
|
`description` longtext,
|
|
`due_date` date DEFAULT NULL,
|
|
`category_id` int(11) DEFAULT NULL,
|
|
`status_id` int(11) NOT NULL,
|
|
`assigned_to_id` int(11) DEFAULT NULL,
|
|
`priority_id` int(11) NOT NULL,
|
|
`fixed_version_id` int(11) DEFAULT NULL,
|
|
`author_id` int(11) NOT NULL,
|
|
`lock_version` int(11) NOT NULL DEFAULT '0',
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
`updated_on` timestamp NULL DEFAULT NULL,
|
|
`start_date` date DEFAULT NULL,
|
|
`done_ratio` int(11) NOT NULL DEFAULT '0',
|
|
`estimated_hours` float DEFAULT NULL,
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
`root_id` int(11) DEFAULT NULL,
|
|
`lft` int(11) DEFAULT NULL,
|
|
`rgt` int(11) DEFAULT NULL,
|
|
`is_private` tinyint(1) NOT NULL DEFAULT '0',
|
|
`closed_on` datetime DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `issues_project_id` (`project_id`),
|
|
KEY `index_issues_on_status_id` (`status_id`),
|
|
KEY `index_issues_on_category_id` (`category_id`),
|
|
KEY `index_issues_on_assigned_to_id` (`assigned_to_id`),
|
|
KEY `index_issues_on_fixed_version_id` (`fixed_version_id`),
|
|
KEY `index_issues_on_tracker_id` (`tracker_id`),
|
|
KEY `index_issues_on_priority_id` (`priority_id`),
|
|
KEY `index_issues_on_author_id` (`author_id`),
|
|
KEY `index_issues_on_created_on` (`created_on`),
|
|
KEY `index_issues_on_root_id_and_lft_and_rgt` (`root_id`,`lft`,`rgt`),
|
|
KEY `index_issues_on_parent_id` (`parent_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=620 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `journal_details`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `journal_details`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `journal_details` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`journal_id` int(11) NOT NULL DEFAULT '0',
|
|
`property` varchar(30) NOT NULL DEFAULT '',
|
|
`prop_key` varchar(30) NOT NULL DEFAULT '',
|
|
`old_value` longtext,
|
|
`value` longtext,
|
|
PRIMARY KEY (`id`),
|
|
KEY `journal_details_journal_id` (`journal_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `journals`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `journals`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `journals` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`journalized_id` int(11) NOT NULL DEFAULT '0',
|
|
`journalized_type` varchar(30) NOT NULL DEFAULT '',
|
|
`user_id` int(11) NOT NULL DEFAULT '0',
|
|
`notes` longtext,
|
|
`created_on` datetime NOT NULL,
|
|
`private_notes` tinyint(1) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
KEY `journals_journalized_id` (`journalized_id`,`journalized_type`),
|
|
KEY `index_journals_on_user_id` (`user_id`),
|
|
KEY `index_journals_on_journalized_id` (`journalized_id`),
|
|
KEY `index_journals_on_created_on` (`created_on`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=624 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `member_roles`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `member_roles`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `member_roles` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`member_id` int(11) NOT NULL,
|
|
`role_id` int(11) NOT NULL,
|
|
`inherited_from` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_member_roles_on_member_id` (`member_id`),
|
|
KEY `index_member_roles_on_role_id` (`role_id`),
|
|
KEY `index_member_roles_on_inherited_from` (`inherited_from`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `members`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `members`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `members` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL DEFAULT '0',
|
|
`project_id` int(11) NOT NULL DEFAULT '0',
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
`mail_notification` tinyint(1) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `index_members_on_user_id_and_project_id` (`user_id`,`project_id`),
|
|
KEY `index_members_on_user_id` (`user_id`),
|
|
KEY `index_members_on_project_id` (`project_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `messages`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `messages`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `messages` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`board_id` int(11) NOT NULL,
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
`subject` varchar(255) NOT NULL DEFAULT '',
|
|
`content` text,
|
|
`author_id` int(11) DEFAULT NULL,
|
|
`replies_count` int(11) NOT NULL DEFAULT '0',
|
|
`last_reply_id` int(11) DEFAULT NULL,
|
|
`created_on` datetime NOT NULL,
|
|
`updated_on` datetime NOT NULL,
|
|
`locked` tinyint(1) DEFAULT '0',
|
|
`sticky` int(11) DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
KEY `messages_board_id` (`board_id`),
|
|
KEY `messages_parent_id` (`parent_id`),
|
|
KEY `index_messages_on_last_reply_id` (`last_reply_id`),
|
|
KEY `index_messages_on_author_id` (`author_id`),
|
|
KEY `index_messages_on_created_on` (`created_on`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `news`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `news`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `news` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) DEFAULT NULL,
|
|
`title` varchar(60) NOT NULL DEFAULT '',
|
|
`summary` varchar(255) DEFAULT '',
|
|
`description` text,
|
|
`author_id` int(11) NOT NULL DEFAULT '0',
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
`comments_count` int(11) NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`id`),
|
|
KEY `news_project_id` (`project_id`),
|
|
KEY `index_news_on_author_id` (`author_id`),
|
|
KEY `index_news_on_created_on` (`created_on`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `open_id_authentication_associations`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `open_id_authentication_associations`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `open_id_authentication_associations` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`issued` int(11) DEFAULT NULL,
|
|
`lifetime` int(11) DEFAULT NULL,
|
|
`handle` varchar(255) DEFAULT NULL,
|
|
`assoc_type` varchar(255) DEFAULT NULL,
|
|
`server_url` blob,
|
|
`secret` blob,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `open_id_authentication_nonces`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `open_id_authentication_nonces`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `open_id_authentication_nonces` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`timestamp` int(11) NOT NULL,
|
|
`server_url` varchar(255) DEFAULT NULL,
|
|
`salt` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `projects`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `projects`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `projects` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL DEFAULT '',
|
|
`description` text,
|
|
`homepage` varchar(255) DEFAULT '',
|
|
`is_public` tinyint(1) NOT NULL DEFAULT '1',
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
`updated_on` timestamp NULL DEFAULT NULL,
|
|
`identifier` varchar(255) DEFAULT NULL,
|
|
`status` int(11) NOT NULL DEFAULT '1',
|
|
`lft` int(11) DEFAULT NULL,
|
|
`rgt` int(11) DEFAULT NULL,
|
|
`inherit_members` tinyint(1) NOT NULL DEFAULT '0',
|
|
`default_version_id` int(11) DEFAULT NULL,
|
|
`default_assigned_to_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_projects_on_lft` (`lft`),
|
|
KEY `index_projects_on_rgt` (`rgt`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `projects_trackers`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `projects_trackers`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `projects_trackers` (
|
|
`project_id` int(11) NOT NULL DEFAULT '0',
|
|
`tracker_id` int(11) NOT NULL DEFAULT '0',
|
|
UNIQUE KEY `projects_trackers_unique` (`project_id`,`tracker_id`),
|
|
KEY `projects_trackers_project_id` (`project_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `queries`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `queries`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `queries` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) DEFAULT NULL,
|
|
`name` varchar(255) NOT NULL DEFAULT '',
|
|
`filters` text,
|
|
`user_id` int(11) NOT NULL DEFAULT '0',
|
|
`column_names` text,
|
|
`sort_criteria` text,
|
|
`group_by` varchar(255) DEFAULT NULL,
|
|
`type` varchar(255) DEFAULT NULL,
|
|
`visibility` int(11) DEFAULT '0',
|
|
`options` text,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_queries_on_project_id` (`project_id`),
|
|
KEY `index_queries_on_user_id` (`user_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `queries_roles`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `queries_roles`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `queries_roles` (
|
|
`query_id` int(11) NOT NULL,
|
|
`role_id` int(11) NOT NULL,
|
|
UNIQUE KEY `queries_roles_ids` (`query_id`,`role_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `repositories`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `repositories`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `repositories` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) NOT NULL DEFAULT '0',
|
|
`url` varchar(255) NOT NULL DEFAULT '',
|
|
`login` varchar(60) DEFAULT '',
|
|
`password` varchar(255) DEFAULT '',
|
|
`root_url` varchar(255) DEFAULT '',
|
|
`type` varchar(255) DEFAULT NULL,
|
|
`path_encoding` varchar(64) DEFAULT NULL,
|
|
`log_encoding` varchar(64) DEFAULT NULL,
|
|
`extra_info` longtext,
|
|
`identifier` varchar(255) DEFAULT NULL,
|
|
`is_default` tinyint(1) DEFAULT '0',
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_repositories_on_project_id` (`project_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `roles`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `roles`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `roles` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL DEFAULT '',
|
|
`position` int(11) DEFAULT NULL,
|
|
`assignable` tinyint(1) DEFAULT '1',
|
|
`builtin` int(11) NOT NULL DEFAULT '0',
|
|
`permissions` text,
|
|
`issues_visibility` varchar(30) NOT NULL DEFAULT 'default',
|
|
`users_visibility` varchar(30) NOT NULL DEFAULT 'all',
|
|
`time_entries_visibility` varchar(30) NOT NULL DEFAULT 'all',
|
|
`all_roles_managed` tinyint(1) NOT NULL DEFAULT '1',
|
|
`settings` text,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `roles_managed_roles`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `roles_managed_roles`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `roles_managed_roles` (
|
|
`role_id` int(11) NOT NULL,
|
|
`managed_role_id` int(11) NOT NULL,
|
|
UNIQUE KEY `index_roles_managed_roles_on_role_id_and_managed_role_id` (`role_id`,`managed_role_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `schema_migrations`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `schema_migrations`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `schema_migrations` (
|
|
`version` varchar(255) NOT NULL,
|
|
PRIMARY KEY (`version`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `settings`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `settings`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `settings` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(255) NOT NULL DEFAULT '',
|
|
`value` text,
|
|
`updated_on` timestamp NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_settings_on_name` (`name`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `time_entries`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `time_entries`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `time_entries` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) NOT NULL,
|
|
`author_id` int(11) DEFAULT NULL,
|
|
`user_id` int(11) NOT NULL,
|
|
`issue_id` int(11) DEFAULT NULL,
|
|
`hours` float NOT NULL,
|
|
`comments` varchar(1024) DEFAULT NULL,
|
|
`activity_id` int(11) NOT NULL,
|
|
`spent_on` date NOT NULL,
|
|
`tyear` int(11) NOT NULL,
|
|
`tmonth` int(11) NOT NULL,
|
|
`tweek` int(11) NOT NULL,
|
|
`created_on` datetime NOT NULL,
|
|
`updated_on` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `time_entries_project_id` (`project_id`),
|
|
KEY `time_entries_issue_id` (`issue_id`),
|
|
KEY `index_time_entries_on_activity_id` (`activity_id`),
|
|
KEY `index_time_entries_on_user_id` (`user_id`),
|
|
KEY `index_time_entries_on_created_on` (`created_on`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `tokens`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `tokens`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `tokens` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL DEFAULT '0',
|
|
`action` varchar(30) NOT NULL DEFAULT '',
|
|
`value` varchar(40) NOT NULL DEFAULT '',
|
|
`created_on` datetime NOT NULL,
|
|
`updated_on` timestamp NULL DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
UNIQUE KEY `tokens_value` (`value`),
|
|
KEY `index_tokens_on_user_id` (`user_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `trackers`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `trackers`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `trackers` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`name` varchar(30) NOT NULL DEFAULT '',
|
|
`description` varchar(255) DEFAULT NULL,
|
|
`is_in_chlog` tinyint(1) NOT NULL DEFAULT '0',
|
|
`position` int(11) DEFAULT NULL,
|
|
`is_in_roadmap` tinyint(1) NOT NULL DEFAULT '1',
|
|
`fields_bits` int(11) DEFAULT '0',
|
|
`default_status_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `user_preferences`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `user_preferences`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `user_preferences` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`user_id` int(11) NOT NULL DEFAULT '0',
|
|
`others` text,
|
|
`hide_mail` tinyint(1) DEFAULT '1',
|
|
`time_zone` varchar(255) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_user_preferences_on_user_id` (`user_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `users`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `users`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `users` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`login` varchar(255) NOT NULL DEFAULT '',
|
|
`hashed_password` varchar(40) NOT NULL DEFAULT '',
|
|
`firstname` varchar(30) NOT NULL DEFAULT '',
|
|
`lastname` varchar(255) NOT NULL DEFAULT '',
|
|
`admin` tinyint(1) NOT NULL DEFAULT '0',
|
|
`status` int(11) NOT NULL DEFAULT '1',
|
|
`last_login_on` datetime DEFAULT NULL,
|
|
`language` varchar(5) DEFAULT '',
|
|
`auth_source_id` int(11) DEFAULT NULL,
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
`updated_on` timestamp NULL DEFAULT NULL,
|
|
`type` varchar(255) DEFAULT NULL,
|
|
`identity_url` varchar(255) DEFAULT NULL,
|
|
`mail_notification` varchar(255) NOT NULL DEFAULT '',
|
|
`salt` varchar(64) DEFAULT NULL,
|
|
`must_change_passwd` tinyint(1) NOT NULL DEFAULT '0',
|
|
`passwd_changed_on` datetime DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `index_users_on_id_and_type` (`id`,`type`),
|
|
KEY `index_users_on_auth_source_id` (`auth_source_id`),
|
|
KEY `index_users_on_type` (`type`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `versions`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `versions`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `versions` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) NOT NULL DEFAULT '0',
|
|
`name` varchar(255) NOT NULL DEFAULT '',
|
|
`description` varchar(255) DEFAULT '',
|
|
`effective_date` date DEFAULT NULL,
|
|
`created_on` timestamp NULL DEFAULT NULL,
|
|
`updated_on` timestamp NULL DEFAULT NULL,
|
|
`wiki_page_title` varchar(255) DEFAULT NULL,
|
|
`status` varchar(255) DEFAULT 'open',
|
|
`sharing` varchar(255) NOT NULL DEFAULT 'none',
|
|
PRIMARY KEY (`id`),
|
|
KEY `versions_project_id` (`project_id`),
|
|
KEY `index_versions_on_sharing` (`sharing`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `watchers`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `watchers`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `watchers` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`watchable_type` varchar(255) NOT NULL DEFAULT '',
|
|
`watchable_id` int(11) NOT NULL DEFAULT '0',
|
|
`user_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `watchers_user_id_type` (`user_id`,`watchable_type`),
|
|
KEY `index_watchers_on_user_id` (`user_id`),
|
|
KEY `index_watchers_on_watchable_id_and_watchable_type` (`watchable_id`,`watchable_type`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `webhooks`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `webhooks`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `webhooks` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`url` varchar(255) DEFAULT NULL,
|
|
`project_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `wiki_content_versions`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `wiki_content_versions`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_content_versions` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`wiki_content_id` int(11) NOT NULL,
|
|
`page_id` int(11) NOT NULL,
|
|
`author_id` int(11) DEFAULT NULL,
|
|
`data` longblob,
|
|
`compression` varchar(6) DEFAULT '',
|
|
`comments` varchar(1024) DEFAULT '',
|
|
`updated_on` datetime NOT NULL,
|
|
`version` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_content_versions_wcid` (`wiki_content_id`),
|
|
KEY `index_wiki_content_versions_on_updated_on` (`updated_on`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `wiki_contents`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `wiki_contents`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_contents` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`page_id` int(11) NOT NULL,
|
|
`author_id` int(11) DEFAULT NULL,
|
|
`text` longtext,
|
|
`comments` varchar(1024) DEFAULT '',
|
|
`updated_on` datetime NOT NULL,
|
|
`version` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_contents_page_id` (`page_id`),
|
|
KEY `index_wiki_contents_on_author_id` (`author_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `wiki_pages`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `wiki_pages`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_pages` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`wiki_id` int(11) NOT NULL,
|
|
`title` varchar(255) NOT NULL,
|
|
`created_on` datetime NOT NULL,
|
|
`protected` tinyint(1) NOT NULL DEFAULT '0',
|
|
`parent_id` int(11) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_pages_wiki_id_title` (`wiki_id`,`title`),
|
|
KEY `index_wiki_pages_on_wiki_id` (`wiki_id`),
|
|
KEY `index_wiki_pages_on_parent_id` (`parent_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `wiki_redirects`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `wiki_redirects`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wiki_redirects` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`wiki_id` int(11) NOT NULL,
|
|
`title` varchar(255) DEFAULT NULL,
|
|
`redirects_to` varchar(255) DEFAULT NULL,
|
|
`created_on` datetime NOT NULL,
|
|
`redirects_to_wiki_id` int(11) NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wiki_redirects_wiki_id_title` (`wiki_id`,`title`),
|
|
KEY `index_wiki_redirects_on_wiki_id` (`wiki_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `wikis`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `wikis`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `wikis` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`project_id` int(11) NOT NULL,
|
|
`start_page` varchar(255) NOT NULL,
|
|
`status` int(11) NOT NULL DEFAULT '1',
|
|
PRIMARY KEY (`id`),
|
|
KEY `wikis_project_id` (`project_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Table structure for table `workflows`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `workflows`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `workflows` (
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
`tracker_id` int(11) NOT NULL DEFAULT '0',
|
|
`old_status_id` int(11) NOT NULL DEFAULT '0',
|
|
`new_status_id` int(11) NOT NULL DEFAULT '0',
|
|
`role_id` int(11) NOT NULL DEFAULT '0',
|
|
`assignee` tinyint(1) NOT NULL DEFAULT '0',
|
|
`author` tinyint(1) NOT NULL DEFAULT '0',
|
|
`type` varchar(30) DEFAULT NULL,
|
|
`field_name` varchar(30) DEFAULT NULL,
|
|
`rule` varchar(30) DEFAULT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `wkfs_role_tracker_old_status` (`role_id`,`tracker_id`,`old_status_id`),
|
|
KEY `index_workflows_on_old_status_id` (`old_status_id`),
|
|
KEY `index_workflows_on_role_id` (`role_id`),
|
|
KEY `index_workflows_on_new_status_id` (`new_status_id`),
|
|
KEY `index_workflows_on_tracker_id` (`tracker_id`)
|
|
) ENGINE=InnoDB AUTO_INCREMENT=247 DEFAULT CHARSET=latin1;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|
|
-- Dump completed on 2020-05-03 10:09:32
|