# Generated by Django 2.1.5 on 2019-01-19 05:35

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import yamlfield.fields


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)),
                ('check_interval', models.DurationField(help_text='in seconds')),
                ('last_check', models.DateTimeField(blank=True, null=True)),
                ('last_id', yamlfield.fields.YAMLField(blank=True, null=True)),
                ('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)),
                ('lock', models.BooleanField(default=False)),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='feed',
            unique_together={('config_type', 'config_id')},
        ),
    ]
