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


class Migration(migrations.Migration):

    dependencies = [
        ("irrigation", "0001_initial"),
        ("sensor_data", "0010_rename_tables_to_farm_data"),
    ]

    operations = [
        migrations.AddField(
            model_name="sensordata",
            name="irrigation_method",
            field=models.ForeignKey(
                blank=True,
                db_column="irrigation_method_id",
                help_text="روش آبیاری انتخاب‌شده برای این farm",
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="farm_data",
                to="irrigation.irrigationmethod",
            ),
        ),
    ]
