Commit 2192fcd5 authored by Migs Atienza's avatar Migs Atienza

Updated Models + README.txt

parent a208afbd
......@@ -2,9 +2,9 @@ Miguel Luis Antonio Atienza
210523
CSCI 40 - F
Lab 1: Song Library
February 13, 2023
Lab 2: Song Library v2
February 21, 2023
This lab was truthfully made by me, and only me, Migs Atienza
<sgd> Miguel Luis Antonio Atienza, February 13, 2023
\ No newline at end of file
<sgd> Miguel Luis Antonio Atienza, February 21, 2023
\ No newline at end of file
......@@ -4,6 +4,8 @@ from django.db import models
class Artist(models.Model):
artist_name = models.CharField(max_length=50)
monthly_listeners = models.IntegerField()
birth_name = models.CharField(max_length=50)
bio = models.CharField(max_length=700)
class Album(models.Model):
......@@ -11,6 +13,8 @@ class Album(models.Model):
artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
description = models.CharField(max_length=1000)
release_date = models.DateField()
label = models.CharField(max_length=50)
song_count = models.IntegerField()
class Song(models.Model):
......@@ -18,4 +22,6 @@ class Song(models.Model):
artist = models.ForeignKey(Artist, on_delete=models.CASCADE)
album = models.ForeignKey(Album, on_delete=models.CASCADE)
song_length = models.TimeField()
music_video = models.BooleanField()
lyrics = models.CharField(max_length=2500)
# 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