Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
c7157b6c
Commit
c7157b6c
authored
Mar 07, 2019
by
Francois Gannaz
Browse files
DB structure ++
parent
5e5f618d
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/install.xml
View file @
c7157b6c
...
...
@@ -6,32 +6,31 @@
<TABLES>
<TABLE
NAME=
"labnbook_user"
COMMENT=
"matching users bewteen Moodle and LabNbook"
>
<FIELDS>
<FIELD
NAME=
"userid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"labnbook_userid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"id"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"true"
/>
<FIELD
NAME=
"userid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
COMMENT=
"user ID in Moodle"
/>
<FIELD
NAME=
"labnbook_userid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
COMMENT=
"user ID in LabNbook"
/>
<FIELD
NAME=
"timemodified"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"
userid, labnbook_user
id"
/>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"id"
/>
<KEY
NAME=
"userid"
TYPE=
"foreign-unique"
FIELDS=
"userid"
REFTABLE=
"user"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
<TABLE
NAME=
"labnbook"
COMMENT=
"Activity instance"
>
<TABLE
NAME=
"labnbook"
COMMENT=
"Activity instance
(mandatory name of this table)
"
>
<FIELDS>
<FIELD
NAME=
"id"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"true"
/>
<FIELD
NAME=
"course"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
UNSIGNED=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"id"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"true"
COMMENT=
"referenced from course_modules.instance"
/>
<FIELD
NAME=
"course
id
"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
UNSIGNED=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"name"
TYPE=
"char"
LENGTH=
"255"
NOTNULL=
"false"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"intro"
TYPE=
"text"
LENGTH=
"small"
NOTNULL=
"false"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"introformat"
TYPE=
"int"
LENGTH=
"4"
NOTNULL=
"true"
UNSIGNED=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"labnbook_missionid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"labnbook_missionid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
COMMENT=
"LabNbook DB: mission.id_mission"
/>
<FIELD
NAME=
"timecreated"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
<FIELD
NAME=
"timemodified"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"false"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
</FIELDS>
<KEYS>
<KEY
NAME=
"primary"
TYPE=
"primary"
FIELDS=
"id"
/>
<KEY
NAME=
"courseid"
TYPE=
"foreign"
FIELDS=
"courseid"
REFTABLE=
"course"
REFFIELDS=
"id"
/>
</KEYS>
<INDEXES>
<INDEX
NAME=
"course"
UNIQUE=
"false"
FIELDS=
"course"
/>
</INDEXES>
</TABLE>
<TABLE
NAME=
"labnbook_teamconfig"
COMMENT=
"configuration for teams in an activity"
>
<FIELDS>
...
...
@@ -61,7 +60,7 @@
<KEY
NAME=
"groupid"
TYPE=
"foreign"
FIELDS=
"groupid"
REFTABLE=
"group"
REFFIELDS=
"id"
/>
</KEYS>
</TABLE>
<TABLE
NAME=
"labnbook_team"
COMMENT=
"team
of us
ers"
>
<TABLE
NAME=
"labnbook_team"
COMMENT=
"
a
team
links a teamconfig to memb
ers"
>
<FIELDS>
<FIELD
NAME=
"id"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
SEQUENCE=
"true"
/>
<FIELD
NAME=
"teamconfigid"
TYPE=
"int"
LENGTH=
"10"
NOTNULL=
"true"
DEFAULT=
"0"
SEQUENCE=
"false"
/>
...
...
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