# Generated by Django 3.2.20 on 2023-11-14 10:46

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


class Migration(migrations.Migration):
    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name="Product",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("price", models.IntegerField()),
                (
                    "sku",
                    models.CharField(
                        choices=[("1", "VV")], max_length=255, unique=True
                    ),
                ),
                ("name", models.CharField(max_length=255)),
                ("description", models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name="CheckoutInformation",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "product_sku",
                    models.CharField(choices=[("1", "VV")], max_length=255),
                ),
                ("product_price", models.IntegerField()),
                ("product_name", models.CharField(max_length=255)),
                ("product_description", models.CharField(max_length=255)),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                (
                    "state",
                    models.CharField(
                        choices=[
                            ("initialized", "initialized"),
                            ("settled", "settled"),
                            ("canceled", "canceled"),
                            ("failed", "failed"),
                        ],
                        max_length=255,
                    ),
                ),
                ("invoice_transmitted_at", models.DateTimeField(blank=True, null=True)),
                ("transaction_id", models.CharField(max_length=255)),
                ("first_name", models.CharField(max_length=255)),
                ("last_name", models.CharField(max_length=255)),
                ("street_address", models.CharField(max_length=255)),
                ("street_number_address", models.CharField(max_length=255)),
                ("postal_code", models.CharField(max_length=255)),
                ("city", models.CharField(max_length=255)),
                ("country", models.CharField(max_length=255)),
                ("company_name", models.CharField(blank=True, max_length=255)),
                (
                    "company_street_address",
                    models.CharField(blank=True, max_length=255),
                ),
                (
                    "company_street_number_address",
                    models.CharField(blank=True, max_length=255),
                ),
                ("company_postal_code", models.CharField(blank=True, max_length=255)),
                ("company_city", models.CharField(blank=True, max_length=255)),
                ("company_country", models.CharField(blank=True, max_length=255)),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.PROTECT,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
        ),
        migrations.CreateModel(
            name="BillingAddress",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("first_name", models.CharField(blank=True, max_length=255)),
                ("last_name", models.CharField(blank=True, max_length=255)),
                ("street_address", models.CharField(blank=True, max_length=255)),
                ("street_number_address", models.CharField(blank=True, max_length=255)),
                ("postal_code", models.CharField(blank=True, max_length=255)),
                ("city", models.CharField(blank=True, max_length=255)),
                ("country", models.CharField(blank=True, max_length=255)),
                ("company_name", models.CharField(blank=True, max_length=255)),
                (
                    "company_street_address",
                    models.CharField(blank=True, max_length=255),
                ),
                (
                    "company_street_number_address",
                    models.CharField(blank=True, max_length=255),
                ),
                ("company_postal_code", models.CharField(blank=True, max_length=255)),
                ("company_city", models.CharField(blank=True, max_length=255)),
                ("company_country", models.CharField(blank=True, max_length=255)),
                (
                    "user",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE,
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
        ),
    ]
