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
66a7c0e7
Commit
66a7c0e7
authored
6 years ago
by
Martin Stähr
Browse files
Options
Downloads
Patches
Plain Diff
#40
fix: add isStudent back, was removed by someone before
parent
34f89724
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
+9
-62
9 additions, 62 deletions
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
with
9 additions
and
62 deletions
gemeinsamforschen/src/scripts/dbschema/fltrail.sql
+
9
−
62
View file @
66a7c0e7
...
...
@@ -17,52 +17,24 @@ CREATE TABLE if not exists `projects` (
`token`
varchar
(
400
)
NOT
NULL
,
`phase`
varchar
(
400
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`groups`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`projectId`
varchar
(
400
)
NOT
NULL
,
`chatRoomId`
varchar
(
400
)
NOT
NULL
,
PRIMARY
KEY
(
id
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
groupuser
(
CREATE
TABLE
if
not
exists
groupuser
(
userEmail
varchar
(
400
)
NOT
NULL
,
groupId
int
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`tags`
(
`projectId`
varchar
(
100
)
NOT
NULL
,
`tag`
varchar
(
400
)
NOT
NULL
)
ENGINE
=
InnoDB
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`users`
(
...
...
@@ -72,24 +44,18 @@ CREATE TABLE if not exists `users` (
`token`
varchar
(
800
)
NOT
NULL
,
`rocketChatId`
varchar
(
400
)
NOT
NULL
,
`rocketChatAuthToken`
varchar
(
800
)
NOT
NULL
,
`isStudent`
TINYINT
(
1
),
UNIQUE
(
email
)
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
projectuser
(
CREATE
TABLE
if
not
exists
projectuser
(
projectId
varchar
(
100
)
NOT
NULL
,
userId
varchar
(
100
)
NOT
NULL
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8
;
CREATE
TABLE
if
not
exists
`annotations`
(
...
...
@@ -108,44 +74,25 @@ CREATE TABLE if not exists `annotations` (
DEFAULT
CHARSET
=
utf8
;
alter
table
users
add
isStudent
tinyint
(
1
)
default
'1'
null
;
CREATE
TABLE
if
not
exists
quiz
(
CREATE
TABLE
if
not
exists
quiz
(
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
;
CREATE
TABLE
if
not
exists
tasks
(
CREATE
TABLE
if
not
exists
tasks
(
userId
varchar
(
400
)
NOT
NULL
,
projectId
varchar
(
400
)
NOT
NULL
,
taskUrl
varchar
(
400
)
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