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
86a384c3
Commit
86a384c3
authored
Nov 30, 2020
by
Zohten
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
database updated
parent
1acd782b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
3 deletions
+27
-3
dump.sql
AGL/BD/dump.sql
+3
-3
sample.sql
AGL/BD/sample.sql
+24
-0
No files found.
AGL/BD/dump.sql
View file @
86a384c3
/*==============================================================*/
/* Nom de SGBD : MySQL 5.0 */
/* Date de cration : 24/11/2020 16:14:35 */
/* Date de cr
�
ation : 24/11/2020 16:14:35 */
/*==============================================================*/
...
...
@@ -86,8 +86,8 @@ create table MJ_PLAY
WIND
int
comment
''
,
primary
key
(
ID_USER
,
ID_ROUND
),
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
cascade
,
constraint
FK_MJ_PLAY_MJ_PLAY_MJ_ROUND
foreign
key
(
ID_ROUND
)
references
MJ_ROUND
(
ID_ROUND
)
on
delete
restrict
on
update
restrict
references
MJ_ROUND
(
ID_ROUND
)
on
delete
restrict
on
update
cascade
);
AGL/BD/sample.sql
View file @
86a384c3
...
...
@@ -25,6 +25,30 @@ VALUES
(
3
,
False
,
'2020/10/24 01:00:00'
),
(
4
,
False
,
'2019/10/24 01:00:00'
);
/* Ajouter un numéro de manche
on update : cascade*/
INSERT
INTO
`MJ_ROUND`
(
ID_ROUND
,
ID_GAME
,
PREVAILING_WIND
,
SEED
,
BEGINING
,
ENDING
,
ACTIONS
)
VALUES
(
1
,
1
,
1
,
12345
,
'2020/10/22 01:10:00'
,
'2020/10/22 01:12:00'
,
'a very long string describing actions of each players'
),
(
2
,
1
,
2
,
54321
,
'2020/10/22 01:12:10'
,
'2020/10/22 01:13:00'
,
'a very long string describing actions of each players'
),
(
3
,
1
,
2
,
15243
,
'2020/10/22 01:12:10'
,
NULL
,
'a very long string describing actions of each players'
);
/*Renomer WIND en USER_WIND*/
INSERT
INTO
`MJ_PLAY`
(
ID_USER
,
ID_ROUND
,
WIN
,
SCORE
,
HOST
,
WIND
)
VALUES
(
1
,
1
,
True
,
12000
,
True
,
1
),
(
2
,
1
,
False
,
11000
,
False
,
2
),
(
3
,
1
,
False
,
10000
,
False
,
3
),
(
4
,
1
,
False
,
9000
,
False
,
4
),
(
1
,
2
,
True
,
12000
,
True
,
1
),
(
2
,
2
,
False
,
11000
,
False
,
2
),
(
3
,
2
,
False
,
10000
,
False
,
3
),
(
4
,
2
,
False
,
9000
,
False
,
4
),
(
1
,
3
,
NULL
,
12000
,
True
,
1
),
(
2
,
3
,
NULL
,
11000
,
False
,
2
),
(
3
,
3
,
NULL
,
10000
,
False
,
3
),
(
4
,
3
,
NULL
,
9000
,
False
,
4
);
/*INSERT INTO MJ_ROOM (ID_ROOM ,ID_USER ,PRIVATE ,DATE_BEGIN ,DATE_END)
VALUES
'2003/01/22 01:00:00'*/
\ No newline at end of file
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