Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Game Server Go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Akamu
Game Server Go
Commits
ef1025e8
Commit
ef1025e8
authored
Nov 26, 2018
by
Frederik Wegner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds cross table maintainer_subject TG-156 #Review
parent
bb37040a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
8 deletions
+24
-8
resources/data/akamuschema.sql
resources/data/akamuschema.sql
+24
-8
No files found.
resources/data/akamuschema.sql
View file @
ef1025e8
...
...
@@ -111,7 +111,6 @@ CREATE TABLE IF NOT EXISTS `akamu`.`maintainer` (
`password`
VARCHAR
(
100
)
NOT
NULL
,
`level`
INT
NOT
NULL
,
`name`
VARCHAR
(
45
)
CHARACTER
SET
'utf8mb4'
,
`subject`
INT
UNSIGNED
NULL
,
`university`
INT
UNSIGNED
NOT
NULL
,
`email`
VARCHAR
(
45
)
NULL
,
`idmongo`
VARCHAR
(
45
)
NULL
,
...
...
@@ -120,11 +119,6 @@ CREATE TABLE IF NOT EXISTS `akamu`.`maintainer` (
UNIQUE
INDEX
`login_UNIQUE`
(
`login`
ASC
),
INDEX
`fk_maintainer_1_idx`
(
`subject`
ASC
),
UNIQUE
INDEX
`idmongo_UNIQUE`
(
`idmongo`
ASC
),
CONSTRAINT
`fk_maintainer_subject`
FOREIGN
KEY
(
`subject`
)
REFERENCES
`akamu`
.
`subject`
(
`idsubject`
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
,
CONSTRAINT
`fk_maintainer_university`
FOREIGN
KEY
(
`university`
)
REFERENCES
`akamu`
.
`university`
(
`iduniversity`
)
...
...
@@ -132,6 +126,28 @@ CREATE TABLE IF NOT EXISTS `akamu`.`maintainer` (
ON
UPDATE
NO
ACTION
)
ENGINE
=
InnoDB
;
-- -----------------------------------------------------
-- Table `akamu`.`maintainer_subject`
-- Models the subjects a maintainer has access to.
-- An optional access level may be provided later, that
-- further specifies what operations the maintainer can
-- perform.
-- -----------------------------------------------------
CREATE
TABLE
IF
NOT
EXISTS
`akamu`
.
`maintainer_subject`
(
`maintainer`
INT
UNSIGNED
NOT
NULL
,
`subject`
INT
UNSIGNED
NOT
NULL
,
PRIMARY
KEY
(
`maintainer`
,
`subject`
),
CONSTRAINT
`fk_maintainer_subject_maintainer`
FOREIGN
KEY
(
`maintainer`
)
REFERENCES
`akamu`
.
`maintainer`
(
`idmaintainer`
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
,
CONSTRAINT
`fk_maintainer_subject_subject`
FOREIGN
KEY
(
`subject`
)
REFERENCES
`akamu`
.
`subject`
(
`idsubject`
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
)
ENGINE
=
InnoDB
;
-- -----------------------------------------------------
-- Table `akamu`.`image`
...
...
@@ -637,8 +653,8 @@ CREATE TABLE IF NOT EXISTS `akamu`.`trainingsubscription` (
REFERENCES
`akamu`
.
`useranswer`
(
`iduseranswer`
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
,
CONSTRAINT
'fk_optionuseranswer_option'
FOREIGN
KEY
(
'selected'
)
CONSTRAINT
`fk_optionuseranswer_option`
FOREIGN
KEY
(
`selected`
)
REFERENCES
`akamu`
.
`option`
(
`idoption`
)
ON
DELETE
NO
ACTION
ON
UPDATE
NO
ACTION
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment