Browse Source

Add db schema

Giuseppe Guerra 1 year ago
parent
commit
fce419df38
1 changed files with 53 additions and 0 deletions
  1. 53
    0
      schema.sql

+ 53
- 0
schema.sql View File

@@ -0,0 +1,53 @@
1
+-- --------------------------------------------------------
2
+-- Host:                         127.0.0.1
3
+-- Versione server:              10.0.28-MariaDB-0ubuntu0.16.04.1 - Ubuntu 16.04
4
+-- S.O. server:                  debian-linux-gnu
5
+-- HeidiSQL Versione:            9.4.0.5125
6
+-- --------------------------------------------------------
7
+
8
+/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
9
+/*!40101 SET NAMES utf8 */;
10
+/*!50503 SET NAMES utf8mb4 */;
11
+/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
12
+/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
13
+
14
+
15
+-- Dump della struttura del database levbod
16
+CREATE DATABASE IF NOT EXISTS `levbod` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
17
+USE `levbod`;
18
+
19
+-- Dump della struttura di tabella levbod.beatmapsets
20
+DROP TABLE IF EXISTS `beatmapsets`;
21
+CREATE TABLE IF NOT EXISTS `beatmapsets` (
22
+  `id` int(11) NOT NULL AUTO_INCREMENT,
23
+  `beatmapset_id` int(11) NOT NULL DEFAULT '0',
24
+  `ranked_status` tinyint(4) NOT NULL DEFAULT '0',
25
+  `last_update` int(11) NOT NULL DEFAULT '0',
26
+  `artist` varchar(50) NOT NULL DEFAULT '0',
27
+  `title` varchar(50) NOT NULL DEFAULT '0',
28
+  `creator` varchar(50) NOT NULL DEFAULT '0',
29
+  `source` varchar(50) NOT NULL DEFAULT '0',
30
+  `tags` varchar(50) NOT NULL DEFAULT '0',
31
+  `has_video` tinyint(4) NOT NULL DEFAULT '0',
32
+  PRIMARY KEY (`id`),
33
+  UNIQUE KEY `id` (`id`),
34
+  KEY `beatmapset_id` (`beatmapset_id`)
35
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
36
+
37
+-- L’esportazione dei dati non era selezionata.
38
+-- Dump della struttura di tabella levbod.child_beatmaps
39
+DROP TABLE IF EXISTS `child_beatmaps`;
40
+CREATE TABLE IF NOT EXISTS `child_beatmaps` (
41
+  `id` int(11) NOT NULL AUTO_INCREMENT,
42
+  `beatmap_id` int(11) NOT NULL DEFAULT '0',
43
+  `beatmapset_id` int(11) NOT NULL DEFAULT '0',
44
+  PRIMARY KEY (`id`),
45
+  UNIQUE KEY `id` (`id`),
46
+  KEY `beatmapset_id` (`beatmapset_id`),
47
+  KEY `beatmap_id` (`beatmap_id`)
48
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
49
+
50
+-- L’esportazione dei dati non era selezionata.
51
+/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
52
+/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
53
+/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

Loading…
Cancel
Save