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


class Migration(migrations.Migration):

    dependencies = [
        ("location_data", "0005_merge_20260327_0840"),
        ("sensor_data", "0007_rename_uuid_sensor_to_farm_uuid"),
    ]

    operations = [
        migrations.RenameField(
            model_name="sensordata",
            old_name="location",
            new_name="center_location",
        ),
        migrations.AlterField(
            model_name="sensordata",
            name="center_location",
            field=models.ForeignKey(
                db_column="center_location_id",
                help_text="مرکز زمین مرتبط از جدول location_data.SoilLocation",
                on_delete=django.db.models.deletion.CASCADE,
                related_name="farm_data",
                to="location_data.soillocation",
            ),
        ),
    ]
