This commit is contained in:
2026-04-24 02:50:27 +03:30
parent 302124aa87
commit a76af4e766
20 changed files with 430 additions and 147 deletions
+9
View File
@@ -115,6 +115,15 @@ class SensorData(SensorPayloadMixin, models.Model):
related_name="farm_data",
help_text="گیاهان مرتبط با این farm",
)
irrigation_method = models.ForeignKey(
"irrigation.IrrigationMethod",
on_delete=models.SET_NULL,
null=True,
blank=True,
related_name="farm_data",
db_column="irrigation_method_id",
help_text="روش آبیاری انتخاب‌شده برای این farm",
)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)