# Generated by Django 2.0.2 on 2018-04-15 10:29

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import storage.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Invite',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('permissions', models.CharField(choices=[('4', 'owner'), ('3', 'master'), ('2', 'member'), ('1', 'guest')], default='2', max_length=1)),
            ],
        ),
        migrations.CreateModel(
            name='League',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=128, unique=True)),
                ('slug', models.SlugField(unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Membership',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('permissions', models.CharField(choices=[('4', 'owner'), ('3', 'master'), ('2', 'member'), ('1', 'guest')], default='2', max_length=1)),
                ('joined_at', models.DateField(auto_now_add=True)),
                ('league', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='storage.League')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Message',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('message', models.TextField()),
                ('sent_at', models.DateTimeField(auto_now=True)),
                ('league', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to='storage.League')),
                ('sender', models.ForeignKey(default=1, on_delete=models.SET(storage.models.sentient_user), to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='league',
            name='members',
            field=models.ManyToManyField(related_name='member_of', through='storage.Membership', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='invite',
            name='league',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='storage.League'),
        ),
        migrations.AddField(
            model_name='invite',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterUniqueTogether(
            name='invite',
            unique_together={('user', 'league')},
        ),
    ]

a14a374ad664beb02237d604bdb7c4109fb5fc27
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Invite', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('permissions', models.CharField(
        choices=[('4', 'owner'), ('3', 'master'), ('2', 'member'), ('1',
        'guest')], default='2', max_length=1))]), migrations.CreateModel(
        name='League', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('name',
        models.CharField(max_length=128, unique=True)), ('slug', models.
        SlugField(unique=True))]), migrations.CreateModel(name='Membership',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('permissions', models.
        CharField(choices=[('4', 'owner'), ('3', 'master'), ('2', 'member'),
        ('1', 'guest')], default='2', max_length=1)), ('joined_at', models.
        DateField(auto_now_add=True)), ('league', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to='storage.League')),
        ('user', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to=settings.AUTH_USER_MODEL))]), migrations.CreateModel(
        name='Message', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('message',
        models.TextField()), ('sent_at', models.DateTimeField(auto_now=True
        )), ('league', models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, related_name='messages', to='storage.League')), (
        'sender', models.ForeignKey(default=1, on_delete=models.SET(storage
        .models.sentient_user), to=settings.AUTH_USER_MODEL))]), migrations
        .AddField(model_name='league', name='members', field=models.
        ManyToManyField(related_name='member_of', through=
        'storage.Membership', to=settings.AUTH_USER_MODEL)), migrations.
        AddField(model_name='invite', name='league', field=models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'storage.League')), migrations.AddField(model_name='invite', name=
        'user', field=models.ForeignKey(on_delete=django.db.models.deletion
        .CASCADE, to=settings.AUTH_USER_MODEL)), migrations.
        AlterUniqueTogether(name='invite', unique_together={('user',
        'league')})]

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import storage.models


class Migration(migrations.Migration):
    initial = True
    dependencies = [migrations.swappable_dependency(settings.AUTH_USER_MODEL)]
    operations = [migrations.CreateModel(name='Invite', fields=[('id',
        models.AutoField(auto_created=True, primary_key=True, serialize=
        False, verbose_name='ID')), ('permissions', models.CharField(
        choices=[('4', 'owner'), ('3', 'master'), ('2', 'member'), ('1',
        'guest')], default='2', max_length=1))]), migrations.CreateModel(
        name='League', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('name',
        models.CharField(max_length=128, unique=True)), ('slug', models.
        SlugField(unique=True))]), migrations.CreateModel(name='Membership',
        fields=[('id', models.AutoField(auto_created=True, primary_key=True,
        serialize=False, verbose_name='ID')), ('permissions', models.
        CharField(choices=[('4', 'owner'), ('3', 'master'), ('2', 'member'),
        ('1', 'guest')], default='2', max_length=1)), ('joined_at', models.
        DateField(auto_now_add=True)), ('league', models.ForeignKey(
        on_delete=django.db.models.deletion.CASCADE, to='storage.League')),
        ('user', models.ForeignKey(on_delete=django.db.models.deletion.
        CASCADE, to=settings.AUTH_USER_MODEL))]), migrations.CreateModel(
        name='Message', fields=[('id', models.AutoField(auto_created=True,
        primary_key=True, serialize=False, verbose_name='ID')), ('message',
        models.TextField()), ('sent_at', models.DateTimeField(auto_now=True
        )), ('league', models.ForeignKey(on_delete=django.db.models.
        deletion.CASCADE, related_name='messages', to='storage.League')), (
        'sender', models.ForeignKey(default=1, on_delete=models.SET(storage
        .models.sentient_user), to=settings.AUTH_USER_MODEL))]), migrations
        .AddField(model_name='league', name='members', field=models.
        ManyToManyField(related_name='member_of', through=
        'storage.Membership', to=settings.AUTH_USER_MODEL)), migrations.
        AddField(model_name='invite', name='league', field=models.
        ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=
        'storage.League')), migrations.AddField(model_name='invite', name=
        'user', field=models.ForeignKey(on_delete=django.db.models.deletion
        .CASCADE, to=settings.AUTH_USER_MODEL)), migrations.
        AlterUniqueTogether(name='invite', unique_together={('user',
        'league')})]

# Generated by Django 2.0.2 on 2018-04-15 10:29

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import storage.models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Invite',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('permissions', models.CharField(choices=[('4', 'owner'), ('3', 'master'), ('2', 'member'), ('1', 'guest')], default='2', max_length=1)),
            ],
        ),
        migrations.CreateModel(
            name='League',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=128, unique=True)),
                ('slug', models.SlugField(unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Membership',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('permissions', models.CharField(choices=[('4', 'owner'), ('3', 'master'), ('2', 'member'), ('1', 'guest')], default='2', max_length=1)),
                ('joined_at', models.DateField(auto_now_add=True)),
                ('league', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='storage.League')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Message',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('message', models.TextField()),
                ('sent_at', models.DateTimeField(auto_now=True)),
                ('league', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to='storage.League')),
                ('sender', models.ForeignKey(default=1, on_delete=models.SET(storage.models.sentient_user), to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='league',
            name='members',
            field=models.ManyToManyField(related_name='member_of', through='storage.Membership', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='invite',
            name='league',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='storage.League'),
        ),
        migrations.AddField(
            model_name='invite',
            name='user',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterUniqueTogether(
            name='invite',
            unique_together={('user', 'league')},
        ),
    ]
