-
Notifications
You must be signed in to change notification settings - Fork 5
/
database.sql
54 lines (46 loc) · 2.34 KB
/
database.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
-- --------------------------------------------------------
-- Hôte : 127.0.0.1
-- Version du serveur: 10.4.8-MariaDB - mariadb.org binary distribution
-- SE du serveur: Win64
-- HeidiSQL Version: 10.3.0.5771
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Listage de la structure de la base pour arkanic_auth
CREATE DATABASE IF NOT EXISTS `arkanic_auth` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `arkanic_auth`;
-- Listage de la structure de la table arkanic_auth. account
CREATE TABLE IF NOT EXISTS `account` (
`account_id` int(11) NOT NULL AUTO_INCREMENT,
`nickname` varchar(255) NOT NULL,
`login` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`token` varchar(255) NOT NULL,
`ticket` varchar(255) NOT NULL,
`apikey` varchar(255) NOT NULL,
`apikey_expiration_date` datetime NOT NULL,
PRIMARY KEY (`account_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4;
-- Les données exportées n'étaient pas sélectionnées.
-- Listage de la structure de la table arkanic_auth. character
CREATE TABLE IF NOT EXISTS `character` (
`character_id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`level` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`breed` int(11) NOT NULL,
`sex` tinyint(1) NOT NULL,
`skins` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`skins`)),
`color` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`color`)),
`scales` int(11) NOT NULL,
PRIMARY KEY (`character_id`),
KEY `account_id` (`account_id`) USING BTREE,
CONSTRAINT `FK_character_account` FOREIGN KEY (`account_id`) REFERENCES `account` (`account_id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4;
-- Les données exportées n'étaient pas sélectionnées.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;