Commit 786dbb8a authored by Alliyah Marcelo's avatar Alliyah Marcelo

Added new attributes to Artist, Album, and Song classes.

parent 02208929
{
"python.pythonPath": "myenv\\Scripts\\python.exe"
}
\ No newline at end of file
...@@ -4,6 +4,8 @@ from django.db import models ...@@ -4,6 +4,8 @@ from django.db import models
class Artist(models.Model): class Artist(models.Model):
artist_name = models.CharField(max_length=50) artist_name = models.CharField(max_length=50)
monthly_listeners = models.IntegerField() monthly_listeners = models.IntegerField()
birth_name = models.CharField(max_length=50)
bio = models.CharField(max_length=700)
class Album(models.Model): class Album(models.Model):
...@@ -15,6 +17,8 @@ class Album(models.Model): ...@@ -15,6 +17,8 @@ class Album(models.Model):
) )
description = models.CharField(max_length=1000) description = models.CharField(max_length=1000)
release_date = models.CharField(max_length=50) release_date = models.CharField(max_length=50)
label = models.CharField(max_length=50)
song_count = models.IntegerField()
class Song(models.Model): class Song(models.Model):
...@@ -30,3 +34,5 @@ class Song(models.Model): ...@@ -30,3 +34,5 @@ class Song(models.Model):
related_name='song_album' related_name='song_album'
) )
song_length = models.IntegerField() song_length = models.IntegerField()
music_video = models.BooleanFiled()
lyrics = models.CharField(max_length=8000)
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