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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
/*
Navicat MySQL Data Transfer
Source Server : wod
Source Server Version : 50722
Source Host : localhost:3306
Source Database : musik
Target Server Type : MYSQL
Target Server Version : 50722
File Encoding : 65001
Date: 2022-03-25 11:03:43
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for album
-- ----------------------------
DROP TABLE IF EXISTS `album`;
CREATE TABLE `album` (
`id` int(32) unsigned NOT NULL AUTO_INCREMENT,
`title` text NOT NULL,
`description` text,
`cover` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for album_music
-- ----------------------------
DROP TABLE IF EXISTS `album_music`;
CREATE TABLE `album_music` (
`id` int(32) unsigned NOT NULL AUTO_INCREMENT,
`music_id` int(32) NOT NULL,
`album_id` int(32) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for music
-- ----------------------------
DROP TABLE IF EXISTS `music`;
CREATE TABLE `music` (
`id` int(32) unsigned NOT NULL AUTO_INCREMENT,
`path` text NOT NULL,
`title` text,
`time` int(128) NOT NULL,
`cover` text,
`project` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for music_tag
-- ----------------------------
DROP TABLE IF EXISTS `music_tag`;
CREATE TABLE `music_tag` (
`id` int(32) unsigned NOT NULL AUTO_INCREMENT,
`music_id` int(32) DEFAULT NULL,
`tag_id` int(32) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for tags
-- ----------------------------
DROP TABLE IF EXISTS `tags`;
CREATE TABLE `tags` (
`id` int(32) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(128) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
|