add new fields to rancher

This commit is contained in:
2025-08-19 09:03:41 +03:30
parent b64c28b6d1
commit 14cd349a7d
15 changed files with 459 additions and 82 deletions

View File

@@ -82,6 +82,30 @@ class Herd(BaseModel):
class Rancher(BaseModel):
ranching_farm = models.CharField(max_length=150, null=True)
union_name = models.CharField(max_length=50, null=True)
union_code = models.CharField(max_length=50, null=True)
activity_types = (
("I", "Industrial"),
("V", "Village"),
("N", "Nomadic")
)
activity = models.CharField(
choices=activity_types,
max_length=1,
null=True
)
rancher_types = (
('N', 'Natural'),
('L', 'Legal')
)
rancher_type = models.CharField(
max_length=1,
choices=rancher_types,
default='N',
help_text="N is natural & L is legal"
)
heavy_livestock_number = models.BigIntegerField(default=0)
light_livestock_number = models.BigIntegerField(default=0)
herd_code = models.CharField(max_length=100, null=True)
first_name = models.CharField(max_length=150, null=True)
last_name = models.CharField(max_length=150, null=True)