The new updates of partners and user
Made-with: Cursor
This commit is contained in:
41
partner/migrations/0001_initial.py
Normal file
41
partner/migrations/0001_initial.py
Normal file
@@ -0,0 +1,41 @@
|
||||
# Generated by Django 4.2.27 on 2026-03-13 16:55
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Partner',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=250)),
|
||||
('partner_type', models.CharField(choices=[('venue', 'Venue'), ('promoter', 'Promoter'), ('sponsor', 'Sponsor'), ('vendor', 'Vendor'), ('affiliate', 'Affiliate'), ('other', 'Other')], max_length=250)),
|
||||
('primary_contact_person_name', models.CharField(max_length=250)),
|
||||
('primary_contact_person_email', models.EmailField(max_length=254)),
|
||||
('primary_contact_person_phone', models.CharField(max_length=15)),
|
||||
('status', models.CharField(choices=[('active', 'Active'), ('inactive', 'Inactive'), ('pending', 'Pending'), ('suspended', 'Suspended'), ('deleted', 'Deleted'), ('archived', 'Archived')], default='active', max_length=250)),
|
||||
('address', models.TextField(blank=True, null=True)),
|
||||
('city', models.CharField(blank=True, max_length=250, null=True)),
|
||||
('state', models.CharField(blank=True, max_length=250, null=True)),
|
||||
('country', models.CharField(blank=True, max_length=250, null=True)),
|
||||
('website_url', models.URLField(blank=True, null=True)),
|
||||
('pincode', models.CharField(blank=True, max_length=10, null=True)),
|
||||
('latitude', models.DecimalField(blank=True, decimal_places=6, max_digits=9, null=True)),
|
||||
('longitude', models.DecimalField(blank=True, decimal_places=6, max_digits=9, null=True)),
|
||||
('is_kyc_compliant', models.BooleanField(default=False)),
|
||||
('kyc_compliance_status', models.CharField(choices=[('pending', 'Pending'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('high_risk', 'High Risk'), ('low_risk', 'Low Risk'), ('medium_risk', 'Medium Risk')], default='pending', max_length=250)),
|
||||
('kyc_compliance_reason', models.TextField(blank=True, null=True)),
|
||||
('kyc_compliance_document_type', models.CharField(blank=True, choices=[('aadhaar', 'Aadhaar'), ('pan', 'PAN'), ('driving_license', 'Driving License'), ('voter_id', 'Voter ID'), ('passport', 'Passport'), ('other', 'Other')], max_length=250, null=True)),
|
||||
('kyc_compliance_document_other_type', models.CharField(blank=True, max_length=250, null=True)),
|
||||
('kyc_compliance_document_file', models.FileField(blank=True, null=True, upload_to='kyc_documents/')),
|
||||
('kyc_compliance_document_number', models.CharField(blank=True, max_length=250, null=True)),
|
||||
],
|
||||
),
|
||||
]
|
||||
0
partner/migrations/__init__.py
Normal file
0
partner/migrations/__init__.py
Normal file
Reference in New Issue
Block a user