from django.db import models from common.models import Address, NatureOfBusiness class Company(models.Model): legal_name = models.CharField(max_length=256) trade_name = models.CharField(max_length=256) address = models.ForeignKey(Address, on_delete=models.SET_NULL, null=True) cin = models.CharField(max_length=64) cin_proof = models.FileField(null= True, upload_to='company_proofs/') gstin = models.CharField(max_length=16) gstin_proof = models.FileField(null= True,upload_to='company_proofs/') date_of_incorporation = models.DateField() date_of_incorporation_proof = models.FileField(null= True,upload_to='company_proofs/') pan = models.CharField(max_length=16) pan_proof = models.FileField(null= True,upload_to='company_proofs/') iec = models.CharField(max_length=16) iec_proof = models.FileField(null= True,upload_to='company_proofs/') msme_code = models.CharField(max_length=64) msme_proof = models.FileField(null= True,upload_to='company_proofs/') provident_fund_code_number = models.CharField(max_length=32) provident_fund_code_number_proof = models.FileField(null= True,upload_to='company_proofs/') se_registration_number = models.CharField(max_length=32) se_registration_number_proof = models.FileField(null= True,upload_to='company_proofs/') nature_of_business = models.ForeignKey(NatureOfBusiness, on_delete=models.SET_NULL, null=True) phone_number = models.CharField(max_length=13) #Need to look into this support_email = models.EmailField(null=True, unique=True) class Meta: db_table = 'company' def __str__(self): return self.legal_name