# Generated by Django 3.1.1 on 2020-10-31 17:18

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Album',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='Album title ')),
            ],
        ),
        migrations.CreateModel(
            name='Artist',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, verbose_name="Artist's name")),
            ],
        ),
        migrations.CreateModel(
            name='Track',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=100, verbose_name='Track name')),
                ('track_len', models.DurationField(verbose_name='Track length')),
                ('rating', models.IntegerField(verbose_name='User rating')),
                ('album_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='MusicLib.album')),
            ],
        ),
        migrations.AddField(
            model_name='album',
            name='Artist_id',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='MusicLib.artist'),
        ),
    ]
