37 lines
1.9 KiB
Python
37 lines
1.9 KiB
Python
|
|
# Generated by Django 5.2.12 on 2026-03-19 15:01
|
||
|
|
|
||
|
|
from django.db import migrations, models
|
||
|
|
|
||
|
|
|
||
|
|
class Migration(migrations.Migration):
|
||
|
|
|
||
|
|
initial = True
|
||
|
|
|
||
|
|
dependencies = [
|
||
|
|
]
|
||
|
|
|
||
|
|
operations = [
|
||
|
|
migrations.CreateModel(
|
||
|
|
name='IrrigationMethod',
|
||
|
|
fields=[
|
||
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
|
('name', models.CharField(db_index=True, help_text='نام روش آبیاری (قطره\u200cای، بارانی، سطحی و …)', max_length=255, unique=True)),
|
||
|
|
('category', models.CharField(blank=True, help_text='نوع روش (موضعی، تحت فشار، سطحی)', max_length=255)),
|
||
|
|
('description', models.TextField(blank=True, help_text='توضیحات کامل روش')),
|
||
|
|
('water_efficiency_percent', models.FloatField(blank=True, help_text='راندمان مصرف آب (%)', null=True)),
|
||
|
|
('water_pressure_required', models.CharField(blank=True, help_text='فشار مورد نیاز آب', max_length=255)),
|
||
|
|
('flow_rate', models.CharField(blank=True, help_text='دبی یا میزان جریان آب', max_length=255)),
|
||
|
|
('coverage_area', models.CharField(blank=True, help_text='مساحت قابل پوشش', max_length=255)),
|
||
|
|
('soil_type', models.CharField(blank=True, help_text='نوع خاک مناسب', max_length=255)),
|
||
|
|
('climate_suitability', models.CharField(blank=True, help_text='اقلیم مناسب', max_length=255)),
|
||
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
|
],
|
||
|
|
options={
|
||
|
|
'verbose_name': 'روش آبیاری',
|
||
|
|
'verbose_name_plural': 'روش\u200cهای آبیاری',
|
||
|
|
'ordering': ['name'],
|
||
|
|
},
|
||
|
|
),
|
||
|
|
]
|