# Generated by Django 3.0.3 on 2020-04-17 18:30 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('projects', '0001_initial'), ('users', '0002_auto_20200225_0247'), ] operations = [ migrations.AddField( model_name='user', name='created', field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now), preserve_default=False, ), migrations.AddField( model_name='user', name='subscribe_by_default', field=models.BooleanField(default=True, help_text='Subscribe to project notifications by default. Overrides project settings'), ), migrations.CreateModel( name='UserProjectAlerts', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.PositiveSmallIntegerField(choices=[(0, 'off'), (1, 'on')])), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.Project')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'unique_together': {('user', 'project')}, }, ), ]