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
48294bdd
Commit
48294bdd
authored
6 years ago
by
Ludwig Weihmann
Browse files
Options
Downloads
Patches
Plain Diff
feat: added sql script file for gamification
parent
bc003f9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
+2
-1
2 additions, 1 deletion
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
gemeinsamforschen/src/scripts/dbschema/setup_gamification.sql
+58
-0
58 additions, 0 deletions
...insamforschen/src/scripts/dbschema/setup_gamification.sql
with
60 additions
and
1 deletion
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
+
2
−
1
View file @
48294bdd
...
...
@@ -85,4 +85,5 @@ CREATE TABLE if not exists quiz
correct
tinyint
(
1
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
\ No newline at end of file
DEFAULT
CHARSET
=
utf8
;
This diff is collapsed.
Click to expand it.
gemeinsamforschen/src/scripts/dbschema/setup_gamification.sql
0 → 100644
+
58
−
0
View file @
48294bdd
-- This script initializes tables to be used for gamification
CREATE
DATABASE
IF
NOT
EXISTS
`fltrail`
DEFAULT
CHARACTER
SET
utf8
COLLATE
utf8_general_ci
;
USE
`fltrail`
;
---- events
-- events can be
-- * writing a comment
-- * taking a quiz
-- * creating a quiz
-- * adding a part of the journal
-- * completing the journal
-- * doing peer assessment (actively and passively)
CREATE
TABLE
if
not
exists
events
(
eventId
varchar
(
400
)
NOT
NULL
,
eventType
varchar
(
400
)
NOT
NULL
,
studentId
varchar
(
400
)
NOT
NULL
,
projectId
varchar
(
400
)
NOT
NULL
,
title
varchar
(
400
)
NOT
NULL
,
description
varchar
(
400
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
---- tasks
-- a task is something a student is obliged to do, such as
-- * uploading parts of the journal
-- * completing the journal
-- * giving at least one feedback to another student
-- * absolving peer assessment
CREATE
TABLE
if
not
exists
tasks
(
taskId
varchar
(
400
)
NOT
NULL
,
taskType
varchar
(
400
)
NOT
NULL
,
projectId
varchar
(
400
)
NOT
NULL
,
title
varchar
(
400
)
NOT
NULL
,
description
varchar
(
400
)
NOT
NULL
,
state
varchar
(
400
)
NOT
NULL
-- should be "open" or "closed"
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
--- achievements
CREATE
TABLE
if
not
exists
achievements
(
author
varchar
(
400
)
NOT
NULL
,
projectId
varchar
(
400
)
NOT
NULL
,
question
varchar
(
400
)
NOT
NULL
,
mcType
varchar
(
400
)
NOT
NULL
,
answer
varchar
(
400
)
NOT
NULL
,
correct
tinyint
(
1
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
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