Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0bb55fec
authored
Nov 27, 2017
by
Sebastián Collado Montañez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
pictodb-schema revision
parent
d9e870b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
sails/roles/database/files/pictodb-schema.sql
sails/roles/database/files/pictodb-schema.sql
View file @
0bb55fec
...
...
@@ -269,6 +269,7 @@ CREATE TABLE `grid` (
`active`
tinyint
(
1
)
NOT
NULL
DEFAULT
'0'
,
`id_sup`
int
(
11
)
DEFAULT
NULL
,
`id_stu`
int
(
11
)
NOT
NULL
,
`color`
varchar
(
7
)
COLLATE
utf8_unicode_ci
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
KEY
`id_sup`
(
`id_sup`
),
KEY
`id_stu`
(
`id_stu`
),
...
...
@@ -328,8 +329,10 @@ CREATE TABLE `stu_picto` (
KEY
`fk_picto`
(
`id_pic`
),
KEY
`id_stu`
(
`id_stu`
),
KEY
`stu_picto_grid_fk`
(
`id_grid`
),
KEY
`id_child_grid`
(
`id_child_grid`
),
CONSTRAINT
`fk_picto`
FOREIGN
KEY
(
`id_pic`
)
REFERENCES
`picto`
(
`id`
),
CONSTRAINT
`stu_picto_ibfk_1`
FOREIGN
KEY
(
`id_stu`
)
REFERENCES
`student`
(
`id`
),
CONSTRAINT
`stu_picto_ibfk_2`
FOREIGN
KEY
(
`id_child_grid`
)
REFERENCES
`grid`
(
`id`
)
ON
DELETE
SET
NULL
,
CONSTRAINT
`stu_picto_grid_fk`
FOREIGN
KEY
(
`id_grid`
)
REFERENCES
`grid`
(
`id`
)
ON
DELETE
CASCADE
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7010
DEFAULT
CHARSET
=
utf8
COLLATE
=
utf8_unicode_ci
COMMENT
=
'This table relates a student with the pictos in her vocabulary'
;
...
...
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