feat: page clients and create client

This commit is contained in:
2025-01-15 20:48:35 -03:00
parent dc21858b9a
commit 15af99f765
22 changed files with 319 additions and 9 deletions

View File

@@ -4,5 +4,10 @@ from django.db import models
class Client(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255)
debt = models.DecimalField(max_digits=10, decimal_places=2)
created_at = models.DateTimeField(auto_now_add=True)
active = models.BooleanField(default=True)
contact = models.CharField(max_length=255, null=True, blank=True)
contact = models.CharField(max_length=255, null=True, blank=True)
def __str__(self) -> str:
return self.name