Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Voting
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dennis Willers
Voting
Commits
7cb2ab0e
Commit
7cb2ab0e
authored
Aug 23, 2021
by
Matthieu - Greep
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create database structure
parent
354ed5c0
Pipeline
#452
passed with stage
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
map-karma-api.sql
map-karma-api.sql
+21
-0
No files found.
map-karma-api.sql
0 → 100644
View file @
7cb2ab0e
CREATE
DATABASE
IF
NOT
EXISTS
`map-karma-api`
DEFAULT
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_general_ci
;
USE
`map-karma-api`
;
DROP
TABLE
IF
EXISTS
`auth`
;
CREATE
TABLE
IF
NOT
EXISTS
`auth`
(
`id`
int
NOT
NULL
AUTO_INCREMENT
,
`token`
varchar
(
256
)
COLLATE
utf8mb4_general_ci
NOT
NULL
,
`description`
text
COLLATE
utf8mb4_general_ci
NOT
NULL
,
`validate`
tinyint
(
1
)
NOT
NULL
,
PRIMARY
KEY
(
`id`
)
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
;
DROP
TABLE
IF
EXISTS
`votes`
;
CREATE
TABLE
IF
NOT
EXISTS
`votes`
(
`map`
varchar
(
128
)
COLLATE
utf8mb4_general_ci
NOT
NULL
,
`player`
varchar
(
128
)
COLLATE
utf8mb4_general_ci
NOT
NULL
,
`vote`
int
NOT
NULL
,
`date`
varchar
(
128
)
COLLATE
utf8mb4_general_ci
NOT
NULL
,
PRIMARY
KEY
(
`map`
),
UNIQUE
KEY
`player_map`
(
`map`
(
100
),
`player`
(
100
))
USING
BTREE
)
ENGINE
=
MyISAM
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_general_ci
;
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