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
83b984e6
Commit
83b984e6
authored
Nov 23, 2020
by
quentin.vrel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TP AGL 23/11
parent
7ee0eac9
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9550 additions
and
0 deletions
+9550
-0
tables.sql
AGL/BD/tables.sql
+170
-0
Espace de travail.sws
AGL/Conception/Espace de travail.sws
+11
-0
MCD TP AGL.mcd
AGL/Conception/MCD TP AGL.mcd
+3132
-0
MPD TP AGL.mpd
AGL/Conception/MPD TP AGL.mpd
+6237
-0
No files found.
AGL/BD/tables.sql
0 → 100644
View file @
83b984e6
/*==============================================================*/
/* Nom de SGBD : MySQL 5.0 */
/* Date de cration : 23/11/2020 17:07:49 */
/*==============================================================*/
alter
table
MJ_GAME
drop
foreign
key
FK_MJ_GAME_HOST_MJ_SALON
;
alter
table
MJ_PLAY
drop
foreign
key
FK_MJ_PLAY_PLAY_MJ_GAME
;
alter
table
MJ_PLAY
drop
foreign
key
FK_MJ_PLAY_PLAY2_MJ_USER
;
alter
table
MJ_ROUND
drop
foreign
key
FK_MJ_ROUND_COMPOSE_MJ_GAME
;
alter
table
MJ_SALON
drop
foreign
key
FK_MJ_SALON_CREATION_MJ_USER
;
alter
table
MJ_USER
drop
foreign
key
FK_MJ_USER_HAS_MJ_ROLE
;
drop
table
if
exists
MJ_BLACKLIST_IP
;
alter
table
MJ_GAME
drop
foreign
key
FK_MJ_GAME_HOST_MJ_SALON
;
drop
table
if
exists
MJ_GAME
;
alter
table
MJ_PLAY
drop
foreign
key
FK_MJ_PLAY_PLAY_MJ_GAME
;
alter
table
MJ_PLAY
drop
foreign
key
FK_MJ_PLAY_PLAY2_MJ_USER
;
drop
table
if
exists
MJ_PLAY
;
drop
table
if
exists
MJ_ROLE
;
alter
table
MJ_ROUND
drop
foreign
key
FK_MJ_ROUND_COMPOSE_MJ_GAME
;
drop
table
if
exists
MJ_ROUND
;
alter
table
MJ_SALON
drop
foreign
key
FK_MJ_SALON_CREATION_MJ_USER
;
drop
table
if
exists
MJ_SALON
;
alter
table
MJ_USER
drop
foreign
key
FK_MJ_USER_HAS_MJ_ROLE
;
drop
table
if
exists
MJ_USER
;
/*==============================================================*/
/* Table : MJ_BLACKLIST_IP */
/*==============================================================*/
create
table
MJ_BLACKLIST_IP
(
ID_BLACKLIST
int
not
null
auto_increment
comment
''
,
IP
varchar
(
15
)
not
null
comment
''
,
DATE_BAN
datetime
not
null
comment
''
,
primary
key
(
ID_BLACKLIST
)
);
/*==============================================================*/
/* Table : MJ_GAME */
/*==============================================================*/
create
table
MJ_GAME
(
ID_GAME
int
not
null
auto_increment
comment
''
,
ID_ROOM
varchar
(
1024
)
not
null
comment
''
,
DATE_BEGIN
datetime
not
null
comment
''
,
DATE_END
datetime
comment
''
,
primary
key
(
ID_GAME
)
);
/*==============================================================*/
/* Table : MJ_PLAY */
/*==============================================================*/
create
table
MJ_PLAY
(
ID_GAME
int
not
null
comment
''
,
ID_USER
int
not
null
comment
''
,
WIN
bool
comment
''
,
primary
key
(
ID_GAME
,
ID_USER
)
);
/*==============================================================*/
/* Table : MJ_ROLE */
/*==============================================================*/
create
table
MJ_ROLE
(
ID_ROLE
int
not
null
auto_increment
comment
''
,
NAME
varchar
(
15
)
not
null
comment
''
,
primary
key
(
ID_ROLE
)
);
/*==============================================================*/
/* Table : MJ_ROUND */
/*==============================================================*/
create
table
MJ_ROUND
(
ID_ROUND
int
not
null
auto_increment
comment
''
,
ID_GAME
int
not
null
comment
''
,
WIND
int
not
null
comment
''
,
SEED
int
not
null
comment
''
,
DATE_BEGIN
datetime
not
null
comment
''
,
DATE_END
datetime
comment
''
,
ACTIONS
varchar
(
500
)
comment
''
,
primary
key
(
ID_ROUND
)
);
/*==============================================================*/
/* Table : MJ_SALON */
/*==============================================================*/
create
table
MJ_SALON
(
ID_ROOM
int
not
null
auto_increment
comment
''
,
ID_USER
int
not
null
comment
''
,
PRIVATE
bool
not
null
comment
''
,
DATE_BEGIN
datetime
not
null
comment
''
,
DATE_END
datetime
comment
''
,
CODE
char
(
6
)
comment
''
,
primary
key
(
ID_ROOM
)
);
/*==============================================================*/
/* Table : MJ_USER */
/*==============================================================*/
create
table
MJ_USER
(
ID_USER
int
not
null
auto_increment
comment
''
,
ID_ROLE
int
not
null
comment
''
,
LOGIN
varchar
(
16
)
not
null
comment
''
,
PASWORD
char
(
40
)
not
null
comment
''
,
AVATAR
char
(
1024
)
comment
''
,
LASTNAME
char
(
55
)
comment
''
,
FIRSTNAME
char
(
55
)
comment
''
,
MAIL
char
(
64
)
not
null
comment
''
,
BAN_ACCOUNT
bool
comment
''
,
LAST_IP
varchar
(
15
)
comment
''
,
primary
key
(
ID_USER
)
);
alter
table
MJ_GAME
add
constraint
FK_MJ_GAME_HOST_MJ_SALON
foreign
key
(
ID_ROOM
)
references
MJ_SALON
(
ID_ROOM
)
on
delete
restrict
on
update
restrict
;
alter
table
MJ_PLAY
add
constraint
FK_MJ_PLAY_PLAY_MJ_GAME
foreign
key
(
ID_GAME
)
references
MJ_GAME
(
ID_GAME
)
on
delete
restrict
on
update
restrict
;
alter
table
MJ_PLAY
add
constraint
FK_MJ_PLAY_PLAY2_MJ_USER
foreign
key
(
ID_USER
)
references
MJ_USER
(
ID_USER
)
on
delete
restrict
on
update
restrict
;
alter
table
MJ_ROUND
add
constraint
FK_MJ_ROUND_COMPOSE_MJ_GAME
foreign
key
(
ID_GAME
)
references
MJ_GAME
(
ID_GAME
)
on
delete
restrict
on
update
restrict
;
alter
table
MJ_SALON
add
constraint
FK_MJ_SALON_CREATION_MJ_USER
foreign
key
(
ID_USER
)
references
MJ_USER
(
ID_USER
)
on
delete
restrict
on
update
restrict
;
alter
table
MJ_USER
add
constraint
FK_MJ_USER_HAS_MJ_ROLE
foreign
key
(
ID_ROLE
)
references
MJ_ROLE
(
ID_ROLE
)
on
delete
restrict
on
update
restrict
;
AGL/Conception/Espace de travail.sws
0 → 100644
View file @
83b984e6
<?xml version="1.0" encoding="UTF-8"?>
<?PowerDesigner signature="Workspace" version="16.7.1.6521"?>
<!-- Veuillez ne pas modifier ce fichier -->
<Workspace>
<Local
Expanded=
"Yes"
>
<Model
Expanded=
"Yes"
ID=
"{11E4B893-61D4-478A-BAF1-0F640FC9D025}"
Name=
"MCD TP AGL"
Type=
"{1E597170-9350-11D1-AB3C-0020AF71E433}"
URL=
"MCD TP AGL.mcd"
/>
<Model
Expanded=
"Yes"
ID=
"{83E9595C-80F2-4C36-B14E-147FEB75C299}"
Name=
"MPD_TP_AGL"
Type=
"{CDE44E21-9669-11D1-9914-006097355D9B}"
URL=
"MPD TP AGL.mpd"
/>
</Local>
<BrowserModule
Name=
"Repository"
/>
</Workspace>
AGL/Conception/MCD TP AGL.mcd
0 → 100644
View file @
83b984e6
This diff is collapsed.
Click to expand it.
AGL/Conception/MPD TP AGL.mpd
0 → 100644
View file @
83b984e6
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