Created Models

parent e96cdc0e
from django.db import models from django.db import models
from django.urls import reverse
# Create your models here. # Create your models here.
class Artist(models.Model):
artist_name = models.CharField(max_length=50)
birth_name = models.TextField()
monthly_listeners = models.IntegerField()
bio = models.CharField(max_length=700)
class Album(models.Model):
album_name = models.CharField(max_length=50)
artist = models.CharField(max_length=50)
description = models.TextField()
release_date = models.DateTimeField()
label = models.TextField()
song_count = models.IntegerField()
class Song(models.Model):
song_title = models.CharField(max_length=50)
song_length = models.IntegerField()
lyrics = models.TextField()
music_video = models.BooleanField()
artist = models.CharField(max_length=50)
album = models.CharField(max_length=50)
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