# Generated by Django 2.0 on 2018-01-24 03:03 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('events', '0005_auto_20180108_2221'), ] operations = [ migrations.CreateModel( name='Attendee', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('role', models.SmallIntegerField(choices=[(0, 'Normal'), (1, 'Crew'), (2, 'Host')], db_index=True, default=0, verbose_name='Role')), ('status', models.SmallIntegerField(choices=[(-1, 'No'), (0, 'Maybe'), (1, 'Yes')], db_index=True, verbose_name='Attending?')), ('joined_date', models.DateTimeField(default=datetime.datetime.now)), ('event', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Event')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.UserProfile')), ], ), migrations.AlterField( model_name='team', name='name', field=models.CharField(max_length=256, verbose_name='Team Name'), ), migrations.AddField( model_name='event', name='attendees', field=models.ManyToManyField(blank=True, related_name='attending', through='events.Attendee', to='events.UserProfile'), ), ]