Projekt

Obecné

Profil

Stáhnout (44.9 KB) Statistiky
| Větev: | Tag: | Revize:
1
-- phpMyAdmin SQL Dump
2
-- version 5.0.4deb2
3
-- https://www.phpmyadmin.net/
4
--
5
-- Host: localhost
6
-- Generation Time: May 10, 2022 at 05:20 PM
7
-- Server version: 10.5.15-MariaDB-0+deb11u1
8
-- PHP Version: 7.4.28
9

    
10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11
START TRANSACTION;
12

    
13

    
14
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17
/*!40101 SET NAMES utf8mb4 */;
18

    
19
--
20
-- Database: `spade`
21
--
22
CREATE DATABASE IF NOT EXISTS `spade` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
23
USE `spade`;
24

    
25
-- --------------------------------------------------------
26

    
27
--
28
-- Table structure for table `activity`
29
--
30

    
31
CREATE TABLE `activity` (
32
  `id` bigint(20) NOT NULL,
33
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
34
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
35
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
36
  `endDate` date DEFAULT NULL,
37
  `startDate` date DEFAULT NULL,
38
  `superProjectId` bigint(20) DEFAULT NULL
39
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
40

    
41
-- --------------------------------------------------------
42

    
43
--
44
-- Table structure for table `artifact`
45
--
46

    
47
CREATE TABLE `artifact` (
48
  `artifactClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
49
  `mimeType` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
50
  `size` bigint(20) NOT NULL,
51
  `id` bigint(20) NOT NULL
52
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
53

    
54
-- --------------------------------------------------------
55

    
56
--
57
-- Table structure for table `branch`
58
--
59

    
60
CREATE TABLE `branch` (
61
  `id` bigint(20) NOT NULL,
62
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
63
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
64
  `isMain` bit(1) NOT NULL
65
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
66

    
67
-- --------------------------------------------------------
68

    
69
--
70
-- Table structure for table `category`
71
--
72

    
73
CREATE TABLE `category` (
74
  `id` bigint(20) NOT NULL,
75
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
76
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
77
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
78
  `projectInstanceId` bigint(20) DEFAULT NULL
79
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
80

    
81
-- --------------------------------------------------------
82

    
83
--
84
-- Table structure for table `commit`
85
--
86

    
87
CREATE TABLE `commit` (
88
  `identifier` varchar(7) COLLATE utf8_unicode_ci DEFAULT NULL,
89
  `isRelease` bit(1) NOT NULL,
90
  `id` bigint(20) NOT NULL
91
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
92

    
93
-- --------------------------------------------------------
94

    
95
--
96
-- Table structure for table `committed_configuration`
97
--
98

    
99
CREATE TABLE `committed_configuration` (
100
  `committed` datetime DEFAULT NULL,
101
  `id` bigint(20) NOT NULL
102
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
103

    
104
-- --------------------------------------------------------
105

    
106
--
107
-- Table structure for table `competency`
108
--
109

    
110
CREATE TABLE `competency` (
111
  `id` bigint(20) NOT NULL,
112
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
113
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
114
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL
115
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
116

    
117
-- --------------------------------------------------------
118

    
119
--
120
-- Table structure for table `configuration`
121
--
122

    
123
CREATE TABLE `configuration` (
124
  `id` bigint(20) NOT NULL,
125
  `projectId` bigint(20) DEFAULT NULL
126
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
127

    
128
-- --------------------------------------------------------
129

    
130
--
131
-- Table structure for table `configuration_branch`
132
--
133

    
134
CREATE TABLE `configuration_branch` (
135
  `configurationId` bigint(20) NOT NULL,
136
  `branchId` bigint(20) NOT NULL
137
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
138

    
139
-- --------------------------------------------------------
140

    
141
--
142
-- Table structure for table `configuration_change`
143
--
144

    
145
CREATE TABLE `configuration_change` (
146
  `configurationId` bigint(20) NOT NULL,
147
  `changeId` bigint(20) NOT NULL
148
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
149

    
150
-- --------------------------------------------------------
151

    
152
--
153
-- Table structure for table `configuration_person_relation`
154
--
155

    
156
CREATE TABLE `configuration_person_relation` (
157
  `id` bigint(20) NOT NULL,
158
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
159
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
160
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
161
  `personId` bigint(20) DEFAULT NULL,
162
  `configurationId` bigint(20) DEFAULT NULL
163
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
164

    
165
-- --------------------------------------------------------
166

    
167
--
168
-- Table structure for table `criterion`
169
--
170

    
171
CREATE TABLE `criterion` (
172
  `id` bigint(20) NOT NULL,
173
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
174
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
175
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL
176
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
177

    
178
-- --------------------------------------------------------
179

    
180
--
181
-- Table structure for table `field_change`
182
--
183

    
184
CREATE TABLE `field_change` (
185
  `id` bigint(20) NOT NULL,
186
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
187
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
188
  `newValue` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
189
  `oldValue` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
190
  `workItemChangeId` bigint(20) DEFAULT NULL
191
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
192

    
193
-- --------------------------------------------------------
194

    
195
--
196
-- Table structure for table `group_member`
197
--
198

    
199
CREATE TABLE `group_member` (
200
  `groupId` bigint(20) NOT NULL,
201
  `memberId` bigint(20) NOT NULL
202
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
203

    
204
-- --------------------------------------------------------
205

    
206
--
207
-- Table structure for table `identity`
208
--
209

    
210
CREATE TABLE `identity` (
211
  `id` bigint(20) NOT NULL,
212
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
213
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
214
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
215
  `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
216
  `personId` bigint(20) DEFAULT NULL
217
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
218

    
219
-- --------------------------------------------------------
220

    
221
--
222
-- Table structure for table `iteration`
223
--
224

    
225
CREATE TABLE `iteration` (
226
  `id` bigint(20) NOT NULL,
227
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
228
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
229
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
230
  `endDate` date DEFAULT NULL,
231
  `startDate` date DEFAULT NULL,
232
  `created` datetime DEFAULT NULL,
233
  `superProjectId` bigint(20) DEFAULT NULL,
234
  `configurationId` bigint(20) DEFAULT NULL
235
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
236

    
237
-- --------------------------------------------------------
238

    
239
--
240
-- Table structure for table `milestone`
241
--
242

    
243
CREATE TABLE `milestone` (
244
  `id` bigint(20) NOT NULL,
245
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
246
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
247
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL
248
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
249

    
250
-- --------------------------------------------------------
251

    
252
--
253
-- Table structure for table `milestone_criterion`
254
--
255

    
256
CREATE TABLE `milestone_criterion` (
257
  `milestoneId` bigint(20) NOT NULL,
258
  `criterionId` bigint(20) NOT NULL
259
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
260

    
261
-- --------------------------------------------------------
262

    
263
--
264
-- Table structure for table `people_group`
265
--
266

    
267
CREATE TABLE `people_group` (
268
  `id` bigint(20) NOT NULL,
269
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
270
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
271
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
272
  `projectInstanceId` bigint(20) DEFAULT NULL
273
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
274

    
275
-- --------------------------------------------------------
276

    
277
--
278
-- Table structure for table `person`
279
--
280

    
281
CREATE TABLE `person` (
282
  `id` bigint(20) NOT NULL,
283
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
284
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
285
  `projectId` bigint(20) DEFAULT NULL
286
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
287

    
288
-- --------------------------------------------------------
289

    
290
--
291
-- Table structure for table `person_competency`
292
--
293

    
294
CREATE TABLE `person_competency` (
295
  `personId` bigint(20) NOT NULL,
296
  `competencyId` bigint(20) NOT NULL
297
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
298

    
299
-- --------------------------------------------------------
300

    
301
--
302
-- Table structure for table `person_role`
303
--
304

    
305
CREATE TABLE `person_role` (
306
  `personId` bigint(20) NOT NULL,
307
  `roleId` bigint(20) NOT NULL
308
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
309

    
310
-- --------------------------------------------------------
311

    
312
--
313
-- Table structure for table `phase`
314
--
315

    
316
CREATE TABLE `phase` (
317
  `id` bigint(20) NOT NULL,
318
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
319
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
320
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
321
  `endDate` date DEFAULT NULL,
322
  `startDate` date DEFAULT NULL,
323
  `created` datetime DEFAULT NULL,
324
  `superProjectId` bigint(20) DEFAULT NULL,
325
  `configurationId` bigint(20) DEFAULT NULL,
326
  `milestoneId` bigint(20) DEFAULT NULL
327
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
328

    
329
-- --------------------------------------------------------
330

    
331
--
332
-- Table structure for table `priority`
333
--
334

    
335
CREATE TABLE `priority` (
336
  `id` bigint(20) NOT NULL,
337
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
338
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
339
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
340
  `classId` bigint(20) DEFAULT NULL,
341
  `projectInstanceId` bigint(20) DEFAULT NULL
342
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
343

    
344
-- --------------------------------------------------------
345

    
346
--
347
-- Table structure for table `priority_classification`
348
--
349

    
350
CREATE TABLE `priority_classification` (
351
  `id` bigint(20) NOT NULL,
352
  `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
353
  `superClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
354
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
355

    
356
--
357
-- Dumping data for table `priority_classification`
358
--
359

    
360
INSERT INTO `priority_classification` (`id`, `class`, `superClass`) VALUES
361
(1, 'UNASSIGNED', 'UNASSIGNED'),
362
(2, 'LOWEST', 'LOW'),
363
(3, 'LOW', 'LOW'),
364
(4, 'NORMAL', 'NORMAL'),
365
(5, 'HIGH', 'HIGH'),
366
(6, 'HIGHEST', 'HIGH');
367

    
368
-- --------------------------------------------------------
369

    
370
--
371
-- Table structure for table `program`
372
--
373

    
374
CREATE TABLE `program` (
375
  `programClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
376
  `id` bigint(20) NOT NULL
377
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
378

    
379
-- --------------------------------------------------------
380

    
381
--
382
-- Table structure for table `project`
383
--
384

    
385
CREATE TABLE `project` (
386
  `id` bigint(20) NOT NULL,
387
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
388
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
389
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
390
  `endDate` date DEFAULT NULL,
391
  `startDate` date DEFAULT NULL,
392
  `superProjectId` bigint(20) DEFAULT NULL
393
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
394

    
395
-- --------------------------------------------------------
396

    
397
--
398
-- Table structure for table `project_instance`
399
--
400

    
401
CREATE TABLE `project_instance` (
402
  `id` bigint(20) NOT NULL,
403
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
404
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
405
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
406
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
407
  `projectId` bigint(20) DEFAULT NULL,
408
  `toolInstanceId` bigint(20) DEFAULT NULL
409
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
410

    
411
-- --------------------------------------------------------
412

    
413
--
414
-- Table structure for table `relation`
415
--
416

    
417
CREATE TABLE `relation` (
418
  `id` bigint(20) NOT NULL,
419
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
420
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
421
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
422
  `classId` bigint(20) DEFAULT NULL,
423
  `projectInstanceId` bigint(20) DEFAULT NULL
424
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
425

    
426
-- --------------------------------------------------------
427

    
428
--
429
-- Table structure for table `relation_classification`
430
--
431

    
432
CREATE TABLE `relation_classification` (
433
  `id` bigint(20) NOT NULL,
434
  `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
435
  `superClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
436
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
437

    
438
--
439
-- Dumping data for table `relation_classification`
440
--
441

    
442
INSERT INTO `relation_classification` (`id`, `class`, `superClass`) VALUES
443
(1, 'UNASSIGNED', 'UNASSIGNED'),
444
(2, 'DUPLICATES', 'SIMILARITY'),
445
(3, 'DUPLICATEDBY', 'SIMILARITY'),
446
(4, 'BLOCKS', 'TEMPORAL'),
447
(5, 'BLOCKEDBY', 'TEMPORAL'),
448
(6, 'RELATESTO', 'GENERAL'),
449
(7, 'PRECEDES', 'TEMPORAL'),
450
(8, 'FOLLOWS', 'TEMPORAL'),
451
(9, 'COPIEDFROM', 'SIMILARITY'),
452
(10, 'COPIEDBY', 'SIMILARITY'),
453
(11, 'CHILDOF', 'HIERARCHICAL'),
454
(12, 'PARENTOF', 'HIERARCHICAL'),
455
(13, 'CAUSES', 'CAUSAL'),
456
(14, 'CAUSEDBY', 'CAUSAL'),
457
(15, 'RESOLVES', 'CAUSAL'),
458
(16, 'RESOLVEDBY', 'CAUSAL');
459

    
460
-- --------------------------------------------------------
461

    
462
--
463
-- Table structure for table `resolution`
464
--
465

    
466
CREATE TABLE `resolution` (
467
  `id` bigint(20) NOT NULL,
468
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
469
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
470
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
471
  `classId` bigint(20) DEFAULT NULL,
472
  `projectInstanceId` bigint(20) DEFAULT NULL
473
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
474

    
475
-- --------------------------------------------------------
476

    
477
--
478
-- Table structure for table `resolution_classification`
479
--
480

    
481
CREATE TABLE `resolution_classification` (
482
  `id` bigint(20) NOT NULL,
483
  `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
484
  `superClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
485
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
486

    
487
--
488
-- Dumping data for table `resolution_classification`
489
--
490

    
491
INSERT INTO `resolution_classification` (`id`, `class`, `superClass`) VALUES
492
(1, 'UNASSIGNED', 'UNASSIGNED'),
493
(2, 'DUPLICATE', 'FINISHED'),
494
(3, 'INVALID', 'FINISHED'),
495
(4, 'WONTFIX', 'FINISHED'),
496
(5, 'WORKSASDESIGNED', 'FINISHED'),
497
(6, 'FIXED', 'FINISHED'),
498
(7, 'FINISHED', 'FINISHED'),
499
(8, 'INCOMPLETE', 'UNFINISHED'),
500
(9, 'WORKSFORME', 'UNFINISHED'),
501
(10, 'UNFINISHED', 'UNFINISHED');
502

    
503
-- --------------------------------------------------------
504

    
505
--
506
-- Table structure for table `role`
507
--
508

    
509
CREATE TABLE `role` (
510
  `id` bigint(20) NOT NULL,
511
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
512
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
513
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
514
  `classId` bigint(20) DEFAULT NULL,
515
  `projectInstanceId` bigint(20) DEFAULT NULL
516
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
517

    
518
-- --------------------------------------------------------
519

    
520
--
521
-- Table structure for table `role_classification`
522
--
523

    
524
CREATE TABLE `role_classification` (
525
  `id` bigint(20) NOT NULL,
526
  `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
527
  `superClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
528
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
529

    
530
--
531
-- Dumping data for table `role_classification`
532
--
533

    
534
INSERT INTO `role_classification` (`id`, `class`, `superClass`) VALUES
535
(1, 'UNASSIGNED', 'UNASSIGNED'),
536
(2, 'NONMEMBER', 'NONMEMBER'),
537
(3, 'MENTOR', 'STAKEHOLDER'),
538
(4, 'STAKEHOLDER', 'STAKEHOLDER'),
539
(5, 'PROJECTMANAGER', 'MANAGEMENT'),
540
(6, 'TEAMMEMBER', 'TEAMMEMBER'),
541
(7, 'ANALYST', 'TEAMMEMBER'),
542
(8, 'DESIGNER', 'TEAMMEMBER'),
543
(9, 'DEVELOPER', 'TEAMMEMBER'),
544
(10, 'TESTER', 'TEAMMEMBER'),
545
(11, 'DOCUMENTER', 'TEAMMEMBER');
546

    
547
-- --------------------------------------------------------
548

    
549
--
550
-- Table structure for table `severity`
551
--
552

    
553
CREATE TABLE `severity` (
554
  `id` bigint(20) NOT NULL,
555
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
556
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
557
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
558
  `classId` bigint(20) DEFAULT NULL,
559
  `projectInstanceId` bigint(20) DEFAULT NULL
560
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
561

    
562
-- --------------------------------------------------------
563

    
564
--
565
-- Table structure for table `severity_classification`
566
--
567

    
568
CREATE TABLE `severity_classification` (
569
  `id` bigint(20) NOT NULL,
570
  `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
571
  `superClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
572
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
573

    
574
--
575
-- Dumping data for table `severity_classification`
576
--
577

    
578
INSERT INTO `severity_classification` (`id`, `class`, `superClass`) VALUES
579
(1, 'UNASSIGNED', 'UNASSIGNED'),
580
(2, 'TRIVIAL', 'MINOR'),
581
(3, 'MINOR', 'MINOR'),
582
(4, 'NORMAL', 'NORMAL'),
583
(5, 'MAJOR', 'MAJOR'),
584
(6, 'CRITICAL', 'MAJOR');
585

    
586
-- --------------------------------------------------------
587

    
588
--
589
-- Table structure for table `status`
590
--
591

    
592
CREATE TABLE `status` (
593
  `id` bigint(20) NOT NULL,
594
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
595
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
596
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
597
  `classId` bigint(20) DEFAULT NULL,
598
  `projectInstanceId` bigint(20) DEFAULT NULL
599
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
600

    
601
-- --------------------------------------------------------
602

    
603
--
604
-- Table structure for table `status_classification`
605
--
606

    
607
CREATE TABLE `status_classification` (
608
  `id` bigint(20) NOT NULL,
609
  `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
610
  `superClass` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
611
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
612

    
613
--
614
-- Dumping data for table `status_classification`
615
--
616

    
617
INSERT INTO `status_classification` (`id`, `class`, `superClass`) VALUES
618
(1, 'UNASSIGNED', 'UNASSIGNED'),
619
(2, 'NEW', 'OPEN'),
620
(3, 'OPEN', 'OPEN'),
621
(4, 'ACCEPTED', 'OPEN'),
622
(5, 'INPROGRESS', 'OPEN'),
623
(6, 'RESOLVED', 'OPEN'),
624
(7, 'VERIFIED', 'OPEN'),
625
(8, 'DONE', 'CLOSED'),
626
(9, 'CLOSED', 'CLOSED'),
627
(10, 'INVALID', 'CLOSED'),
628
(11, 'DELETED', 'CLOSED');
629

    
630
-- --------------------------------------------------------
631

    
632
--
633
-- Table structure for table `tag`
634
--
635

    
636
CREATE TABLE `tag` (
637
  `id` bigint(20) NOT NULL,
638
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
639
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
640
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
641
  `configurationId` bigint(20) DEFAULT NULL
642
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
643

    
644
-- --------------------------------------------------------
645

    
646
--
647
-- Table structure for table `tool_instance`
648
--
649

    
650
CREATE TABLE `tool_instance` (
651
  `id` bigint(20) NOT NULL,
652
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
653
  `tool` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
654
  `version` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
655
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
656

    
657
-- --------------------------------------------------------
658

    
659
--
660
-- Table structure for table `work_item`
661
--
662

    
663
CREATE TABLE `work_item` (
664
  `workItemType` varchar(31) COLLATE utf8_unicode_ci NOT NULL,
665
  `id` bigint(20) NOT NULL,
666
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
667
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
668
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
669
  `created` datetime DEFAULT NULL,
670
  `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
671
  `authorId` bigint(20) DEFAULT NULL
672
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
673

    
674
-- --------------------------------------------------------
675

    
676
--
677
-- Table structure for table `work_item_change`
678
--
679

    
680
CREATE TABLE `work_item_change` (
681
  `id` bigint(20) NOT NULL,
682
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
683
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
684
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
685
  `workItemId` bigint(20) DEFAULT NULL
686
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
687

    
688
-- --------------------------------------------------------
689

    
690
--
691
-- Table structure for table `work_item_relation`
692
--
693

    
694
CREATE TABLE `work_item_relation` (
695
  `id` bigint(20) NOT NULL,
696
  `rightItemId` bigint(20) DEFAULT NULL,
697
  `relationId` bigint(20) DEFAULT NULL,
698
  `leftItemId` bigint(20) DEFAULT NULL
699
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
700

    
701
-- --------------------------------------------------------
702

    
703
--
704
-- Table structure for table `work_unit`
705
--
706

    
707
CREATE TABLE `work_unit` (
708
  `dueDate` date DEFAULT NULL,
709
  `estimatedTime` double NOT NULL,
710
  `number` int(11) NOT NULL,
711
  `progress` int(11) NOT NULL,
712
  `spentTime` double NOT NULL,
713
  `startDate` date DEFAULT NULL,
714
  `id` bigint(20) NOT NULL,
715
  `activityId` bigint(20) DEFAULT NULL,
716
  `assigneeId` bigint(20) DEFAULT NULL,
717
  `iterationId` bigint(20) DEFAULT NULL,
718
  `phaseId` bigint(20) DEFAULT NULL,
719
  `priorityId` bigint(20) DEFAULT NULL,
720
  `resolutionId` bigint(20) DEFAULT NULL,
721
  `severityId` bigint(20) DEFAULT NULL,
722
  `statusId` bigint(20) DEFAULT NULL,
723
  `wuTypeId` bigint(20) DEFAULT NULL,
724
  `projectId` bigint(20) DEFAULT NULL
725
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
726

    
727
-- --------------------------------------------------------
728

    
729
--
730
-- Table structure for table `work_unit_category`
731
--
732

    
733
CREATE TABLE `work_unit_category` (
734
  `workUnitId` bigint(20) NOT NULL,
735
  `categoryId` bigint(20) NOT NULL
736
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
737

    
738
-- --------------------------------------------------------
739

    
740
--
741
-- Table structure for table `wu_type`
742
--
743

    
744
CREATE TABLE `wu_type` (
745
  `id` bigint(20) NOT NULL,
746
  `externalId` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
747
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
748
  `description` longtext COLLATE utf8_unicode_ci DEFAULT NULL,
749
  `classId` bigint(20) DEFAULT NULL,
750
  `projectInstanceId` bigint(20) DEFAULT NULL
751
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
752

    
753
-- --------------------------------------------------------
754

    
755
--
756
-- Table structure for table `wu_type_classification`
757
--
758

    
759
CREATE TABLE `wu_type_classification` (
760
  `id` bigint(20) NOT NULL,
761
  `class` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
762
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
763

    
764
--
765
-- Dumping data for table `wu_type_classification`
766
--
767

    
768
INSERT INTO `wu_type_classification` (`id`, `class`) VALUES
769
(1, 'UNASSIGNED'),
770
(2, 'BUG'),
771
(3, 'ENHANCEMENT'),
772
(4, 'FEATURE'),
773
(5, 'TASK');
774

    
775
--
776
-- Indexes for dumped tables
777
--
778

    
779
--
780
-- Indexes for table `activity`
781
--
782
ALTER TABLE `activity`
783
  ADD PRIMARY KEY (`id`),
784
  ADD KEY `FK_blqrry9wsm0foxy0mg00a0epk` (`superProjectId`);
785

    
786
--
787
-- Indexes for table `artifact`
788
--
789
ALTER TABLE `artifact`
790
  ADD PRIMARY KEY (`id`);
791

    
792
--
793
-- Indexes for table `branch`
794
--
795
ALTER TABLE `branch`
796
  ADD PRIMARY KEY (`id`);
797

    
798
--
799
-- Indexes for table `category`
800
--
801
ALTER TABLE `category`
802
  ADD PRIMARY KEY (`id`),
803
  ADD KEY `FK_cpikjj79a9qmnxmo5unps4hsw` (`projectInstanceId`);
804

    
805
--
806
-- Indexes for table `commit`
807
--
808
ALTER TABLE `commit`
809
  ADD PRIMARY KEY (`id`);
810

    
811
--
812
-- Indexes for table `committed_configuration`
813
--
814
ALTER TABLE `committed_configuration`
815
  ADD PRIMARY KEY (`id`);
816

    
817
--
818
-- Indexes for table `competency`
819
--
820
ALTER TABLE `competency`
821
  ADD PRIMARY KEY (`id`);
822

    
823
--
824
-- Indexes for table `configuration`
825
--
826
ALTER TABLE `configuration`
827
  ADD PRIMARY KEY (`id`),
828
  ADD KEY `FK_o7bmirglj65sjrcym8a1ywgwc` (`projectId`);
829

    
830
--
831
-- Indexes for table `configuration_branch`
832
--
833
ALTER TABLE `configuration_branch`
834
  ADD KEY `FK_kq1ppnqu72in7ciaiv0qfm7gq` (`branchId`),
835
  ADD KEY `FK_bvbx76vbqrs4wkix8a4l64mgk` (`configurationId`);
836

    
837
--
838
-- Indexes for table `configuration_change`
839
--
840
ALTER TABLE `configuration_change`
841
  ADD UNIQUE KEY `UK_2vr3gl6l9t320r67yfspg8e16` (`changeId`),
842
  ADD KEY `FK_b11yrb5xl6ea5lceca8r6eyaq` (`configurationId`);
843

    
844
--
845
-- Indexes for table `configuration_person_relation`
846
--
847
ALTER TABLE `configuration_person_relation`
848
  ADD PRIMARY KEY (`id`),
849
  ADD KEY `FK_bannhsxpvu262ewrp6aval67i` (`personId`),
850
  ADD KEY `FK_miwxanxtv7gt3knvsflwncix7` (`configurationId`);
851

    
852
--
853
-- Indexes for table `criterion`
854
--
855
ALTER TABLE `criterion`
856
  ADD PRIMARY KEY (`id`);
857

    
858
--
859
-- Indexes for table `field_change`
860
--
861
ALTER TABLE `field_change`
862
  ADD PRIMARY KEY (`id`),
863
  ADD KEY `FK_mpcn64kubumdcj69467wdexg6` (`workItemChangeId`);
864

    
865
--
866
-- Indexes for table `group_member`
867
--
868
ALTER TABLE `group_member`
869
  ADD KEY `FK_67y4ufvw9p8w6mt4cp7bwa972` (`memberId`),
870
  ADD KEY `FK_g639kt1nekbaykgg0pwy8ips8` (`groupId`);
871

    
872
--
873
-- Indexes for table `identity`
874
--
875
ALTER TABLE `identity`
876
  ADD PRIMARY KEY (`id`),
877
  ADD KEY `FK_ocuj7jp17fw0qcow4o3f8e8o0` (`personId`);
878

    
879
--
880
-- Indexes for table `iteration`
881
--
882
ALTER TABLE `iteration`
883
  ADD PRIMARY KEY (`id`),
884
  ADD KEY `FK_55okl4mwia1vo7n8q6dsbfr55` (`superProjectId`),
885
  ADD KEY `FK_bid9cxxcrg3oufp2wc33j1h1e` (`configurationId`);
886

    
887
--
888
-- Indexes for table `milestone`
889
--
890
ALTER TABLE `milestone`
891
  ADD PRIMARY KEY (`id`);
892

    
893
--
894
-- Indexes for table `milestone_criterion`
895
--
896
ALTER TABLE `milestone_criterion`
897
  ADD KEY `FK_j65caq74d17bhsly89kylc3jk` (`criterionId`),
898
  ADD KEY `FK_hahtmhvat46jgvqn41s98dxdl` (`milestoneId`);
899

    
900
--
901
-- Indexes for table `people_group`
902
--
903
ALTER TABLE `people_group`
904
  ADD PRIMARY KEY (`id`),
905
  ADD KEY `FK_pif918vt32wbakh9vwaye6ib4` (`projectInstanceId`);
906

    
907
--
908
-- Indexes for table `person`
909
--
910
ALTER TABLE `person`
911
  ADD PRIMARY KEY (`id`),
912
  ADD KEY `FK_nh5ixvgwp0pxk9k1aafmgaltj` (`projectId`);
913

    
914
--
915
-- Indexes for table `person_competency`
916
--
917
ALTER TABLE `person_competency`
918
  ADD KEY `FK_a8kjcx0bj27oxbni693verap4` (`competencyId`),
919
  ADD KEY `FK_a8x0e7bl7yfoab8d2asvki1c4` (`personId`);
920

    
921
--
922
-- Indexes for table `person_role`
923
--
924
ALTER TABLE `person_role`
925
  ADD KEY `FK_a7r3tdncdaslk1knqt5hue1hq` (`roleId`),
926
  ADD KEY `FK_cdyyqtr37aeahm3pe162pdgst` (`personId`);
927

    
928
--
929
-- Indexes for table `phase`
930
--
931
ALTER TABLE `phase`
932
  ADD PRIMARY KEY (`id`),
933
  ADD KEY `FK_ip37oqdl21wk9oqbgm8ii2eop` (`superProjectId`),
934
  ADD KEY `FK_bo7xp1rl1h46kxd0xvk9d9cif` (`configurationId`),
935
  ADD KEY `FK_be0977ugg5npl8dxd87mcn7n5` (`milestoneId`);
936

    
937
--
938
-- Indexes for table `priority`
939
--
940
ALTER TABLE `priority`
941
  ADD PRIMARY KEY (`id`),
942
  ADD KEY `FK_qpy5gsqj4wu6lavuh3biip56v` (`classId`),
943
  ADD KEY `FK_6w6jf1op7pi7pb2xojyg6jakq` (`projectInstanceId`);
944

    
945
--
946
-- Indexes for table `priority_classification`
947
--
948
ALTER TABLE `priority_classification`
949
  ADD PRIMARY KEY (`id`);
950

    
951
--
952
-- Indexes for table `program`
953
--
954
ALTER TABLE `program`
955
  ADD PRIMARY KEY (`id`);
956

    
957
--
958
-- Indexes for table `project`
959
--
960
ALTER TABLE `project`
961
  ADD PRIMARY KEY (`id`),
962
  ADD KEY `FK_s45m7qvl6bbm8be5olfwc9n0r` (`superProjectId`);
963

    
964
--
965
-- Indexes for table `project_instance`
966
--
967
ALTER TABLE `project_instance`
968
  ADD PRIMARY KEY (`id`),
969
  ADD KEY `FK_d16nrgrtg46ln2r8qfc4kqaye` (`projectId`),
970
  ADD KEY `FK_l9bmcaixavuekut7gfi5up1dc` (`toolInstanceId`);
971

    
972
--
973
-- Indexes for table `relation`
974
--
975
ALTER TABLE `relation`
976
  ADD PRIMARY KEY (`id`),
977
  ADD KEY `FK_ggp4ppf3qtr9gtpo1je8p8who` (`classId`),
978
  ADD KEY `FK_lqcwy0o733b26w312lmp0nliw` (`projectInstanceId`);
979

    
980
--
981
-- Indexes for table `relation_classification`
982
--
983
ALTER TABLE `relation_classification`
984
  ADD PRIMARY KEY (`id`);
985

    
986
--
987
-- Indexes for table `resolution`
988
--
989
ALTER TABLE `resolution`
990
  ADD PRIMARY KEY (`id`),
991
  ADD KEY `FK_au7be5w5c1wmlvr1sy0s0bro7` (`classId`),
992
  ADD KEY `FK_74tplny25hv0k9wsji0mb0u94` (`projectInstanceId`);
993

    
994
--
995
-- Indexes for table `resolution_classification`
996
--
997
ALTER TABLE `resolution_classification`
998
  ADD PRIMARY KEY (`id`);
999

    
1000
--
1001
-- Indexes for table `role`
1002
--
1003
ALTER TABLE `role`
1004
  ADD PRIMARY KEY (`id`),
1005
  ADD KEY `FK_g50l5oh7otkun3cwrkx32o1el` (`classId`),
1006
  ADD KEY `FK_nbulk1gvi6k2hi1s21dcbn973` (`projectInstanceId`);
1007

    
1008
--
1009
-- Indexes for table `role_classification`
1010
--
1011
ALTER TABLE `role_classification`
1012
  ADD PRIMARY KEY (`id`);
1013

    
1014
--
1015
-- Indexes for table `severity`
1016
--
1017
ALTER TABLE `severity`
1018
  ADD PRIMARY KEY (`id`),
1019
  ADD KEY `FK_ee5mdcxuy7b3jl1tg4hstv7av` (`classId`),
1020
  ADD KEY `FK_9155uwikqouv9vahj5y02jgq0` (`projectInstanceId`);
1021

    
1022
--
1023
-- Indexes for table `severity_classification`
1024
--
1025
ALTER TABLE `severity_classification`
1026
  ADD PRIMARY KEY (`id`);
1027

    
1028
--
1029
-- Indexes for table `status`
1030
--
1031
ALTER TABLE `status`
1032
  ADD PRIMARY KEY (`id`),
1033
  ADD KEY `FK_4ipxdl1fixo7gorjnjf1vtebu` (`classId`),
1034
  ADD KEY `FK_m16n7o8v21c1x7l9bimxfcaiu` (`projectInstanceId`);
1035

    
1036
--
1037
-- Indexes for table `status_classification`
1038
--
1039
ALTER TABLE `status_classification`
1040
  ADD PRIMARY KEY (`id`);
1041

    
1042
--
1043
-- Indexes for table `tag`
1044
--
1045
ALTER TABLE `tag`
1046
  ADD PRIMARY KEY (`id`),
1047
  ADD KEY `FK_m07et5iue1u1mebbdvxi40430` (`configurationId`);
1048

    
1049
--
1050
-- Indexes for table `tool_instance`
1051
--
1052
ALTER TABLE `tool_instance`
1053
  ADD PRIMARY KEY (`id`);
1054

    
1055
--
1056
-- Indexes for table `work_item`
1057
--
1058
ALTER TABLE `work_item`
1059
  ADD PRIMARY KEY (`id`),
1060
  ADD KEY `FK_grormlstxeqy8q0kuiul86oti` (`authorId`);
1061

    
1062
--
1063
-- Indexes for table `work_item_change`
1064
--
1065
ALTER TABLE `work_item_change`
1066
  ADD PRIMARY KEY (`id`),
1067
  ADD KEY `FK_eqs2goyddmd6gps1ua15jn4y7` (`workItemId`);
1068

    
1069
--
1070
-- Indexes for table `work_item_relation`
1071
--
1072
ALTER TABLE `work_item_relation`
1073
  ADD PRIMARY KEY (`id`),
1074
  ADD KEY `FK_3ggc732qs69geici6kmfq8tir` (`rightItemId`),
1075
  ADD KEY `FK_65qc19uvlwf5kk99nrqn4g4x4` (`relationId`),
1076
  ADD KEY `FK_7o6onl1fkxry7lunkllomq6py` (`leftItemId`);
1077

    
1078
--
1079
-- Indexes for table `work_unit`
1080
--
1081
ALTER TABLE `work_unit`
1082
  ADD PRIMARY KEY (`id`),
1083
  ADD KEY `FK_hapc5vkbtxaottwycluaohfhk` (`activityId`),
1084
  ADD KEY `FK_bg8wdau2p07tbijinx445xyxc` (`assigneeId`),
1085
  ADD KEY `FK_dw94wosdhq0lf0j1eebs7c096` (`iterationId`),
1086
  ADD KEY `FK_kpa354soynck8d9v16bx29wqr` (`phaseId`),
1087
  ADD KEY `FK_gub58igbd2kmb4swfs16ed7te` (`priorityId`),
1088
  ADD KEY `FK_8pjjfib3dfnt6wdkqvs6w2ohk` (`resolutionId`),
1089
  ADD KEY `FK_hdtowjwpdbi5iq0iqkurnsicv` (`severityId`),
1090
  ADD KEY `FK_332c0iln6b790nmcowr7li152` (`statusId`),
1091
  ADD KEY `FK_l7yf2722dfp6wu8mcvl7lu024` (`wuTypeId`),
1092
  ADD KEY `FK_aui0kjlc2ileby8e4toik9pq4` (`projectId`);
1093

    
1094
--
1095
-- Indexes for table `work_unit_category`
1096
--
1097
ALTER TABLE `work_unit_category`
1098
  ADD KEY `FK_gikg1399mwbk4aqit3bl7t7mc` (`categoryId`),
1099
  ADD KEY `FK_9esb50fgqu304q0paecd3j0p1` (`workUnitId`);
1100

    
1101
--
1102
-- Indexes for table `wu_type`
1103
--
1104
ALTER TABLE `wu_type`
1105
  ADD PRIMARY KEY (`id`),
1106
  ADD KEY `FK_kltfeqj1it4r8vgucs9uwg578` (`classId`),
1107
  ADD KEY `FK_kdcm0gbg2748gs96dj6tadc6w` (`projectInstanceId`);
1108

    
1109
--
1110
-- Indexes for table `wu_type_classification`
1111
--
1112
ALTER TABLE `wu_type_classification`
1113
  ADD PRIMARY KEY (`id`);
1114

    
1115
--
1116
-- AUTO_INCREMENT for dumped tables
1117
--
1118

    
1119
--
1120
-- AUTO_INCREMENT for table `activity`
1121
--
1122
ALTER TABLE `activity`
1123
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1124

    
1125
--
1126
-- AUTO_INCREMENT for table `branch`
1127
--
1128
ALTER TABLE `branch`
1129
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1130

    
1131
--
1132
-- AUTO_INCREMENT for table `category`
1133
--
1134
ALTER TABLE `category`
1135
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1136

    
1137
--
1138
-- AUTO_INCREMENT for table `competency`
1139
--
1140
ALTER TABLE `competency`
1141
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1142

    
1143
--
1144
-- AUTO_INCREMENT for table `configuration_person_relation`
1145
--
1146
ALTER TABLE `configuration_person_relation`
1147
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1148

    
1149
--
1150
-- AUTO_INCREMENT for table `criterion`
1151
--
1152
ALTER TABLE `criterion`
1153
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1154

    
1155
--
1156
-- AUTO_INCREMENT for table `field_change`
1157
--
1158
ALTER TABLE `field_change`
1159
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1160

    
1161
--
1162
-- AUTO_INCREMENT for table `identity`
1163
--
1164
ALTER TABLE `identity`
1165
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1166

    
1167
--
1168
-- AUTO_INCREMENT for table `iteration`
1169
--
1170
ALTER TABLE `iteration`
1171
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1172

    
1173
--
1174
-- AUTO_INCREMENT for table `milestone`
1175
--
1176
ALTER TABLE `milestone`
1177
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1178

    
1179
--
1180
-- AUTO_INCREMENT for table `people_group`
1181
--
1182
ALTER TABLE `people_group`
1183
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1184

    
1185
--
1186
-- AUTO_INCREMENT for table `person`
1187
--
1188
ALTER TABLE `person`
1189
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1190

    
1191
--
1192
-- AUTO_INCREMENT for table `phase`
1193
--
1194
ALTER TABLE `phase`
1195
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1196

    
1197
--
1198
-- AUTO_INCREMENT for table `priority`
1199
--
1200
ALTER TABLE `priority`
1201
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1202

    
1203
--
1204
-- AUTO_INCREMENT for table `priority_classification`
1205
--
1206
ALTER TABLE `priority_classification`
1207
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
1208

    
1209
--
1210
-- AUTO_INCREMENT for table `project`
1211
--
1212
ALTER TABLE `project`
1213
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1214

    
1215
--
1216
-- AUTO_INCREMENT for table `project_instance`
1217
--
1218
ALTER TABLE `project_instance`
1219
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1220

    
1221
--
1222
-- AUTO_INCREMENT for table `relation`
1223
--
1224
ALTER TABLE `relation`
1225
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1226

    
1227
--
1228
-- AUTO_INCREMENT for table `relation_classification`
1229
--
1230
ALTER TABLE `relation_classification`
1231
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
1232

    
1233
--
1234
-- AUTO_INCREMENT for table `resolution`
1235
--
1236
ALTER TABLE `resolution`
1237
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1238

    
1239
--
1240
-- AUTO_INCREMENT for table `resolution_classification`
1241
--
1242
ALTER TABLE `resolution_classification`
1243
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
1244

    
1245
--
1246
-- AUTO_INCREMENT for table `role`
1247
--
1248
ALTER TABLE `role`
1249
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1250

    
1251
--
1252
-- AUTO_INCREMENT for table `role_classification`
1253
--
1254
ALTER TABLE `role_classification`
1255
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
1256

    
1257
--
1258
-- AUTO_INCREMENT for table `severity`
1259
--
1260
ALTER TABLE `severity`
1261
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1262

    
1263
--
1264
-- AUTO_INCREMENT for table `severity_classification`
1265
--
1266
ALTER TABLE `severity_classification`
1267
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
1268

    
1269
--
1270
-- AUTO_INCREMENT for table `status`
1271
--
1272
ALTER TABLE `status`
1273
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1274

    
1275
--
1276
-- AUTO_INCREMENT for table `status_classification`
1277
--
1278
ALTER TABLE `status_classification`
1279
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
1280

    
1281
--
1282
-- AUTO_INCREMENT for table `tag`
1283
--
1284
ALTER TABLE `tag`
1285
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1286

    
1287
--
1288
-- AUTO_INCREMENT for table `tool_instance`
1289
--
1290
ALTER TABLE `tool_instance`
1291
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1292

    
1293
--
1294
-- AUTO_INCREMENT for table `work_item`
1295
--
1296
ALTER TABLE `work_item`
1297
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1298

    
1299
--
1300
-- AUTO_INCREMENT for table `work_item_change`
1301
--
1302
ALTER TABLE `work_item_change`
1303
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1304

    
1305
--
1306
-- AUTO_INCREMENT for table `work_item_relation`
1307
--
1308
ALTER TABLE `work_item_relation`
1309
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1310

    
1311
--
1312
-- AUTO_INCREMENT for table `wu_type`
1313
--
1314
ALTER TABLE `wu_type`
1315
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT;
1316

    
1317
--
1318
-- AUTO_INCREMENT for table `wu_type_classification`
1319
--
1320
ALTER TABLE `wu_type_classification`
1321
  MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
1322

    
1323
--
1324
-- Constraints for dumped tables
1325
--
1326

    
1327
--
1328
-- Constraints for table `activity`
1329
--
1330
ALTER TABLE `activity`
1331
  ADD CONSTRAINT `FK_blqrry9wsm0foxy0mg00a0epk` FOREIGN KEY (`superProjectId`) REFERENCES `project` (`id`);
1332

    
1333
--
1334
-- Constraints for table `artifact`
1335
--
1336
ALTER TABLE `artifact`
1337
  ADD CONSTRAINT `FK_rw4j86aih7ao55ljy9bhaexgj` FOREIGN KEY (`id`) REFERENCES `work_item` (`id`);
1338

    
1339
--
1340
-- Constraints for table `category`
1341
--
1342
ALTER TABLE `category`
1343
  ADD CONSTRAINT `FK_cpikjj79a9qmnxmo5unps4hsw` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`);
1344

    
1345
--
1346
-- Constraints for table `commit`
1347
--
1348
ALTER TABLE `commit`
1349
  ADD CONSTRAINT `FK_nf03tfesxrvrfrkhqhykkjaxo` FOREIGN KEY (`id`) REFERENCES `committed_configuration` (`id`);
1350

    
1351
--
1352
-- Constraints for table `committed_configuration`
1353
--
1354
ALTER TABLE `committed_configuration`
1355
  ADD CONSTRAINT `FK_sfu3uuxhnjmgbca2pwkwv9iyh` FOREIGN KEY (`id`) REFERENCES `configuration` (`id`);
1356

    
1357
--
1358
-- Constraints for table `configuration`
1359
--
1360
ALTER TABLE `configuration`
1361
  ADD CONSTRAINT `FK_o7bmirglj65sjrcym8a1ywgwc` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
1362
  ADD CONSTRAINT `FK_q1y4xb3dkmkvadurm574ago0j` FOREIGN KEY (`id`) REFERENCES `work_item` (`id`);
1363

    
1364
--
1365
-- Constraints for table `configuration_branch`
1366
--
1367
ALTER TABLE `configuration_branch`
1368
  ADD CONSTRAINT `FK_bvbx76vbqrs4wkix8a4l64mgk` FOREIGN KEY (`configurationId`) REFERENCES `commit` (`id`),
1369
  ADD CONSTRAINT `FK_kq1ppnqu72in7ciaiv0qfm7gq` FOREIGN KEY (`branchId`) REFERENCES `branch` (`id`);
1370

    
1371
--
1372
-- Constraints for table `configuration_change`
1373
--
1374
ALTER TABLE `configuration_change`
1375
  ADD CONSTRAINT `FK_2vr3gl6l9t320r67yfspg8e16` FOREIGN KEY (`changeId`) REFERENCES `work_item_change` (`id`),
1376
  ADD CONSTRAINT `FK_b11yrb5xl6ea5lceca8r6eyaq` FOREIGN KEY (`configurationId`) REFERENCES `configuration` (`id`);
1377

    
1378
--
1379
-- Constraints for table `configuration_person_relation`
1380
--
1381
ALTER TABLE `configuration_person_relation`
1382
  ADD CONSTRAINT `FK_bannhsxpvu262ewrp6aval67i` FOREIGN KEY (`personId`) REFERENCES `person` (`id`),
1383
  ADD CONSTRAINT `FK_miwxanxtv7gt3knvsflwncix7` FOREIGN KEY (`configurationId`) REFERENCES `commit` (`id`);
1384

    
1385
--
1386
-- Constraints for table `field_change`
1387
--
1388
ALTER TABLE `field_change`
1389
  ADD CONSTRAINT `FK_mpcn64kubumdcj69467wdexg6` FOREIGN KEY (`workItemChangeId`) REFERENCES `work_item_change` (`id`);
1390

    
1391
--
1392
-- Constraints for table `group_member`
1393
--
1394
ALTER TABLE `group_member`
1395
  ADD CONSTRAINT `FK_67y4ufvw9p8w6mt4cp7bwa972` FOREIGN KEY (`memberId`) REFERENCES `person` (`id`),
1396
  ADD CONSTRAINT `FK_g639kt1nekbaykgg0pwy8ips8` FOREIGN KEY (`groupId`) REFERENCES `people_group` (`id`);
1397

    
1398
--
1399
-- Constraints for table `identity`
1400
--
1401
ALTER TABLE `identity`
1402
  ADD CONSTRAINT `FK_ocuj7jp17fw0qcow4o3f8e8o0` FOREIGN KEY (`personId`) REFERENCES `person` (`id`);
1403

    
1404
--
1405
-- Constraints for table `iteration`
1406
--
1407
ALTER TABLE `iteration`
1408
  ADD CONSTRAINT `FK_55okl4mwia1vo7n8q6dsbfr55` FOREIGN KEY (`superProjectId`) REFERENCES `project` (`id`),
1409
  ADD CONSTRAINT `FK_bid9cxxcrg3oufp2wc33j1h1e` FOREIGN KEY (`configurationId`) REFERENCES `commit` (`id`);
1410

    
1411
--
1412
-- Constraints for table `milestone_criterion`
1413
--
1414
ALTER TABLE `milestone_criterion`
1415
  ADD CONSTRAINT `FK_hahtmhvat46jgvqn41s98dxdl` FOREIGN KEY (`milestoneId`) REFERENCES `milestone` (`id`),
1416
  ADD CONSTRAINT `FK_j65caq74d17bhsly89kylc3jk` FOREIGN KEY (`criterionId`) REFERENCES `criterion` (`id`);
1417

    
1418
--
1419
-- Constraints for table `people_group`
1420
--
1421
ALTER TABLE `people_group`
1422
  ADD CONSTRAINT `FK_pif918vt32wbakh9vwaye6ib4` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`);
1423

    
1424
--
1425
-- Constraints for table `person`
1426
--
1427
ALTER TABLE `person`
1428
  ADD CONSTRAINT `FK_nh5ixvgwp0pxk9k1aafmgaltj` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`);
1429

    
1430
--
1431
-- Constraints for table `person_competency`
1432
--
1433
ALTER TABLE `person_competency`
1434
  ADD CONSTRAINT `FK_a8kjcx0bj27oxbni693verap4` FOREIGN KEY (`competencyId`) REFERENCES `competency` (`id`),
1435
  ADD CONSTRAINT `FK_a8x0e7bl7yfoab8d2asvki1c4` FOREIGN KEY (`personId`) REFERENCES `person` (`id`);
1436

    
1437
--
1438
-- Constraints for table `person_role`
1439
--
1440
ALTER TABLE `person_role`
1441
  ADD CONSTRAINT `FK_a7r3tdncdaslk1knqt5hue1hq` FOREIGN KEY (`roleId`) REFERENCES `role` (`id`),
1442
  ADD CONSTRAINT `FK_cdyyqtr37aeahm3pe162pdgst` FOREIGN KEY (`personId`) REFERENCES `person` (`id`);
1443

    
1444
--
1445
-- Constraints for table `phase`
1446
--
1447
ALTER TABLE `phase`
1448
  ADD CONSTRAINT `FK_be0977ugg5npl8dxd87mcn7n5` FOREIGN KEY (`milestoneId`) REFERENCES `milestone` (`id`),
1449
  ADD CONSTRAINT `FK_bo7xp1rl1h46kxd0xvk9d9cif` FOREIGN KEY (`configurationId`) REFERENCES `commit` (`id`),
1450
  ADD CONSTRAINT `FK_ip37oqdl21wk9oqbgm8ii2eop` FOREIGN KEY (`superProjectId`) REFERENCES `project` (`id`);
1451

    
1452
--
1453
-- Constraints for table `priority`
1454
--
1455
ALTER TABLE `priority`
1456
  ADD CONSTRAINT `FK_6w6jf1op7pi7pb2xojyg6jakq` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`),
1457
  ADD CONSTRAINT `FK_qpy5gsqj4wu6lavuh3biip56v` FOREIGN KEY (`classId`) REFERENCES `priority_classification` (`id`);
1458

    
1459
--
1460
-- Constraints for table `program`
1461
--
1462
ALTER TABLE `program`
1463
  ADD CONSTRAINT `FK_i9n77wvkvre5cxu7eiqsfqup9` FOREIGN KEY (`id`) REFERENCES `project` (`id`);
1464

    
1465
--
1466
-- Constraints for table `project`
1467
--
1468
ALTER TABLE `project`
1469
  ADD CONSTRAINT `FK_s45m7qvl6bbm8be5olfwc9n0r` FOREIGN KEY (`superProjectId`) REFERENCES `project` (`id`);
1470

    
1471
--
1472
-- Constraints for table `project_instance`
1473
--
1474
ALTER TABLE `project_instance`
1475
  ADD CONSTRAINT `FK_d16nrgrtg46ln2r8qfc4kqaye` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
1476
  ADD CONSTRAINT `FK_l9bmcaixavuekut7gfi5up1dc` FOREIGN KEY (`toolInstanceId`) REFERENCES `tool_instance` (`id`);
1477

    
1478
--
1479
-- Constraints for table `relation`
1480
--
1481
ALTER TABLE `relation`
1482
  ADD CONSTRAINT `FK_ggp4ppf3qtr9gtpo1je8p8who` FOREIGN KEY (`classId`) REFERENCES `relation_classification` (`id`),
1483
  ADD CONSTRAINT `FK_lqcwy0o733b26w312lmp0nliw` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`);
1484

    
1485
--
1486
-- Constraints for table `resolution`
1487
--
1488
ALTER TABLE `resolution`
1489
  ADD CONSTRAINT `FK_74tplny25hv0k9wsji0mb0u94` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`),
1490
  ADD CONSTRAINT `FK_au7be5w5c1wmlvr1sy0s0bro7` FOREIGN KEY (`classId`) REFERENCES `resolution_classification` (`id`);
1491

    
1492
--
1493
-- Constraints for table `role`
1494
--
1495
ALTER TABLE `role`
1496
  ADD CONSTRAINT `FK_g50l5oh7otkun3cwrkx32o1el` FOREIGN KEY (`classId`) REFERENCES `role_classification` (`id`),
1497
  ADD CONSTRAINT `FK_nbulk1gvi6k2hi1s21dcbn973` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`);
1498

    
1499
--
1500
-- Constraints for table `severity`
1501
--
1502
ALTER TABLE `severity`
1503
  ADD CONSTRAINT `FK_9155uwikqouv9vahj5y02jgq0` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`),
1504
  ADD CONSTRAINT `FK_ee5mdcxuy7b3jl1tg4hstv7av` FOREIGN KEY (`classId`) REFERENCES `severity_classification` (`id`);
1505

    
1506
--
1507
-- Constraints for table `status`
1508
--
1509
ALTER TABLE `status`
1510
  ADD CONSTRAINT `FK_4ipxdl1fixo7gorjnjf1vtebu` FOREIGN KEY (`classId`) REFERENCES `status_classification` (`id`),
1511
  ADD CONSTRAINT `FK_m16n7o8v21c1x7l9bimxfcaiu` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`);
1512

    
1513
--
1514
-- Constraints for table `tag`
1515
--
1516
ALTER TABLE `tag`
1517
  ADD CONSTRAINT `FK_m07et5iue1u1mebbdvxi40430` FOREIGN KEY (`configurationId`) REFERENCES `commit` (`id`);
1518

    
1519
--
1520
-- Constraints for table `work_item`
1521
--
1522
ALTER TABLE `work_item`
1523
  ADD CONSTRAINT `FK_grormlstxeqy8q0kuiul86oti` FOREIGN KEY (`authorId`) REFERENCES `person` (`id`);
1524

    
1525
--
1526
-- Constraints for table `work_item_change`
1527
--
1528
ALTER TABLE `work_item_change`
1529
  ADD CONSTRAINT `FK_eqs2goyddmd6gps1ua15jn4y7` FOREIGN KEY (`workItemId`) REFERENCES `work_item` (`id`);
1530

    
1531
--
1532
-- Constraints for table `work_item_relation`
1533
--
1534
ALTER TABLE `work_item_relation`
1535
  ADD CONSTRAINT `FK_3ggc732qs69geici6kmfq8tir` FOREIGN KEY (`rightItemId`) REFERENCES `work_item` (`id`),
1536
  ADD CONSTRAINT `FK_65qc19uvlwf5kk99nrqn4g4x4` FOREIGN KEY (`relationId`) REFERENCES `relation` (`id`),
1537
  ADD CONSTRAINT `FK_7o6onl1fkxry7lunkllomq6py` FOREIGN KEY (`leftItemId`) REFERENCES `work_item` (`id`);
1538

    
1539
--
1540
-- Constraints for table `work_unit`
1541
--
1542
ALTER TABLE `work_unit`
1543
  ADD CONSTRAINT `FK_332c0iln6b790nmcowr7li152` FOREIGN KEY (`statusId`) REFERENCES `status` (`id`),
1544
  ADD CONSTRAINT `FK_8pjjfib3dfnt6wdkqvs6w2ohk` FOREIGN KEY (`resolutionId`) REFERENCES `resolution` (`id`),
1545
  ADD CONSTRAINT `FK_aui0kjlc2ileby8e4toik9pq4` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
1546
  ADD CONSTRAINT `FK_bg8wdau2p07tbijinx445xyxc` FOREIGN KEY (`assigneeId`) REFERENCES `person` (`id`),
1547
  ADD CONSTRAINT `FK_dw94wosdhq0lf0j1eebs7c096` FOREIGN KEY (`iterationId`) REFERENCES `iteration` (`id`),
1548
  ADD CONSTRAINT `FK_gub58igbd2kmb4swfs16ed7te` FOREIGN KEY (`priorityId`) REFERENCES `priority` (`id`),
1549
  ADD CONSTRAINT `FK_hapc5vkbtxaottwycluaohfhk` FOREIGN KEY (`activityId`) REFERENCES `activity` (`id`),
1550
  ADD CONSTRAINT `FK_hdtowjwpdbi5iq0iqkurnsicv` FOREIGN KEY (`severityId`) REFERENCES `severity` (`id`),
1551
  ADD CONSTRAINT `FK_kpa354soynck8d9v16bx29wqr` FOREIGN KEY (`phaseId`) REFERENCES `phase` (`id`),
1552
  ADD CONSTRAINT `FK_l7yf2722dfp6wu8mcvl7lu024` FOREIGN KEY (`wuTypeId`) REFERENCES `wu_type` (`id`),
1553
  ADD CONSTRAINT `FK_qhiwrpysllugj9omo1r2faqt4` FOREIGN KEY (`id`) REFERENCES `work_item` (`id`);
1554

    
1555
--
1556
-- Constraints for table `work_unit_category`
1557
--
1558
ALTER TABLE `work_unit_category`
1559
  ADD CONSTRAINT `FK_9esb50fgqu304q0paecd3j0p1` FOREIGN KEY (`workUnitId`) REFERENCES `work_unit` (`id`),
1560
  ADD CONSTRAINT `FK_gikg1399mwbk4aqit3bl7t7mc` FOREIGN KEY (`categoryId`) REFERENCES `category` (`id`);
1561

    
1562
--
1563
-- Constraints for table `wu_type`
1564
--
1565
ALTER TABLE `wu_type`
1566
  ADD CONSTRAINT `FK_kdcm0gbg2748gs96dj6tadc6w` FOREIGN KEY (`projectInstanceId`) REFERENCES `project_instance` (`id`),
1567
  ADD CONSTRAINT `FK_kltfeqj1it4r8vgucs9uwg578` FOREIGN KEY (`classId`) REFERENCES `wu_type_classification` (`id`);
1568
COMMIT;
1569

    
1570
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
1571
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
1572
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
(3-3/4)