Commit ef93c247 authored by John Riz Daniel Ramos's avatar John Riz Daniel Ramos

Migrated Changes from Models under the Homepage App

parent c9191027
Pipeline #2690 canceled with stages
# Generated by Django 3.2 on 2023-02-13 14:19
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.CharField(max_length=50)),
('artist', models.CharField(max_length=50)),
('description', models.CharField(max_length=150)),
('release_date', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='Artist',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('artist_name', models.CharField(max_length=50)),
('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.CharField(max_length=50)),
('artist', models.CharField(max_length=50)),
('album', models.CharField(max_length=150)),
('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.CharField(max_length=50)
monthly_listeners = models.IntegerField()
class Album(models.Model):
album_name = models.CharField(max_length=50)
artist = models.CharField(max_length=50)
description = models.CharField(max_length=150)
release_date = models.CharField(max_length=50)
class Song(models.Model):
song_title = models.CharField(max_length=50)
artist = models.CharField(max_length=50)
album = models.CharField(max_length=150)
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