# Generated by Django 3.0.5 on 2020-06-24 01:05

from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('system', '0021_auto_20200616_1722'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Enterprise',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, help_text='创建时间', verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, help_text='修改时间', verbose_name='修改时间')),
                ('is_deleted', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('code', models.CharField(max_length=300, verbose_name='工厂编号')),
                ('name', models.CharField(max_length=1000, verbose_name='工厂名称')),
                ('ename', models.CharField(max_length=1000, verbose_name='工厂英文名称')),
                ('legal', models.CharField(max_length=300, verbose_name='申请单位法人代表')),
                ('production_address', models.CharField(max_length=1000, verbose_name='生产地址')),
                ('production_eaddress', models.CharField(max_length=1000, verbose_name='生产英文地址')),
                ('production_postcode', models.CharField(max_length=100, verbose_name='生产地址邮编')),
                ('build_time', models.DateField(max_length=200, verbose_name='建厂时间')),
                ('person_count', models.IntegerField(verbose_name='工厂人数')),
                ('ceramics_output', models.IntegerField(verbose_name='陶瓷年产量')),
                ('gassets', models.CharField(max_length=100, verbose_name='固定资产')),
                ('linkman1_name', models.CharField(max_length=300, verbose_name='第1联系人')),
                ('linkman1_duty', models.CharField(max_length=300, verbose_name='第1联系人职务')),
                ('linkman1_email', models.EmailField(max_length=300, verbose_name='第1联系人邮箱')),
                ('linkman1_tel', models.CharField(max_length=300, verbose_name='第1联系人电话')),
                ('linkman1_mobile', models.CharField(max_length=300, verbose_name='第1联系人手机')),
                ('linkman1_fax', models.CharField(max_length=300, verbose_name='第1联系人传真')),
                ('linkman2_name', models.CharField(max_length=300, verbose_name='备用联系人')),
                ('linkman2_email', models.EmailField(max_length=300, verbose_name='备用联系人邮箱')),
                ('linkman2_tel', models.CharField(max_length=300, verbose_name='备用联系人电话')),
                ('linkman2_duty', models.CharField(max_length=300, verbose_name='备用联系人职务')),
                ('linkman2_mobile', models.CharField(max_length=300, verbose_name='备用联系人手机')),
                ('linkman2_fax', models.CharField(max_length=300, verbose_name='备用联系人传真')),
                ('credit_code', models.CharField(max_length=300, verbose_name='统一社会信用代码')),
                ('registered_address', models.CharField(max_length=1000, verbose_name='注册地址')),
                ('registered_eaddress', models.CharField(max_length=1000, verbose_name='注册地址英文')),
                ('registered_code', models.CharField(max_length=1000, verbose_name='注册地址邮编')),
                ('mailing_address', models.CharField(max_length=1000, verbose_name='通信地址')),
                ('mailing_eaddress', models.CharField(max_length=1000, verbose_name='通信英文地址')),
                ('mailing_code', models.CharField(max_length=300, verbose_name='地址邮编')),
                ('qms_person', models.IntegerField(verbose_name='QMS人数')),
                ('ems_person', models.IntegerField(verbose_name='EMS人数')),
                ('pcv_person', models.IntegerField(verbose_name='PCV人数')),
                ('ohs_person', models.IntegerField(verbose_name='OHS人数')),
                ('all_person', models.IntegerField(verbose_name='组织员工数')),
                ('business_type', models.CharField(max_length=1000, verbose_name='经营范围')),
                ('credit_rate', models.CharField(max_length=300, verbose_name='企业信誉级别')),
                ('credit_remark', models.CharField(max_length=1000, verbose_name='企业信誉级别备注')),
                ('query_code', models.CharField(max_length=1000, verbose_name='组织查询码')),
                ('linkman3_name', models.CharField(max_length=300, verbose_name='ES联系人')),
                ('linkman3_duty', models.CharField(max_length=300, verbose_name='ES联系人职务')),
                ('linkman3_email', models.EmailField(max_length=300, verbose_name='ES联系人邮箱')),
                ('linkman3_tel', models.CharField(max_length=300, verbose_name='ES联系人电话')),
                ('linkman3_mobile', models.CharField(max_length=300, verbose_name='ES联系人手机')),
                ('linkman3_fax', models.CharField(max_length=300, verbose_name='ES联系人传真')),
                ('belong_dept', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_belong_dept', to='system.Organization', verbose_name='所属部门')),
                ('country_code', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_country_code', to='system.Dict', verbose_name='生产企业所在国家地区代码')),
                ('create_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_create_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人')),
                ('economy_class', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_economy_class', to='system.Dict', verbose_name='经济行业')),
                ('economy_type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_economy_type', to='system.Dict', verbose_name='经济类型')),
                ('professional', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_professional', to='system.Dict', verbose_name='所属专业')),
                ('region_code', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_region_code1', to='system.Dict', verbose_name='县/区')),
                ('type', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_type', to='system.Dict', verbose_name='机构类型')),
                ('update_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='enterprise_update_by', to=settings.AUTH_USER_MODEL, verbose_name='最后编辑人')),
            ],
            options={
                'verbose_name': '组织信息',
                'verbose_name_plural': '组织信息',
            },
        ),
    ]
