add status in model

This commit is contained in:
Cayo Puigdefabregas 2023-10-31 11:48:22 +01:00
parent 028770a52c
commit ad8fd797d2

View file

@ -55,9 +55,10 @@ class VerificableCredential(models.Model):
class Status(models.IntegerChoices):
ENABLE = 1, _("Enable")
REQUIRED = 2, _("Required")
ISSUED = 3, _("Issued")
REVOKED = 4, _("Revoked")
EXPIRED = 5, _("Expired")
DENEGATED = 3, _("Denegated")
ISSUED = 4, _("Issued")
REVOKED = 5, _("Revoked")
EXPIRED = 6, _("Expired")
id_string = models.CharField(max_length=250)
verified = models.BooleanField()