admin: claims now reference exercices
This commit is contained in:
parent
56b79cae2d
commit
2e3f7c6894
6 changed files with 76 additions and 20 deletions
|
|
@ -363,12 +363,14 @@ CREATE TABLE IF NOT EXISTS claims(
|
|||
id_claim INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
subject VARCHAR(255) NOT NULL,
|
||||
id_team INTEGER,
|
||||
id_exercice INTEGER,
|
||||
id_assignee INTEGER,
|
||||
creation TIMESTAMP NOT NULL,
|
||||
state ENUM('new', 'need-info', 'confirmed', 'in-progress', 'need-review', 'closed', 'invalid') NOT NULL,
|
||||
priority ENUM('low', 'medium', 'high', 'critical') NOT NULL,
|
||||
FOREIGN KEY(id_assignee) REFERENCES claim_assignees(id_assignee),
|
||||
FOREIGN KEY(id_team) REFERENCES teams(id_team)
|
||||
FOREIGN KEY(id_team) REFERENCES teams(id_team),
|
||||
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice)
|
||||
) DEFAULT CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
|
||||
`); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Reference in a new issue