29 lines
951 B
Python
29 lines
951 B
Python
# Generated by Django 2.1.4 on 2018-12-18 12:52
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('passbook_audit', '0005_auditentry_created'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='LoginAttempt',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created', models.DateField(auto_now_add=True)),
|
|
('last_updated', models.DateTimeField(auto_now=True)),
|
|
('target_uid', models.CharField(max_length=254)),
|
|
('request_ip', models.GenericIPAddressField()),
|
|
('attempts', models.IntegerField(default=1)),
|
|
],
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='loginattempt',
|
|
unique_together={('target_uid', 'request_ip', 'created')},
|
|
),
|
|
]
|