Commit 521d9f85 authored by justin's avatar justin

Added new fields to Artist, Album, Song models

parent bff26950
...@@ -3,6 +3,11 @@ from django.db import models ...@@ -3,6 +3,11 @@ from django.db import models
class Artist(models.Model): class Artist(models.Model):
artist_name = models.CharField(max_length=200) artist_name = models.CharField(max_length=200)
birth_name = models.CharField(max_length=200)
bio = models.CharField(
max_length=700,
default="No information available.",
)
monthly_listeners = models.IntegerField(default=0) monthly_listeners = models.IntegerField(default=0)
...@@ -17,6 +22,8 @@ class Album(models.Model): ...@@ -17,6 +22,8 @@ class Album(models.Model):
auto_now=False, auto_now=False,
auto_now_add=False, auto_now_add=False,
) )
label = models.CharField(max_length=250)
song_count = models.IntegerField()
class Song(models.Model): class Song(models.Model):
...@@ -30,3 +37,5 @@ class Song(models.Model): ...@@ -30,3 +37,5 @@ class Song(models.Model):
on_delete=models.CASCADE, on_delete=models.CASCADE,
) )
song_length = models.PositiveIntegerField() song_length = models.PositiveIntegerField()
music_video = models.BooleanField()
lyrics = models.TextField(default="Unknown lyrics.")
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