2019-01-19 06:52:00 +00:00
|
|
|
# Generated by Django 2.1.5 on 2019-01-19 05:35
|
2019-01-11 19:16:01 +00:00
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
2019-01-19 06:52:00 +00:00
|
|
|
import yamlfield.fields
|
2019-01-11 19:16:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='EchoFeedModuleConfig',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('message', models.TextField()),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'abstract': False,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Feed',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('title', models.CharField(max_length=32)),
|
|
|
|
('chat_id', models.CharField(max_length=33)),
|
2019-01-19 06:52:00 +00:00
|
|
|
('check_interval', models.DurationField(help_text='in seconds')),
|
2019-01-11 19:16:01 +00:00
|
|
|
('last_check', models.DateTimeField(blank=True, null=True)),
|
2019-01-19 06:52:00 +00:00
|
|
|
('last_id', yamlfield.fields.YAMLField(blank=True, null=True)),
|
2019-01-11 19:16:01 +00:00
|
|
|
('config_id', models.PositiveIntegerField()),
|
|
|
|
('config_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
|
|
|
('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
2019-01-19 06:52:00 +00:00
|
|
|
('lock', models.BooleanField(default=False)),
|
2019-01-11 19:16:01 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='feed',
|
|
|
|
unique_together={('config_type', 'config_id')},
|
|
|
|
),
|
|
|
|
]
|