# Generated by Django 3.2.20 on 2023-11-14 19:36

from django.db import migrations, models

from vbv_lernwelt.shop.model_utils import add_countries, remove_countries


class Migration(migrations.Migration):
    dependencies = [
        ("shop", "0002_auto_20231114_1926"),
    ]

    operations = [
        migrations.CreateModel(
            name="Country",
            fields=[
                ("country_id", models.IntegerField(primary_key=True, serialize=False)),
                ("name_de", models.CharField(max_length=255)),
                ("name_fr", models.CharField(max_length=255)),
                ("name_it", models.CharField(max_length=255)),
            ],
            options={
                "verbose_name": "Country",
                "verbose_name_plural": "Countries",
                "ordering": ["country_id"],
            },
        ),
        migrations.RemoveField(
            model_name="product",
            name="id",
        ),
        migrations.AlterField(
            model_name="checkoutinformation",
            name="product_sku",
            field=models.CharField(max_length=255),
        ),
        migrations.AlterField(
            model_name="product",
            name="sku",
            field=models.CharField(max_length=255, primary_key=True, serialize=False),
        ),
        migrations.RunPython(add_countries, remove_countries),
    ]
