from django.db import migrations, models


class Migration(migrations.Migration):
    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name="Order",
            fields=[
                ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
                ("order_id", models.CharField(blank=True, db_index=True, max_length=32, unique=True)),
                ("full_name", models.CharField(max_length=120)),
                ("phone", models.CharField(db_index=True, max_length=10)),
                ("whatsapp_number", models.CharField(blank=True, max_length=10)),
                ("address", models.TextField()),
                ("district", models.CharField(max_length=80)),
                ("state", models.CharField(max_length=80)),
                ("pincode", models.CharField(max_length=6)),
                ("quantity", models.PositiveIntegerField(default=1)),
                ("total_amount", models.PositiveIntegerField()),
                ("payment_method", models.CharField(choices=[("UPI / Bank Transfer", "UPI / Bank Transfer"), ("WhatsApp Order", "WhatsApp Order")], max_length=40)),
                ("payment_status", models.CharField(choices=[("Pending", "Pending"), ("Paid", "Paid")], default="Pending", max_length=20)),
                ("order_status", models.CharField(choices=[("Pending", "Pending"), ("Confirmed", "Confirmed"), ("Packed", "Packed"), ("Shipped", "Shipped"), ("Delivered", "Delivered"), ("Cancelled", "Cancelled")], default="Pending", max_length=20)),
                ("order_notes", models.TextField(blank=True)),
                ("created_at", models.DateTimeField(auto_now_add=True)),
            ],
            options={"ordering": ["-created_at"]},
        ),
    ]
