from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('fields', '0004_field_display_order_field_group_name'),
    ]

    operations = [
        # C-2: k_num 単独 unique → (k_num, s_num) ペアで unique
        migrations.AlterField(
            model_name='officialkyosaifield',
            name='k_num',
            field=models.CharField(max_length=20, verbose_name='共済番号'),
        ),
        migrations.AlterField(
            model_name='officialkyosaifield',
            name='s_num',
            field=models.CharField(blank=True, default='', max_length=20, verbose_name='枝番'),
        ),
        migrations.AlterUniqueTogether(
            name='officialkyosaifield',
            unique_together={('k_num', 's_num')},
        ),
        # C-4: 面積を DecimalField(ha) → IntegerField(m2) に変更
        migrations.AlterField(
            model_name='officialkyosaifield',
            name='area',
            field=models.IntegerField(default=0, verbose_name='面積(m2)'),
        ),
        migrations.AlterField(
            model_name='officialchusankanfield',
            name='area',
            field=models.IntegerField(default=0, verbose_name='面積(m2)'),
        ),
        # payment_amount も DecimalField → IntegerField に統一
        migrations.AlterField(
            model_name='officialchusankanfield',
            name='payment_amount',
            field=models.IntegerField(blank=True, null=True, verbose_name='支払金額'),
        ),
    ]
