feat: refactor AppointmentRequest model to use standard fields instead of encrypted fields
This commit is contained in:
parent
2dc08aeded
commit
1480049f3c
@ -185,11 +185,11 @@ class AppointmentRequest(models.Model):
|
|||||||
]
|
]
|
||||||
|
|
||||||
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False)
|
||||||
first_name = EncryptedCharField()
|
first_name = models.CharField(max_length=255)
|
||||||
last_name = EncryptedCharField()
|
last_name = models.CharField(max_length=255)
|
||||||
email = EncryptedEmailField()
|
email = models.EmailField(max_length=255, unique=False)
|
||||||
phone = EncryptedCharField(null=True, blank=True)
|
phone = models.CharField(null=True, blank=True, max_length=50)
|
||||||
reason = EncryptedTextField(blank=True, null=True)
|
reason = models.TextField(blank=True, null=True, help_text="Reason for appointment")
|
||||||
|
|
||||||
preferred_dates = models.JSONField(
|
preferred_dates = models.JSONField(
|
||||||
help_text="List of preferred dates (YYYY-MM-DD format)"
|
help_text="List of preferred dates (YYYY-MM-DD format)"
|
||||||
@ -199,6 +199,7 @@ class AppointmentRequest(models.Model):
|
|||||||
)
|
)
|
||||||
|
|
||||||
status = models.CharField(
|
status = models.CharField(
|
||||||
|
max_length=20,
|
||||||
choices=STATUS_CHOICES,
|
choices=STATUS_CHOICES,
|
||||||
default='pending_review'
|
default='pending_review'
|
||||||
)
|
)
|
||||||
@ -211,11 +212,13 @@ class AppointmentRequest(models.Model):
|
|||||||
rejection_reason = EncryptedTextField(blank=True, null=True)
|
rejection_reason = EncryptedTextField(blank=True, null=True)
|
||||||
|
|
||||||
jitsi_meet_url = models.URLField(
|
jitsi_meet_url = models.URLField(
|
||||||
|
unique=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
null=True,
|
null=True,
|
||||||
help_text="Jitsi Meet URL for the video session"
|
help_text="Jitsi Meet URL for the video session"
|
||||||
)
|
)
|
||||||
jitsi_room_id = models.CharField(
|
jitsi_room_id = models.CharField(
|
||||||
|
max_length=255,
|
||||||
unique=True,
|
unique=True,
|
||||||
null=True,
|
null=True,
|
||||||
blank=True,
|
blank=True,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user