text: # Generated by Django 2.2.4 on 2020-06-15 13:33
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  
  
  class Migration(migrations.Migration):
  
      initial = True
  
      dependencies = [
          migrations.swappable_dependency(settings.AUTH_USER_MODEL),
      ]
  
      operations = [
          migrations.CreateModel(
              name='UserIp',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('ip_address', models.GenericIPAddressField()),
                  ('action', models.CharField(blank=True, choices=[('allow', 'Allow IP'), ('req_2fa', 'Require multi-factor authentication'), ('warn', 'Allow but send email'), ('deny', 'Deny IP')], max_length=12)),
                  ('last_used_at', models.DateTimeField(blank=True, null=True)),
                  ('created_at', models.DateTimeField(auto_now_add=True)),
                  ('updated_at', models.DateTimeField(auto_now=True)),
                  ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
              ],
              options={
                  'unique_together': {('ip_address', 'user')},
              },
          ),
      ]
  