48 lines
1.8 KiB
Python
48 lines
1.8 KiB
Python
|
# Generated by Django 2.1.5 on 2019-01-10 17:20
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
import picklefield.fields
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
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()),
|
||
|
('last_check', models.DateTimeField(blank=True, null=True)),
|
||
|
('last_id', picklefield.fields.PickledObjectField(blank=True, editable=False, 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)),
|
||
|
],
|
||
|
),
|
||
|
migrations.AlterUniqueTogether(
|
||
|
name='feed',
|
||
|
unique_together={('config_type', 'config_id')},
|
||
|
),
|
||
|
]
|