54 lines
2.0 KiB
Python
54 lines
2.0 KiB
Python
# Generated by Django 3.0.8 on 2020-07-09 13:49
|
|
|
|
import django.core.validators
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('bot', '0006_auto_20200709_1339'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RenameField(
|
|
model_name='grouppreferences',
|
|
old_name='use_combot_anti_spam',
|
|
new_name='combot_anti_spam_use',
|
|
),
|
|
migrations.AddField(
|
|
model_name='grouppreferences',
|
|
name='captcha_attempts',
|
|
field=models.IntegerField(blank=True, default=5, validators=[django.core.validators.MinValueValidator(2), django.core.validators.MaxValueValidator(20)]),
|
|
),
|
|
migrations.AddField(
|
|
model_name='grouppreferences',
|
|
name='combot_anti_spam_leave_mess',
|
|
field=models.BooleanField(blank=True, default=False),
|
|
),
|
|
migrations.AddField(
|
|
model_name='grouppreferences',
|
|
name='combot_anti_spam_notification',
|
|
field=models.TextField(blank=True, default=''),
|
|
),
|
|
migrations.CreateModel(
|
|
name='PendingCaptchaUser',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
|
('modified', models.DateTimeField(auto_now=True)),
|
|
('uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
|
|
('bot_token', models.CharField(max_length=255)),
|
|
('lifetime', models.IntegerField()),
|
|
('attempts_left', models.IntegerField()),
|
|
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='bot.TelegramGroup')),
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='bot.TelegramUser')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
),
|
|
]
|