# Generated by Django 2.0.8 on 2018-08-14 20:13

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


class Migration(migrations.Migration):
    dependencies = [("pretalx_com", "0002_auto_20180731_0413")]

    operations = [
        migrations.CreateModel(
            name="EventComInvoice",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("amount", models.DecimalField(decimal_places=2, max_digits=7)),
                ("number", models.CharField(max_length=30)),
                ("date", models.DateField()),
                ("paid", models.BooleanField(default=False)),
                ("ignore_paid", models.BooleanField(default=False)),
                ("invoice", models.FileField(upload_to="")),
                (
                    "event",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="com_invoices",
                        to="event.Event",
                    ),
                ),
            ],
        ),
        migrations.RenameField(
            model_name="eventcomprofile",
            old_name="ignore_paid",
            new_name="unlock_activation",
        ),
        migrations.RemoveField(model_name="eventcomprofile", name="paid"),
    ]
