add migrations

This commit is contained in:
bakatrouble 2020-02-12 20:19:16 +03:00
parent 54d74e526f
commit db530d98fd

View File

@ -0,0 +1,38 @@
# Generated by Django 3.0rc1 on 2020-02-12 17:16
from django.db import migrations, models
import jsonfield.encoder
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [
('bots', '0019_remove_overlaybotmoduleconfig_image'),
]
operations = [
migrations.CreateModel(
name='PingBotModuleConfig',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('no_users_text', models.TextField(default='No users found')),
('message_template', models.TextField(default='{mentions}')),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='PingBotCategory',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('chat_id', models.BigIntegerField(db_index=True)),
('cat_name', models.CharField(db_index=True, max_length=64)),
('user_ids', jsonfield.fields.JSONField(default='[]', dump_kwargs={'cls': jsonfield.encoder.JSONEncoder, 'separators': (',', ':')}, load_kwargs={})),
],
options={
'unique_together': {('chat_id', 'cat_name')},
},
),
]