Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
Questo repository è archiviato. Puoi vedere i file e clonarli, ma non puoi effettuare richieste di pushj o aprire problemi/richieste di pull.

37 righe
1.6 KiB

  1. from django.db import models
  2. from common.models import Address, NatureOfBusiness
  3. class Company(models.Model):
  4. legal_name = models.CharField(max_length=256)
  5. trade_name = models.CharField(max_length=256)
  6. address = models.ForeignKey(Address, on_delete=models.SET_NULL, null=True)
  7. cin = models.CharField(max_length=64)
  8. cin_proof = models.FileField(null= True, upload_to='company_proofs/')
  9. gstin = models.CharField(max_length=16)
  10. gstin_proof = models.FileField(null= True,upload_to='company_proofs/')
  11. date_of_incorporation = models.DateField()
  12. date_of_incorporation_proof = models.FileField(null= True,upload_to='company_proofs/')
  13. pan = models.CharField(max_length=16)
  14. pan_proof = models.FileField(null= True,upload_to='company_proofs/')
  15. iec = models.CharField(max_length=16)
  16. iec_proof = models.FileField(null= True,upload_to='company_proofs/')
  17. msme_code = models.CharField(max_length=64)
  18. msme_proof = models.FileField(null= True,upload_to='company_proofs/')
  19. provident_fund_code_number = models.CharField(max_length=32)
  20. provident_fund_code_number_proof = models.FileField(null= True,upload_to='company_proofs/')
  21. se_registration_number = models.CharField(max_length=32)
  22. se_registration_number_proof = models.FileField(null= True,upload_to='company_proofs/')
  23. nature_of_business = models.ForeignKey(NatureOfBusiness, on_delete=models.SET_NULL, null=True)
  24. phone_number = models.CharField(max_length=13) #Need to look into this
  25. support_email = models.EmailField(null=True, unique=True)
  26. class Meta:
  27. db_table = 'company'
  28. def __str__(self):
  29. return self.legal_name