You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

34 lines
1.1 KiB

  1. from django.db import models
  2. # Create your models here.
  3. class Address(models.Model):
  4. address_line_1 = models.CharField(max_length=200)
  5. address_line_2 = models.CharField(max_length=200, blank=True)
  6. city = models.CharField(max_length=50)
  7. state = models.CharField(max_length=50)
  8. zip_code = models.CharField(max_length=10)
  9. country = models.CharField(max_length=50)
  10. def __str__(self):
  11. return f"{self.address_line_1}, {self.address_line_2}, {self.city}, {self.state}, {self.zip_code}, {self.country}"
  12. class Meta:
  13. db_table = 'address'
  14. class BankDetails(models.Model):
  15. beneficiary_name = models.CharField(max_length=50)
  16. bank_name = models.CharField(max_length=50)
  17. account_number = models.CharField(max_length=20)
  18. ifsc_code = models.CharField(max_length=20)
  19. branch_name = models.CharField(max_length=50)
  20. upi_id = models.CharField(max_length=50, blank=True)
  21. def __str__(self):
  22. return self.account_number
  23. class NatureOfBusiness(models.Model):
  24. name = models.CharField(max_length=50)
  25. def __str__(self):
  26. return self.name