# Generated manually for zone pricing feature

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('core', '0027_shipment_load_type_flags'),
    ]

    operations = [
        migrations.CreateModel(
            name='CountryBoundary',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('country_code', models.CharField(db_index=True, max_length=2, unique=True)),
                ('country_name', models.CharField(max_length=100)),
                ('geojson', models.JSONField()),
            ],
            options={
                'verbose_name_plural': 'Country boundaries',
            },
        ),
        migrations.AddField(
            model_name='shipment',
            name='price_breakdown',
            field=models.JSONField(
                blank=True,
                help_text='Per-country km/rate/price segments from zone boundary pricing.',
                null=True,
            ),
        ),
        migrations.AddField(
            model_name='zone',
            name='rate_per_km',
            field=models.DecimalField(
                blank=True,
                decimal_places=4,
                help_text='Default price per km for route segments in this country.',
                max_digits=12,
                null=True,
            ),
        ),
    ]
