You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
telegram_bots/bots/migrations/0020_pingbotcategory_pingbo...

39 lines
1.4 KiB

# 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')},
},
),
]