1
This commit is contained in:
parent
fef9abdd4f
commit
7d56370811
@ -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"""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user