# Generated by Django 3.2.13 on 2022-06-15 18:30

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


class Migration(migrations.Migration):

    dependencies = [
        ('gamechanger', '0005_alter_preferences_options'),
    ]

    operations = [
        migrations.CreateModel(
            name='Team',
            fields=[
                ('id', models.CharField(max_length=30, primary_key=True, serialize=False)),
                ('season_id', models.CharField(max_length=30)),
                ('name_slug', models.CharField(max_length=30)),
                ('season_slug', models.CharField(max_length=30)),
            ],
        ),
        migrations.RemoveField(
            model_name='preferences',
            name='season_id',
        ),
        migrations.RemoveField(
            model_name='preferences',
            name='team_id',
        ),
        migrations.AddField(
            model_name='preferences',
            name='managed_team',
            field=models.OneToOneField(default=1, on_delete=django.db.models.deletion.CASCADE, to='gamechanger.team'),
            preserve_default=False,
        ),
    ]
