Commit 517eb034 authored by Albert's avatar Albert

Implemented tentative models

parent a57dba31
from django.db import models
# Create your models here.
class Artist(models.Model):
artist_name = models.CharField(max_length=50, unique=True)
monthly_listeners = models.IntegerField()
class Album(models.Model):
"""artist = models.ForeignKey(
Artist,
on_delete=models.cascade,
related_name=''
)""""
artist = models.CharField(max_length=100,unique=True)
album_name = models.CharField(max_length=100, unique=true)
description = models.TextField()
release_date = models.DateField()
class Song(models.Model):
song_title = models.CharField(max_length=100, unique=True)
artist = models.CharField(max_length=50)
description = models.TextField()
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