# Generated by Django 4.2 on 2023-05-12 09:48

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


class Migration(migrations.Migration):
    dependencies = [
        ("order", "0016_alter_groupedorder_description"),
    ]

    operations = [
        migrations.CreateModel(
            name="OrderAuthor",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("first_name", models.CharField(verbose_name="Prénom")),
                ("last_name", models.CharField(verbose_name="Nom")),
                (
                    "phone",
                    models.CharField(
                        help_text="Pour vous que l'organisateur·ice vous contacte en cas de besoin",
                        verbose_name="Numéro de téléphone",
                    ),
                ),
                (
                    "email",
                    models.CharField(
                        verbose_name="Pour vous que l'organisateur·ice vous contacte en cas de besoin"
                    ),
                ),
            ],
        ),
        migrations.AlterField(
            model_name="order",
            name="author",
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE, to="order.orderauthor"
            ),
        ),
    ]
