class Migration(migrations.Migration): dependencies = [ ('api', '0017_auto_20181029_1921'), ] operations = [ migrations.CreateModel( name='MessageDeletionContext', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('creation', models.DateTimeField( help_text='When this deletion took place.')), ('actor', models.ForeignKey( help_text= 'The original actor causing this deletion. Could be the author of a manual clean command invocation, the bot when executing automatic actions, or nothing to indicate that the bulk deletion was not issued by us.', null=True, on_delete=django.db.models.deletion.CASCADE, to='api.User')), ], bases=(pydis_site.apps.api.models.ModelReprMixin, models.Model), ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0019_user_in_guild'), ] operations = [ migrations.CreateModel( name='Infraction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('inserted_at', models.DateTimeField(auto_now_add=True, help_text='The date and time of the creation of this infraction.')), ('expires_at', models.DateTimeField(help_text="The date and time of the expiration of this infraction. Null if the infraction is permanent or it can't expire.", null=True)), ('active', models.BooleanField(default=True, help_text='Whether the infraction is still active.')), ('type', models.CharField(choices=[('note', 'Note'), ('warning', 'Warning'), ('mute', 'Mute'), ('ban', 'Ban'), ('kick', 'Kick'), ('superstar', 'Superstar')], help_text='The type of the infraction.', max_length=9)), ('reason', models.TextField(help_text='The reason for the infraction.')), ('hidden', models.BooleanField(default=False, help_text='Whether the infraction is a shadow infraction.')), ('actor', models.ForeignKey(help_text='The user which applied the infraction.', on_delete=django.db.models.deletion.CASCADE, related_name='infractions_given', to='api.User')), ('user', models.ForeignKey(help_text='The user to which the infraction was applied.', on_delete=django.db.models.deletion.CASCADE, related_name='infractions_received', to='api.User')), ], bases=(pydis_site.apps.api.models.ModelReprMixin, models.Model), ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0029_add_infraction_type_watch'), ] operations = [ migrations.CreateModel( name='Reminder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('active', models.BooleanField( default=True, help_text= 'Whether this reminder is still active. If not, it has been sent out to the user.' )), ('channel_id', models.BigIntegerField( help_text= 'The channel ID that this message was sent in, taken from Discord.', validators=[ django.core.validators.MinValueValidator( limit_value=0, message='Channel IDs cannot be negative.') ])), ('content', models.CharField( help_text= 'The content that the user wants to be reminded of.', max_length=1500)), ('expiration', models.DateTimeField( help_text='When this reminder should be sent.')), ('author', models.ForeignKey(help_text='The creator of this reminder.', on_delete=django.db.models.deletion.CASCADE, to='api.User')), ], bases=(pydis_site.apps.api.models.mixins.ModelReprMixin, models.Model), ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0030_reminder'), ] operations = [ migrations.CreateModel( name='Nomination', fields=[ ('active', models.BooleanField( default=True, help_text='Whether this nomination is still relevant.')), ('reason', models.TextField(help_text='Why this user was nominated.')), ('user', models.OneToOneField( help_text='The nominated user.', on_delete=django.db.models.deletion.CASCADE, primary_key=True, related_name='nomination', serialize=False, to='api.User')), ('inserted_at', models.DateTimeField( auto_now_add=True, help_text='The creation date of this nomination.')), ('author', models.ForeignKey( help_text='The staff member that nominated this user.', on_delete=django.db.models.deletion.CASCADE, related_name='nomination_set', to='api.User')), ], bases=(pydis_site.apps.api.models.mixins.ModelReprMixin, models.Model), ), ]