created the DataFields of given elements of the Models that are needed for lab01

parent 5703afdd
Pipeline #2810 canceled with stages
from django.db import models
class Artist(models.Model):
artist_name = models.CharField(max_length = 100)
monthly_listeners = models.IntegerField(default = 0)
class Album(models.Model):
album_name = models.CharField(max_length = 100)
artist = models.CharField(max_length = 100)
description = models.CharField(max_length = 500)
release_date = models.DateField()
class Song(models.Model):
song_title = models.CharField(max_length = 100)
artist = models.CharField(max_length = 100)
album = models.CharField(max_length = 100)
song_length = models.IntegerField(default = 0)
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