Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Você pode visualizar os arquivos e realizar clone, mas não poderá realizar push nem abrir issues e pull requests.

0001_initial.py 2.4 KiB

2 anos atrás
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Generated by Django 4.1.9 on 2023-07-19 21:26
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ('common', '0001_initial'),
  8. ]
  9. operations = [
  10. migrations.CreateModel(
  11. name='Company',
  12. fields=[
  13. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  14. ('legal_name', models.CharField(max_length=256)),
  15. ('trade_name', models.CharField(max_length=256)),
  16. ('cin', models.CharField(max_length=64)),
  17. ('cin_proof', models.FileField(null=True, upload_to='company_proofs/')),
  18. ('gstin', models.CharField(max_length=16)),
  19. ('gstin_proof', models.FileField(null=True, upload_to='company_proofs/')),
  20. ('date_of_incorporation', models.DateField()),
  21. ('date_of_incorporation_proof', models.FileField(null=True, upload_to='company_proofs/')),
  22. ('pan', models.CharField(max_length=16)),
  23. ('pan_proof', models.FileField(null=True, upload_to='company_proofs/')),
  24. ('iec', models.CharField(max_length=16)),
  25. ('iec_proof', models.FileField(null=True, upload_to='company_proofs/')),
  26. ('msme_code', models.CharField(max_length=64)),
  27. ('msme_proof', models.FileField(null=True, upload_to='company_proofs/')),
  28. ('provident_fund_code_number', models.CharField(max_length=32)),
  29. ('provident_fund_code_number_proof', models.FileField(null=True, upload_to='company_proofs/')),
  30. ('se_registration_number', models.CharField(max_length=32)),
  31. ('se_registration_number_proof', models.FileField(null=True, upload_to='company_proofs/')),
  32. ('phone_number', models.CharField(max_length=13)),
  33. ('support_email', models.EmailField(max_length=254, null=True, unique=True)),
  34. ('address', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='common.address')),
  35. ('nature_of_business', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='common.natureofbusiness')),
  36. ],
  37. options={
  38. 'db_table': 'company',
  39. },
  40. ),
  41. ]