Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
App et archi Web TP 2020
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
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sitbon.benjamin
App et archi Web TP 2020
Commits
9b9d342c
Commit
9b9d342c
authored
Oct 12, 2021
by
benjamin.sitbon
Browse files
Options
Downloads
Patches
Plain Diff
bsd complete
parent
97ae5dbb
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
dump.sql
+45
-0
45 additions, 0 deletions
dump.sql
with
45 additions
and
0 deletions
dump.sql
+
45
−
0
View file @
9b9d342c
...
...
@@ -56,3 +56,48 @@ CREATE TABLE IF NOT EXISTS `Contient` (
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
)
ENGINE
=
InnoDB
;
CREATE
TABLE
IF
NOT
EXISTS
`Peut_apprendre`
(
PRIMARY
KEY
(
`attaque_id`
),
PRIMARY
KEY
(
`pokemon_id`
),
CONSTRAINT
`fk_pokemon_id`
FOREIGN
KEY
(
`pokemon_id`
)
REFERENCES
`pokeshop`
.
`Pokemon`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
CONSTRAINT
`fk_panier_id`
FOREIGN
KEY
(
`attaque_id`
)
REFERENCES
`pokeshop`
.
`Attaque`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
)
ENGINE
=
InnoDB
;
CREATE
TABLE
IF
NOT
EXISTS
`Appris`
(
PRIMARY
KEY
(
`attaque_id`
),
PRIMARY
KEY
(
`pokemon_id`
),
CONSTRAINT
`fk_pokemon_id`
FOREIGN
KEY
(
`pokemon_id`
)
REFERENCES
`pokeshop`
.
`Pokemon`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
CONSTRAINT
`fk_panier_id`
FOREIGN
KEY
(
`attaque_id`
)
REFERENCES
`pokeshop`
.
`Attaque`
(
`id`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
)
ENGINE
=
InnoDB
;
CREATE
TABLE
IF
NOT
EXISTS
`Attaque`
(
`id`
INT
UNSIGNED
NOT
NULL
AUTO_INCREMENT
,
`name`
VARCHAR
(
32
)
NOT
NULL
,
`desc`
VARCHAR
(
2048
)
NOT
NULL
DEFAULT
''
,
`type`
VARCHAR
(
32
)
NOT
NULL
,
`categorie`
VARCHAR
(
32
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
),
)
ENGINE
=
InnoDB
;
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
sign in
to comment