# Generated by Django 1.11.17 on 2019-02-05 10:26

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


class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('base', '0010_loggingparameters_trace_emails'),
    ]

    operations = [
        migrations.CreateModel(
            name='AvailabilityParameters',
            fields=[
                (
                    'id',
                    models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
                ),
                ('resource_pk', models.PositiveIntegerField()),
                (
                    'run_check',
                    models.BooleanField(
                        default=True,
                        verbose_name='Run regular availability checks',
                        help_text='Run an availability check every 5 minutes',
                    ),
                ),
                (
                    'resource_type',
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'
                    ),
                ),
            ],
        ),
        migrations.AlterUniqueTogether(
            name='availabilityparameters',
            unique_together={('resource_type', 'resource_pk')},
        ),
    ]
