Add databases structures
This commit is contained in:
parent
c1aeb11c6d
commit
32b69fbd20
5 changed files with 274 additions and 0 deletions
81
db/gsm.sql
Normal file
81
db/gsm.sql
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
-- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64)
|
||||
--
|
||||
-- Host: localhost Database: pa4home
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 5.5.40-0+wheezy1
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8 */;
|
||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||
/*!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' */;
|
||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||
|
||||
--
|
||||
-- Table structure for table `gsm`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gsm`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `gsm` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`titre` varchar(255) NOT NULL,
|
||||
`chanteur` varchar(255) NOT NULL,
|
||||
`CDDeca` int(10) unsigned NOT NULL,
|
||||
`CDAnnee` int(10) unsigned NOT NULL,
|
||||
`CDChanteur` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=3346 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `gsm_albums`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gsm_albums`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `gsm_albums` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`type` tinyint(3) unsigned NOT NULL COMMENT '1=année;2=décénie;3=interprète',
|
||||
`titre` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`color` mediumint(8) unsigned NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `type` (`type`,`titre`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=218 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `gsm_in`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gsm_in`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `gsm_in` (
|
||||
`id_titre` bigint(20) unsigned NOT NULL,
|
||||
`id_album` int(10) unsigned NOT NULL,
|
||||
KEY `id_album` (`id_album`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `gsm_titres`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gsm_titres`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `gsm_titres` (
|
||||
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`titre` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`artiste` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `titre` (`titre`,`artiste`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=3996 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
Reference in a new issue