# Generated by Django 3.1.1 on 2020-09-26 14:40

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('challenges', '0003_auto_20200926_0331'),
    ]

    operations = [
        migrations.CreateModel(
            name='Team',
            fields=[
                ('id', models.CharField(default=uuid.uuid4, editable=False, help_text='Team id', max_length=6, primary_key=True, serialize=False, unique=True)),
                ('name', models.TextField(help_text='Name of the team', max_length=100)),
                ('created_at', models.DateTimeField(auto_now=True)),
                ('winner', models.BooleanField()),
                ('challenge', models.ForeignKey(help_text='Code Jam', on_delete=django.db.models.deletion.CASCADE, to='challenges.challenge')),
                ('members', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
