mirror of
https://github.com/jesperh1/csgo-hub-backend.git
synced 2025-05-16 17:28:12 +01:00
README
This commit is contained in:
parent
c5aebc03f4
commit
002681b8bc
23
README.md
Normal file
23
README.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# CS:GO Hub backend
|
||||||
|
Use with [csgo-hub-discord](https://github.com/jesperbakhandskemager/csgo-hub-discord)
|
||||||
|
|
||||||
|
## Database
|
||||||
|
You need the following tables
|
||||||
|
|
||||||
|
```{sql}
|
||||||
|
CREATE TABLE
|
||||||
|
`tokens` (
|
||||||
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`discord_id` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||||
|
`token` varchar(8) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 17 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci
|
||||||
|
CREATE TABLE
|
||||||
|
`users` (
|
||||||
|
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||||
|
`discord_id` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||||
|
`friend_code` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT 'NULL',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE = InnoDB AUTO_INCREMENT = 6 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user