# Generated by Django 5.2.6 on 2025-11-29 07:00

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='Cart',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('quick_schedule', models.BooleanField(default=False)),
                ('pickup_type', models.CharField(choices=[('normal', 'Normal'), ('express', 'Express')], default='normal', max_length=16)),
                ('schedule_pickup_date', models.DateField(blank=True, null=True)),
                ('schedule_pickup_time', models.CharField(blank=True, max_length=64, null=True)),
                ('contact_name', models.CharField(blank=True, max_length=255)),
                ('contact_mobile', models.CharField(blank=True, max_length=32)),
                ('pickup_instructions', models.TextField(blank=True, null=True)),
                ('pickup_address', models.JSONField(blank=True, default=dict)),
                ('geo_location', models.JSONField(blank=True, default=dict)),
                ('order_details', models.JSONField(blank=True, default=dict)),
                ('premium_details', models.JSONField(blank=True, default=dict)),
                ('luxury_details', models.JSONField(blank=True, default=dict)),
                ('total_quantity', models.IntegerField(default=0)),
                ('total_final_price', models.DecimalField(decimal_places=2, default=0, max_digits=12)),
                ('currency_code', models.CharField(default='INR', max_length=8)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='carts', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['-updated_at'],
            },
        ),
    ]
