-- MySQL dump 10.13 Distrib 5.6.26, for Linux (x86_64) -- -- Host: localhost Database: hathor -- ------------------------------------------------------ -- Server version 5.6.26-log /*!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 */; -- -- Current Database: `hathor` -- CREATE DATABASE /*!32312 IF NOT EXISTS*/ `hathor` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `hathor`; -- -- Table structure for table `tracks` -- DROP TABLE IF EXISTS `tracks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tracks` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id of the song in the database', `tid` varchar(64) NOT NULL COMMENT 'song id md5 hash', `uri` varchar(1000) NOT NULL COMMENT 'full path of file', `arid` varchar(64) NOT NULL COMMENT 'corresponding artist id from artist table in md5 hash', `artist` varchar(255) NOT NULL COMMENT 'artist name', `aid` varchar(64) NOT NULL COMMENT 'corresponding album id from album table in md5 hash', `album` varchar(255) NOT NULL COMMENT 'album title', `title` varchar(255) NOT NULL COMMENT 'title of song', `track` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT 'track number of song', `genre` varchar(45) DEFAULT NULL COMMENT 'genre of song', `year` tinyint(4) NOT NULL DEFAULT '0' COMMENT 'year of song', `label` varchar(255) DEFAULT NULL COMMENT 'music label of song e.g. Columbia Records', `lyrics` blob COMMENT 'lyrics if any', `bitrate` mediumint(6) unsigned DEFAULT '0' COMMENT 'bitrate of song', `sample` mediumint(6) unsigned DEFAULT '0' COMMENT 'sample rate of song', `channels` smallint(2) unsigned DEFAULT '0' COMMENT 'channels of song i.e stereo = 2, mono = 1', `length` int(10) unsigned DEFAULT '0' COMMENT 'length of song', `minutes` tinyint(4) unsigned DEFAULT '0' COMMENT 'total length of song in minutes and seconds', `seconds` tinyint(4) unsigned DEFAULT '0' COMMENT 'seconds of song', `pls` blob COMMENT 'playlists this song is associated with', `ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'timestamp of last update of song', PRIMARY KEY (`id`), UNIQUE KEY `tid_UNIQUE` (`tid`), KEY `tid_idx` (`tid`), KEY `uri_idx` (`uri`(255)), KEY `arid_idx` (`arid`), KEY `aid_idx` (`aid`), KEY `track_idx` (`track`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2015-08-17 7:55:50