# Generated by Django 3.2.12 on 2024-09-14 03:03

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


class Migration(migrations.Migration):

    dependencies = [
        ('cms', '0014_auto_20231207_2146'),
    ]

    operations = [
        migrations.CreateModel(
            name='CompanyInfo',
            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_delete', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('company_name', models.CharField(max_length=50, verbose_name='父公司名称')),
                ('edu_points', models.FloatField(blank=True, null=True, verbose_name='教育积分')),
                ('co_sponsor_points', models.FloatField(blank=True, null=True, verbose_name='协办大赛积分')),
                ('sum_points', models.FloatField(blank=True, null=True, verbose_name='总积分')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ChildrenCompany',
            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_delete', models.BooleanField(default=False, help_text='删除标记', verbose_name='删除标记')),
                ('child_company_name', models.CharField(max_length=50, verbose_name='子公司名称')),
                ('child_edu_points', models.FloatField(blank=True, null=True, verbose_name='教育积分')),
                ('child_co_sponsor_points', models.FloatField(blank=True, null=True, verbose_name='协办大赛积分')),
                ('parent_compnay', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cms.companyinfo', verbose_name='父公司')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
