<gh_stars>0
# Generated by Django 2.2.1 on 2019-05-05 15:04

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0002_auto_20190504_2344'),
    ]

    operations = [
        migrations.AddField(
            model_name='team',
            name='confirmed',
            field=models.DateTimeField(blank=True, null=True, verbose_name='Confirmed'),
        ),
        migrations.AddField(
            model_name='team',
            name='created',
            field=models.DateTimeField(blank=True, null=True, verbose_name='Created'),
        ),
        migrations.AddField(
            model_name='team',
            name='load_status',
            field=models.CharField(choices=[('c', 'Confirmed'), ('u', 'Unconfirmed')], default='c', max_length=5, verbose_name='Status'),
        ),
        migrations.AlterField(
            model_name='leagueloadsource',
            name='league',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='object', to='core.League', verbose_name='League'),
        ),
        migrations.AlterField(
            model_name='team',
            name='load_source',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='core_team_load_source', to='core.LoadSource', verbose_name='Source'),
        ),
        migrations.CreateModel(
            name='TeamLoadSource',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('slug', models.SlugField()),
                ('name', models.CharField(blank=True, max_length=255, null=True, verbose_name='Object name')),
                ('status', models.CharField(choices=[('a', 'Active'), ('d', 'Deleted')], default='a', max_length=5, verbose_name='Status')),
                ('created', models.DateTimeField(blank=True, null=True, verbose_name='Created')),
                ('confirmed', models.DateTimeField(blank=True, null=True, verbose_name='Confirmed')),
                ('selected', models.DateTimeField(blank=True, null=True, verbose_name='Selected')),
                ('country', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='core_teamloadsource_country', to='core.Country', verbose_name='Country')),
                ('load_source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='core_teamloadsource_load_source', to='core.LoadSource', verbose_name='Source')),
                ('sport', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='core_teamloadsource_sport', to='core.Sport', verbose_name='Sport')),
                ('team', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='object', to='core.Team', verbose_name='Team')),
            ],
        ),
        migrations.AddConstraint(
            model_name='teamloadsource',
            constraint=models.UniqueConstraint(fields=('sport', 'country', 'slug', 'load_source'), name='unique_team_load_source'),
        ),
    ]

# Generated by Django 2.2.1 on 2019-05-05 15:04

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


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0002_auto_20190504_2344'),
    ]

    operations = [
        migrations.AddField(
            model_name='team',
            name='confirmed',
            field=models.DateTimeField(blank=True, null=True, verbose_name='Confirmed'),
        ),
        migrations.AddField(
            model_name='team',
            name='created',
            field=models.DateTimeField(blank=True, null=True, verbose_name='Created'),
        ),
        migrations.AddField(
            model_name='team',
            name='load_status',
            field=models.CharField(choices=[('c', 'Confirmed'), ('u', 'Unconfirmed')], default='c', max_length=5, verbose_name='Status'),
        ),
        migrations.AlterField(
            model_name='leagueloadsource',
            name='league',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='object', to='core.League', verbose_name='League'),
        ),
        migrations.AlterField(
            model_name='team',
            name='load_source',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='core_team_load_source', to='core.LoadSource', verbose_name='Source'),
        ),
        migrations.CreateModel(
            name='TeamLoadSource',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('slug', models.SlugField()),
                ('name', models.CharField(blank=True, max_length=255, null=True, verbose_name='Object name')),
                ('status', models.CharField(choices=[('a', 'Active'), ('d', 'Deleted')], default='a', max_length=5, verbose_name='Status')),
                ('created', models.DateTimeField(blank=True, null=True, verbose_name='Created')),
                ('confirmed', models.DateTimeField(blank=True, null=True, verbose_name='Confirmed')),
                ('selected', models.DateTimeField(blank=True, null=True, verbose_name='Selected')),
                ('country', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='core_teamloadsource_country', to='core.Country', verbose_name='Country')),
                ('load_source', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='core_teamloadsource_load_source', to='core.LoadSource', verbose_name='Source')),
                ('sport', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='core_teamloadsource_sport', to='core.Sport', verbose_name='Sport')),
                ('team', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='object', to='core.Team', verbose_name='Team')),
            ],
        ),
        migrations.AddConstraint(
            model_name='teamloadsource',
            constraint=models.UniqueConstraint(fields=('sport', 'country', 'slug', 'load_source'), name='unique_team_load_source'),
        ),
    ]
# Generated by Django 2.2.1 on 2019-05-05 15:04