Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Quentin Vrel
projet-cdaw
Commits
95ed4c6f
Commit
95ed4c6f
authored
Nov 24, 2020
by
quentin.vrel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mise à jour de la bdd
parent
b2de3b6f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
813 additions
and
926 deletions
+813
-926
dump.sql
AGL/BD/dump.sql
+32
-47
MCD TP AGL.bcd
AGL/Conception/MCD TP AGL.bcd
+467
-337
MCD TP AGL.mcd
AGL/Conception/MCD TP AGL.mcd
+314
-542
No files found.
AGL/BD/dump.sql
View file @
95ed4c6f
/*==============================================================*/
/*==============================================================*/
/* Nom de SGBD : MySQL 5.0 */
/* Nom de SGBD : MySQL 5.0 */
/* Date de cration : 2
3/11/2020 18:08:41
*/
/* Date de cration : 2
4/11/2020 16:14:35
*/
/*==============================================================*/
/*==============================================================*/
...
@@ -15,6 +15,17 @@ create table MJ_BLACKLIST_IP
...
@@ -15,6 +15,17 @@ create table MJ_BLACKLIST_IP
primary
key
(
ID_BLACKLIST
)
primary
key
(
ID_BLACKLIST
)
);
);
/*==============================================================*/
/* Table : MJ_GAME */
/*==============================================================*/
create
table
MJ_GAME
(
ID_GAME
int
not
null
auto_increment
comment
''
,
PRIVATE
bool
not
null
comment
''
,
CREATION_TIME
timestamp
not
null
comment
''
,
primary
key
(
ID_GAME
)
);
/*==============================================================*/
/*==============================================================*/
/* Table : MJ_ROLE */
/* Table : MJ_ROLE */
/*==============================================================*/
/*==============================================================*/
...
@@ -46,32 +57,20 @@ create table MJ_USER
...
@@ -46,32 +57,20 @@ create table MJ_USER
);
);
/*==============================================================*/
/*==============================================================*/
/* Table : MJ_ROOM */
/* Table : MJ_ROUND */
/*==============================================================*/
create
table
MJ_ROOM
(
ID_ROOM
int
not
null
auto_increment
comment
''
,
ID_USER
int
comment
''
,
PRIVATE
bool
not
null
comment
''
,
DATE_BEGIN
datetime
not
null
comment
''
,
DATE_END
datetime
comment
''
,
primary
key
(
ID_ROOM
),
constraint
FK_MJ_ROOM_MJ_CREATI_MJ_USER
foreign
key
(
ID_USER
)
references
MJ_USER
(
ID_USER
)
on
delete
restrict
on
update
restrict
);
/*==============================================================*/
/* Table : MJ_GAME */
/*==============================================================*/
/*==============================================================*/
create
table
MJ_
GAME
create
table
MJ_
ROUND
(
(
ID_GAME
int
not
null
auto_increment
comment
''
,
ID_ROUND
int
not
null
auto_increment
comment
''
,
ID_ROOM
int
comment
''
,
ID_GAME
int
comment
''
,
DATE_BEGIN
datetime
not
null
comment
''
,
PREVAILING_WIND
int
not
null
comment
''
,
DATE_END
datetime
comment
''
,
SEED
int
not
null
comment
''
,
primary
key
(
ID_GAME
),
BEGINING
timestamp
comment
''
,
constraint
FK_MJ_GAME_MJ_HOST_MJ_ROOM
foreign
key
(
ID_ROOM
)
ENDING
timestamp
comment
''
,
references
MJ_ROOM
(
ID_ROOM
)
on
delete
restrict
on
update
restrict
ACTIONS
text
comment
''
,
primary
key
(
ID_ROUND
),
constraint
FK_MJ_ROUND_MJ_COMPOS_MJ_GAME
foreign
key
(
ID_GAME
)
references
MJ_GAME
(
ID_GAME
)
on
delete
restrict
on
update
restrict
);
);
/*==============================================================*/
/*==============================================================*/
...
@@ -79,30 +78,16 @@ create table MJ_GAME
...
@@ -79,30 +78,16 @@ create table MJ_GAME
/*==============================================================*/
/*==============================================================*/
create
table
MJ_PLAY
create
table
MJ_PLAY
(
(
ID_GAME
int
not
null
comment
''
,
ID_USER
int
not
null
comment
''
,
ID_USER
int
not
null
comment
''
,
ID_ROUND
int
not
null
comment
''
,
WIN
bool
comment
''
,
WIN
bool
comment
''
,
primary
key
(
ID_GAME
,
ID_USER
),
SCORE
int
comment
''
,
constraint
FK_MJ_PLAY_PLAY_MJ_GAME
foreign
key
(
ID_GAME
)
HOST
bool
comment
''
,
references
MJ_GAME
(
ID_GAME
)
on
delete
restrict
on
update
restrict
,
WIND
int
comment
''
,
primary
key
(
ID_USER
,
ID_ROUND
),
constraint
FK_MJ_PLAY_PLAY2_MJ_USER
foreign
key
(
ID_USER
)
constraint
FK_MJ_PLAY_PLAY2_MJ_USER
foreign
key
(
ID_USER
)
references
MJ_USER
(
ID_USER
)
on
delete
restrict
on
update
restrict
references
MJ_USER
(
ID_USER
)
on
delete
restrict
on
update
restrict
,
);
constraint
FK_MJ_PLAY_MJ_PLAY_MJ_ROUND
foreign
key
(
ID_ROUND
)
references
MJ_ROUND
(
ID_ROUND
)
on
delete
restrict
on
update
restrict
/*==============================================================*/
/* Table : MJ_ROUND */
/*==============================================================*/
create
table
MJ_ROUND
(
ID_ROUND
int
not
null
auto_increment
comment
''
,
ID_GAME
int
comment
''
,
WIND
int
not
null
comment
''
,
SEED
int
not
null
comment
''
,
DATE_BEGIN
datetime
not
null
comment
''
,
DATE_END
datetime
comment
''
,
ACTIONS
text
comment
''
,
primary
key
(
ID_ROUND
),
constraint
FK_MJ_ROUND_MJ_COMPOS_MJ_GAME
foreign
key
(
ID_GAME
)
references
MJ_GAME
(
ID_GAME
)
on
delete
restrict
on
update
restrict
);
);
AGL/Conception/MCD TP AGL.bcd
View file @
95ed4c6f
This diff is collapsed.
Click to expand it.
AGL/Conception/MCD TP AGL.mcd
View file @
95ed4c6f
This diff is collapsed.
Click to expand it.
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