Mysql
 sql >> Database >  >> RDS >> Mysql

Database MySQL della libreria musicale

Qualcosa del genere sarebbe buono per cominciare. Specifica una tabella per artisti, album (con chiavi in ​​artisti e generi), brani (inseriti in album) e generi.

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