# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-12 19:13
from __future__ import unicode_literals

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('rules', '0002_profile'),
        ('schedule', '0002_auto_20161112_1855'),
    ]

    operations = [
        migrations.CreateModel(
            name='PeriodicTask',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=255, verbose_name='title')),
                ('description', models.TextField(blank=True, null=True, verbose_name='description')),
                ('start', models.DateTimeField()),
                ('every', models.PositiveIntegerField()),
                ('metric', models.CharField(choices=[('s', 'seconds')], max_length=255)),
                ('profiles', models.ManyToManyField(to='rules.Profile')),
                ('rules', models.ManyToManyField(to='rules.Rule')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
