feat(agreement): add agreement field to user model and implement agreement upload functionality
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 3m2s

This commit is contained in:
2025-07-25 00:01:56 +05:00
parent 087782e351
commit 9e4449d0d6
6 changed files with 83 additions and 0 deletions

View File

@@ -34,6 +34,13 @@ class User(AbstractUser):
island = models.ForeignKey(
"Island", on_delete=models.SET_NULL, null=True, blank=True, related_name="users"
)
agreement = models.FileField(
upload_to="agreements/",
blank=True,
null=True,
help_text="Upload the agreement file signed by the user.",
)
created_at = models.DateTimeField(default=timezone.now)
updated_at = models.DateTimeField(auto_now=True)