# Generated by Django 2.0 on 2018-01-08 22:21 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('events', '0004_auto_20180103_2212'), ] operations = [ migrations.CreateModel( name='Member', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('role', models.SmallIntegerField(choices=[(0, 'Normal'), (1, 'Moderator'), (2, 'Administrator')], db_index=True, default=0, verbose_name='Member Role')), ('joined_date', models.DateTimeField(default=datetime.datetime.now)), ('team', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.Team')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.UserProfile')), ], ), migrations.AddField( model_name='team', name='members', field=models.ManyToManyField(blank=True, related_name='memberships', through='events.Member', to='events.UserProfile'), ), ]