This commit is contained in:
ismail 2025-12-31 13:32:00 +03:00
parent fef9abdd4f
commit 7d56370811
3 changed files with 78 additions and 76 deletions

View File

@ -29,6 +29,7 @@ class Hospital(UUIDModel, TimeStampedModel):
# Metadata # Metadata
license_number = models.CharField(max_length=100, blank=True) license_number = models.CharField(max_length=100, blank=True)
capacity = models.IntegerField(null=True, blank=True, help_text="Bed capacity") capacity = models.IntegerField(null=True, blank=True, help_text="Bed capacity")
metadata = models.JSONField(default=dict, blank=True) metadata = models.JSONField(default=dict, blank=True)
class Meta: class Meta:
@ -38,6 +39,7 @@ class Hospital(UUIDModel, TimeStampedModel):
def __str__(self): def __str__(self):
return self.name return self.name
# TODO: Add branch
class Department(UUIDModel, TimeStampedModel): class Department(UUIDModel, TimeStampedModel):
"""Department within a hospital""" """Department within a hospital"""