Commit 20465f43 authored by Nicholo Pardines's avatar Nicholo Pardines

Added artist, album, and song models to the homepage app

parent ae27065d
from django.db import models from django.db import models
# Create your models here. # Create your models here.
# *Artist
# * artist_name
# * monthly_listeners
# * Album
# * album_name
# * artist
# * description
# * release_date
# * Song
# * song_title
# * artist
# * album
# * song_length
class Artist(models.Model):
artist_name = models.CharField()
monthly_listeners = models.IntegerField()
class Album(models.Model):
album_name = models.CharField()
artist = models.ForeignKey(Artist)
description = models.CharField()
release_date = models.IntegerField()
class Song(models.Model):
song_title = models.CharField()
artist = models.ForeignKey(Artist)
album = models.ForeignKey(Album)
song_length = models.IntegerField()
\ No newline at end of file
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