# Generated by Django 4.2.28 on 2026-07-27 23:42

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


class Migration(migrations.Migration):

    dependencies = [
        ('businesses', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='DeliveryOption',
            fields=[
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('name', models.CharField(help_text='Region or delivery name (e.g., Within Accra)', max_length=200)),
                ('fee', models.DecimalField(decimal_places=2, default=0.0, help_text='Delivery price in GHS (0.00 for free delivery)', max_digits=10)),
                ('description', models.TextField(blank=True, help_text='Coverage area notes (e.g., Includes Nungua, Osu, Spintex, East Legon)')),
                ('is_active', models.BooleanField(default=True)),
                ('order', models.PositiveIntegerField(default=0)),
                ('business', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='delivery_options', to='businesses.business')),
            ],
            options={
                'ordering': ['order', 'fee', 'created_at'],
            },
        ),
    ]
