Commit 8a2ced8b authored by rachbit's avatar rachbit

updated models.py attributes

parent a7e712c1
......@@ -3,11 +3,11 @@ Rachel Angelique S. Purisima
2 BSMS CS
CSCI 40-E
Lab 1 - Song Library
February 13, 2023
Lab 2 - Song Library v2
February 20, 2023
This lab activity was truthfully completed by me, Rachel Purisima.
<sgd>
Rachel Angelique S. Purisima
February 13, 2023
February 20, 2023
......@@ -6,6 +6,8 @@ from django.db import models
class Artist(models.Model):
artist_name = models.TextField()
monthly_listeners = models.IntegerField()
birth_name = models.TextField()
bio = models.CharField(max_length=700)
class Album(models.Model):
......@@ -13,6 +15,8 @@ class Album(models.Model):
artist = models.TextField()
description = models.TextField()
release_date = models.DateField()
label = models.TextField()
song_count = models.IntegerField()
class Song(models.Model):
......@@ -20,3 +24,5 @@ class Song(models.Model):
artist = models.TextField()
album = models.TextField()
song_length = models.IntegerField()
music_video = models.BooleanField(default=False)
lyrics = models.TextField()
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