# Generated by Django 2.2.8 on 2019-12-21 01:56

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


class Migration(migrations.Migration):
    dependencies = [
        ("pretalx_com", "0012_djcrmorganiser"),
    ]

    operations = [
        migrations.CreateModel(
            name="PretalxInstance",
            fields=[
                (
                    "id",
                    models.CharField(
                        max_length=32, primary_key=True, serialize=False, unique=True
                    ),
                ),
                ("first_check", models.DateTimeField(auto_now_add=True)),
                ("last_check", models.DateTimeField()),
            ],
        ),
        migrations.CreateModel(
            name="PretalxInstanceData",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True, primary_key=True, serialize=False
                    ),
                ),
                ("datetime", models.DateField(auto_now_add=True)),
                ("pretalx_version", models.CharField(max_length=15)),
                ("data", models.TextField()),
                (
                    "instance",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="data",
                        to="pretalx_com.PretalxInstance",
                    ),
                ),
            ],
        ),
    ]
