forked from hsyecheng/Audio-Fingerprinting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fingerprint.sql
51 lines (43 loc) · 1.78 KB
/
Fingerprint.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
-- MySQL Script generated by MySQL Workbench
-- 06/22/15 09:41:08
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema musiclibary
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema musiclibary
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `musiclibary` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ;
USE `musiclibary` ;
-- -----------------------------------------------------
-- Table `musiclibary`.`MusicInfo`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `musiclibary`.`MusicInfo` (
`idMusicInfo` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`Title` VARCHAR(200) NULL,
`Artist` VARCHAR(200) NULL,
`Album` VARCHAR(200) NULL,
`FileDir` VARCHAR(400) NULL,
`InfoDir` VARCHAR(400) NULL,
PRIMARY KEY (`idMusicInfo`, `Title`, `Album`, `Artist`),
UNIQUE INDEX `idMusicInfo_UNIQUE` (`idMusicInfo` ASC))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `musiclibary`.`HashTable`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `musiclibary`.`HashTable` (
`idHashTable` INT NOT NULL AUTO_INCREMENT,
`Hash` INT NOT NULL,
`ID` INT NOT NULL,
`Time` INT NOT NULL,
PRIMARY KEY (`idHashTable`),
INDEX `Hash` (`Hash` ASC) KEY_BLOCK_SIZE=1)
ENGINE = InnoDB
ROW_FORMAT = FIXED;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;