fix meal api and force update api

This commit is contained in:
bobbyvish
2024-04-04 16:27:43 +05:30
parent 9e66760fae
commit 8878dc89ac
5 changed files with 53 additions and 9 deletions

View File

@@ -448,7 +448,12 @@ class IAmPrincipalBiometric(BaseModel):
class AppVersion(models.Model):
version = models.CharField(max_length=10, validators=[RegexValidator(r'^\d+\.\d+\.\d+$')])
DEVICE_CHOICES = [
('apple', 'apple'),
('android', 'android'),
]
device_type = models.CharField(max_length=10, choices=DEVICE_CHOICES)
version = models.CharField(max_length=10, validators=[RegexValidator(r'^\d+\.\d+$')])
force_upgrade = models.BooleanField(default=False, help_text='Indicates whether a force upgrade is needed for this app version.')
recommend_upgrade = models.BooleanField(default=False, help_text='Indicates whether a recommend upgrade is needed for this app version.')