# Generated by Django 3.2.12 on 2025-11-04 07:08

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


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('wf', '0004_workflow_view_path2'),
        ('srm', '0004_alter_paperrecord_pa_type'),
    ]

    operations = [
        migrations.CreateModel(
            name='Platstanding',
            fields=[
                ('id', models.CharField(editable=False, help_text='主键ID', max_length=20, 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='删除标记')),
                ('number', models.CharField(blank=True, max_length=50, null=True, verbose_name='发文号')),
                ('name', models.CharField(blank=True, max_length=50, null=True, verbose_name='名称')),
                ('p_type', models.CharField(blank=True, max_length=50, null=True, verbose_name='平台类型')),
                ('org', models.CharField(blank=True, max_length=100, null=True, verbose_name='单位')),
                ('period', models.CharField(blank=True, max_length=200, null=True, verbose_name='建设期')),
                ('city_p', models.BooleanField(default=False, verbose_name='市级平台')),
                ('province_p', models.BooleanField(default=False, verbose_name='省级平台')),
                ('plat_amount', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='平台资金（元）')),
                ('son_pro', models.CharField(blank=True, max_length=200, null=True, verbose_name='子项目')),
                ('achieve', models.CharField(blank=True, max_length=200, null=True, verbose_name='成果')),
                ('finished', models.CharField(blank=True, max_length=200, null=True, verbose_name='完成情况')),
                ('completion', models.CharField(blank=True, max_length=200, null=True, verbose_name='建成绩效完成情况')),
                ('create_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='platstanding_create_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人')),
                ('update_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='platstanding_update_by', to=settings.AUTH_USER_MODEL, verbose_name='最后编辑人')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Platform',
            fields=[
                ('id', models.CharField(editable=False, help_text='主键ID', max_length=20, 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='删除标记')),
                ('p_date', models.DateField(blank=True, null=True, verbose_name='日期')),
                ('p_dept', models.CharField(blank=True, max_length=200, null=True, verbose_name='归口部门')),
                ('city_p', models.BooleanField(default=False, verbose_name='市级平台')),
                ('province_p', models.BooleanField(default=False, verbose_name='省级平台')),
                ('const', models.CharField(blank=True, max_length=50, null=True, verbose_name='建设期')),
                ('charge', models.CharField(blank=True, max_length=50, null=True, verbose_name='负责人')),
                ('condition', models.TextField(blank=True, max_length=200, null=True, verbose_name='平台基本情况与目标绩效')),
                ('create_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='platform_create_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人')),
                ('ticket', models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='plat_ticket', to='wf.ticket', verbose_name='关联工单')),
                ('update_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='platform_update_by', to=settings.AUTH_USER_MODEL, verbose_name='最后编辑人')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
