# Generated by Django 5.0.1 on 2024-02-04 22:50

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Artist',
            fields=[
                ('id', models.CharField(max_length=128, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('popularity', models.SmallIntegerField(blank=True, null=True)),
                ('genres', models.JSONField()),
            ],
        ),
        migrations.CreateModel(
            name='Album',
            fields=[
                ('id', models.CharField(max_length=128, primary_key=True, serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('album_type', models.CharField(max_length=255)),
                ('total_tracks', models.PositiveSmallIntegerField(null=True)),
                ('image', models.ImageField(upload_to='albums/')),
                ('artists', models.ManyToManyField(to='playlist.artist')),
            ],
        ),
        migrations.CreateModel(
            name='Track',
            fields=[
                ('id', models.CharField(max_length=128, primary_key=True, serialize=False)),
                ('title', models.CharField(max_length=255)),
                ('explicit', models.BooleanField(default=False)),
                ('duration_ms', models.PositiveIntegerField(null=True)),
                ('popularity', models.PositiveIntegerField(null=True)),
                ('banter', models.TextField()),
                ('album', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='playlist.album')),
                ('artists', models.ManyToManyField(to='playlist.artist')),
            ],
        ),
    ]
