Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fltrail
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fides
fltrail
Commits
6ec3e12b
Commit
6ec3e12b
authored
6 years ago
by
Sven Kästle
Browse files
Options
Downloads
Patches
Plain Diff
fix: Add new version of annotation and submission database structure
parent
515c643d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
+33
-8
33 additions, 8 deletions
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
with
33 additions
and
8 deletions
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
+
33
−
8
View file @
6ec3e12b
...
...
@@ -9,16 +9,44 @@ SET time_zone = "+00:00";
/*!40101 SET NAMES utf8mb4 */
;
CREATE
TABLE
`annotations`
(
CREATE
TABLE
if
not
exists
`annotations`
(
`id`
varchar
(
120
)
NOT
NULL
,
`timestamp`
timestamp
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
ON
UPDATE
CURRENT_TIMESTAMP
,
`userId`
int
(
11
)
DEFAULT
NULL
,
`targetId`
int
(
11
)
DEFAULT
NULL
,
`body`
varchar
(
280
)
DEFAULT
NULL
,
`userToken`
varchar
(
120
)
DEFAULT
NULL
,
`targetId`
varchar
(
120
)
DEFAULT
NULL
,
`targetCategory`
VARCHAR
(
30
)
NOT
NULL
,
`title`
varchar
(
120
)
DEFAULT
NULL
,
`comment`
varchar
(
400
)
DEFAULT
NULL
,
`startCharacter`
int
(
11
)
DEFAULT
NULL
,
`endCharacter`
int
(
11
)
DEFAULT
NULL
`endCharacter`
int
(
11
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`fullsubmissions`
(
`id`
VARCHAR
(
120
)
NOT
NULL
,
`timestamp`
TIMESTAMP
on
update
CURRENT_TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`user`
VARCHAR
(
120
)
NOT
NULL
,
`text`
MEDIUMTEXT
NOT
NULL
,
`projectId`
VARCHAR
(
120
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`submissionparts`
(
`timestamp`
TIMESTAMP
on
update
CURRENT_TIMESTAMP
NOT
NULL
DEFAULT
CURRENT_TIMESTAMP
,
`userId`
VARCHAR
(
120
)
NOT
NULL
,
`fullSubmissionId`
VARCHAR
(
120
)
NOT
NULL
,
`category`
VARCHAR
(
30
)
NOT
NULL
,
PRIMARY
KEY
(
`fullSubmissionId`
,
`category`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`submissionpartbodyelements`
(
`fullSubmissionId`
VARCHAR
(
120
)
NOT
NULL
,
`category`
VARCHAR
(
30
)
NOT
NULL
,
`startCharacter`
int
(
11
)
NOT
NULL
,
`endCharacter`
int
(
11
)
NOT
NULL
,
PRIMARY
KEY
(
`fullSubmissionId`
,
`category`
,
`startCharacter`
,
`endCharacter`
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
`answeredquiz`
(
`projectId`
varchar
(
400
)
NOT
NULL
,
`studentId`
varchar
(
400
)
NOT
NULL
,
...
...
@@ -112,9 +140,6 @@ CREATE TABLE `workrating` (
`autonomous`
int
(
11
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
latin1
;
ALTER
TABLE
`annotations`
ADD
PRIMARY
KEY
(
`id`
);
ALTER
TABLE
`groups`
ADD
PRIMARY
KEY
(
`id`
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment