Commit c6d22020 authored by Jayson Lim's avatar Jayson Lim

Modified the three class models, added the appropriate attritbutes needed

parent 35b8addb
...@@ -3,17 +3,23 @@ from django.db import models ...@@ -3,17 +3,23 @@ from django.db import models
class Artist(models.Model): class Artist(models.Model):
artist_name = models.CharField(max_length=255) artist_name = models.CharField(max_length=255)
monthly_listeners = models.IntegerField() monthly_listeners = models.IntegerField()
birth_name = models.CharField(max_length=255)
bio = models.TextField(null=True, blank=True)
class Album(models.Model): class Album(models.Model):
album_name = models.CharField(max_length=255) album_name = models.CharField(max_length=255)
artist = models.CharField(max_length=255) artist = models.CharField(max_length=255)
description = models.CharField(max_length=255) description = models.CharField(max_length=255)
release_date = models.CharField(max_length=255) release_date = models.CharField(max_length=255)
label = models.CharField(max_length=255)
song_count = models.IntegerField()
class Song(models.Model): class Song(models.Model):
song_title = models.CharField(max_length=255) song_title = models.CharField(max_length=255)
artist = models.CharField(max_length=255) artist = models.CharField(max_length=255)
album = models.CharField(max_length=255) album = models.CharField(max_length=255)
song_length = models.IntegerField() song_length = models.IntegerField()
music_video = models.BooleanField(default=True)
lyrics = models.TextField(null=True, blank=True)
# Create your models here. # Create your models here.
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