# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations
import utils.html5.models


class Migration(migrations.Migration):

    dependencies = [
        ('sites', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Feed',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('title', utils.html5.models.CharField(max_length=500)),
                ('feed_url', utils.html5.models.URLField(unique=True, max_length=255)),
                ('public_url', utils.html5.models.URLField(max_length=255)),
                ('last_update', utils.html5.models.DateTimeField(null=True, blank=True)),
                ('is_functional', utils.html5.models.BooleanField(default=True)),
                ('site', utils.html5.models.ForeignKey(to='sites.Site')),
            ],
            options={
                'ordering': ('title',),
            },
        ),
        migrations.CreateModel(
            name='FeedItem',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('title', utils.html5.models.CharField(max_length=500)),
                ('link', utils.html5.models.URLField(max_length=500)),
                ('guid', utils.html5.models.CharField(unique=True, max_length=255, db_index=True)),
                ('summary', utils.html5.models.TextField(blank=True)),
                ('date_modified', utils.html5.models.DateTimeField()),
                ('feed', utils.html5.models.ForeignKey(related_name='feed_items', to='aggregator.Feed')),
            ],
            options={
                'ordering': ('-date_modified',),
            },
        ),
    ]
