Commit 2340c5f9 authored by Gabriel Geraldo's avatar Gabriel Geraldo

added and migrated Artist, Album, and Song models

parent 923ec46d
Pipeline #2627 canceled with stages
# Generated by Django 3.2 on 2023-02-13 08:13
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Album',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('album_name', models.TextField()),
('artist', models.TextField()),
('description', models.TextField()),
('release_date', models.DateField()),
],
),
migrations.CreateModel(
name='Artist',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('artist_name', models.TextField()),
('monthly_listeners', models.IntegerField()),
],
),
migrations.CreateModel(
name='Song',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('song_title', models.TextField()),
('artist', models.TextField()),
('album', models.TextField()),
('song_length', models.IntegerField()),
],
),
]
from django.db import models from django.db import models
# Create your models here. # Create your models here.
class Artist(models.Model):
artist_name = models.TextField()
monthly_listeners = models.IntegerField()
class Album(models.Model):
album_name = models.TextField()
artist = models.TextField()
description = models.TextField()
release_date = models.DateField()
class Song(models.Model):
song_title = models.TextField()
artist = models.TextField()
album = models.TextField()
song_length = models.IntegerField()
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