# Generated by Django 3.2.12 on 2025-12-12 08:48

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 = [
        ('system', '0006_auto_20241213_1249'),
        ('wf', '0005_workflow_cate'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('hrm', '0021_alter_resignation_ticket'),
    ]

    operations = [
        migrations.CreateModel(
            name='EmpNeed',
            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='删除标记')),
                ('post_need', models.TextField(verbose_name='需求岗位')),
                ('count_need', models.PositiveIntegerField(verbose_name='需求人数')),
                ('salary', models.PositiveIntegerField(verbose_name='工资报酬')),
                ('arrival_date', models.DateField(verbose_name='到岗日期')),
                ('reason', models.TextField(help_text='新增人员/该岗原人员离职或辞职或辞退需补充/其他原因', verbose_name='申请理由')),
                ('duty', models.TextField(verbose_name='岗位人员职责描述')),
                ('gender', models.CharField(help_text='男/女/不限', max_length=10, verbose_name='性别要求')),
                ('education', models.CharField(help_text='高中/大专/不限', max_length=50, verbose_name='学历要求')),
                ('professional_requirement', models.TextField(blank=True, null=True, verbose_name='相关专业及技能要求')),
                ('create_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='empneed_create_by', to=settings.AUTH_USER_MODEL, verbose_name='创建人')),
                ('dept_need', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='system.dept', verbose_name='需求部门')),
                ('ticket', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='empneed_ticket', to='wf.ticket', verbose_name='关联工单')),
                ('update_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='empneed_update_by', to=settings.AUTH_USER_MODEL, verbose_name='最后编辑人')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
