Commit ea13e052 authored by Brendan Fausto's avatar Brendan Fausto

Updated models with new attributes

parent 328f91b6
......@@ -4,6 +4,8 @@ class Artist(models.Model): #java eq: class IndexCard extends models.Model
artist_name = models.CharField(max_length=255)
monthly_listeners = models.IntegerField()
birth_name = models.CharField(max_length=255)
bio = models.CharField(max_length=700)
class Album(models.Model):
......@@ -12,6 +14,8 @@ class Album(models.Model):
artist = models.ForeignKey('Artist', on_delete=models.PROTECT)
description = models.TextField()
release_date = models.DateField()
label = models.CharField(max_length=255)
song_count = models.IntegerField()
class Song(models.Model):
......@@ -20,4 +24,5 @@ class Song(models.Model):
artist = models.ForeignKey('Artist', on_delete=models.PROTECT)
album = models.ForeignKey('Album', on_delete=models.PROTECT)
song_length = models.TimeField()
\ No newline at end of file
music_video = models.BooleanField()
lyrics = models.TextField()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment