# Generated by Django 2.2.7 on 2025-05-20 09:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import pingcap_sso.models.partner class Migration(migrations.Migration): dependencies = [ ('pingcap_sso', '0145_asktugtopicaiextracted'), ] operations = [ migrations.CreateModel( name='PartnerCompatibilityCertification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.CharField(blank=True, default=pingcap_sso.models.partner._generate_number, help_text='申请单号', max_length=100, null=True, unique=True)), ('company', models.CharField(max_length=100)), ('company_address', models.CharField(max_length=100)), ('company_area_code', models.CharField(blank=True, help_text='公司所在的区域(代码)', max_length=100, null=True)), ('company_area_text', models.CharField(blank=True, help_text='公司所在的区域(描述)', max_length=100, null=True)), ('contact_name', models.CharField(help_text='联系人', max_length=100)), ('contact_job_title', models.CharField(help_text='联系人职位', max_length=100)), ('contact_phone', models.CharField(help_text='联系人电话', max_length=100)), ('contact_email', models.EmailField(help_text='联系人邮箱', max_length=100)), ('product_description', models.CharField(help_text='产品描述', max_length=200)), ('product_industry_code', models.CharField(blank=True, help_text='产品行业(代码)', max_length=100, null=True)), ('product_industry_text', models.CharField(blank=True, help_text='产品行业(描述)', max_length=100, null=True)), ('purpose_of_certification', models.CharField(help_text='认证用途', max_length=100)), ('compatible_database_version_code', models.CharField(blank=True, help_text='兼容数据库版本(代码)', max_length=100, null=True)), ('compatible_database_version_text', models.CharField(blank=True, help_text='兼容数据库版本(描述)', max_length=100, null=True)), ('solution_type_code', models.CharField(blank=True, help_text='解决方案类型(代码)', max_length=100, null=True)), ('solution_type_text', models.CharField(blank=True, help_text='解决方案类型(描述)', max_length=100, null=True)), ('shipping_address', models.CharField(help_text='证书邮寄地址', max_length=200)), ('status', models.CharField(blank=True, choices=[('pending', 'pending'), ('approved', 'approved'), ('rejected', 'rejected')], default='pending', max_length=16)), ('staff_comment', models.TextField(blank=True, help_text='审核意见', null=True)), ('crm_creator_openid', models.CharField(blank=True, default='FSUID_8D4890ED424F97459A11A7B4DCA523F0', help_text='CRM 线索创建者 OpenID, 默认为王静', max_length=64)), ('sync_status', models.CharField(blank=True, choices=[('pending', 'pending'), ('success', 'success'), ('failed', 'failed')], default='pending', max_length=16)), ('sync_at', models.DateTimeField(blank=True, null=True)), ('request_body', models.TextField(blank=True, null=True)), ('response_body', models.TextField(blank=True, null=True)), ('crm_object_id', models.CharField(blank=True, max_length=64, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('attachment_1', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='partner_compatibility_certification_attachment_1', to='pingcap_sso.Upload')), ('attachment_2', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.DO_NOTHING, related_name='partner_compatibility_certification_attachment_2', to='pingcap_sso.Upload')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, related_name='created_partner_compatibility_certifications', to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'pingcap_partner_compatibility_certifications', }, ), ]