This commit is contained in:
anhduy-tech
2026-01-26 08:15:42 +07:00
parent 2ac88177d8
commit 559f8169c9
15 changed files with 791 additions and 229 deletions

View File

@@ -361,7 +361,7 @@ class Payment_Plan(models.Model):
class User(models.Model):
username = models.CharField(max_length=50, null=False, unique=True)
password = models.CharField(max_length=100, null=False)
email = models.CharField(max_length=100, null=True)
email = models.CharField(max_length=100, null=True, unique=True)
avatar = models.CharField(max_length=100, null=True)
fullname = models.CharField(max_length=50, null=False)
display_name = models.CharField(max_length=50, null=True)
@@ -1702,6 +1702,8 @@ class Payment_Schedule(AutoCodeModel):
detail = models.JSONField(null=True)
ovd_days = models.IntegerField(null=True)
penalty_amount = models.DecimalField(null=True, max_digits=15, decimal_places=2)
penalty_paid = models.DecimalField(null=True, max_digits=15, decimal_places=2)
penalty_reduce = models.DecimalField(null=True, max_digits=15, decimal_places=2)
create_time = models.DateTimeField(null=True, auto_now_add=True)
update_time = models.DateTimeField(null=True, auto_now=True)