telegram_bots/bots/migrations/0004_feedbackbotmoduleconfig_feedbackchat_feedbackmessage.py

41 lines
1.4 KiB
Python
Raw Normal View History

2021-03-20 12:21:27 +00:00
# Generated by Django 3.1.7 on 2021-03-20 12:21
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('bots', '0003_robotbotmoduleconfig'),
]
operations = [
migrations.CreateModel(
name='FeedbackBotModuleConfig',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('forward_chat_id', models.BigIntegerField()),
],
options={
'abstract': False,
},
),
migrations.CreateModel(
name='FeedbackChat',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('chat_id', models.BigIntegerField()),
],
),
migrations.CreateModel(
name='FeedbackMessage',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('forwarded_chat_id', models.BigIntegerField(db_index=True)),
('forwarded_message_id', models.BigIntegerField(db_index=True)),
('chat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='messages', to='bots.feedbackchat')),
],
),
]