Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Musikbibliothek MySQL-Datenbank

So etwas wäre für den Anfang gut. Es gibt eine Tabelle für Künstler, Alben (mit Schlüsseln in Künstler und Genres), Titel (in Alben verschlüsselt) und Genres an.

Table artists
----
id (primary key),
name
description
years_active
otherinfo (whatever you need)

Table albums
----
id (primary key)
artistid (foreign key to artists table)
name,
releasedate
genreid (foreign key to genres table)
picture

Table tracks
----
id (primary key)
albumid (foreign key to albums table)
name
override_artist (overrides album artist if not null)
playtime
lyric
otherstuff as needed

Table genres
----
id (primary key)
name
description