チケット
テーブル定義
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 DEFAULT NULL,
`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 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci| 名前 | タイプ | デフォルト値 | NULL許可 | Extra Definition | 子テーブル | 親テーブル | コメント |
|---|---|---|---|---|---|---|---|
| id | int(11) | false | auto_increment | issues issue_relations changesets_issues time_entries | |||
| tracker_id | int(11) | false | trackers | トラッカーID | |||
| project_id | int(11) | false | projects | プロジェクトID | |||
| subject | varchar(255) | '' | false | 題名 | |||
| description | longtext | NULL | true | 説明 | |||
| due_date | date | NULL | true | 期日 | |||
| category_id | int(11) | NULL | true | issue_categories | カテゴリーID | ||
| status_id | int(11) | false | issue_statuses | ステータスID | |||
| assigned_to_id | int(11) | NULL | true | users | 担当者ID | ||
| priority_id | int(11) | false | enumerations | 優先度ID | |||
| fixed_version_id | int(11) | NULL | true | 対象バージョンID | |||
| author_id | int(11) | false | users | 登録者ID | |||
| lock_version | int(11) | 0 | false | ロックバージョン | |||
| created_on | timestamp | NULL | true | ||||
| updated_on | timestamp | NULL | true | ||||
| start_date | date | NULL | true | 開始日 | |||
| done_ratio | int(11) | 0 | false | 進捗率 | |||
| estimated_hours | float | NULL | true | 予定工数 | |||
| parent_id | int(11) | NULL | true | issues | 親チケット | ||
| root_id | int(11) | NULL | true | issues | ルートID | ||
| lft | int(11) | NULL | true | 左ノードポインタ | |||
| rgt | int(11) | NULL | true | 右ノードポインタ | |||
| is_private | tinyint(1) | 0 | false | プライベート | |||
| closed_on | datetime | NULL | true | 完了日時 |
| 名前 | タイプ | 定義 |
|---|---|---|
| PRIMARY | PRIMARY KEY | PRIMARY KEY (id) |
| 名前 | 定義 |
|---|---|
| index_issues_on_assigned_to_id | KEY index_issues_on_assigned_to_id (assigned_to_id) USING BTREE |
| index_issues_on_author_id | KEY index_issues_on_author_id (author_id) USING BTREE |
| index_issues_on_category_id | KEY index_issues_on_category_id (category_id) USING BTREE |
| index_issues_on_created_on | KEY index_issues_on_created_on (created_on) USING BTREE |
| index_issues_on_fixed_version_id | KEY index_issues_on_fixed_version_id (fixed_version_id) USING BTREE |
| index_issues_on_parent_id | KEY index_issues_on_parent_id (parent_id) USING BTREE |
| index_issues_on_priority_id | KEY index_issues_on_priority_id (priority_id) USING BTREE |
| index_issues_on_root_id_and_lft_and_rgt | KEY index_issues_on_root_id_and_lft_and_rgt (root_id, lft, rgt) USING BTREE |
| index_issues_on_status_id | KEY index_issues_on_status_id (status_id) USING BTREE |
| index_issues_on_tracker_id | KEY index_issues_on_tracker_id (tracker_id) USING BTREE |
| issues_project_id | KEY issues_project_id (project_id) USING BTREE |
| PRIMARY | PRIMARY KEY (id) USING BTREE |
Generated by tbls