# Generated by Django 3.2.12 on 2022-08-15 06:02

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


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Certificate',
            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='删除标记')),
                ('name', models.CharField(max_length=20, verbose_name='证书名称')),
                ('number', models.CharField(max_length=20, unique=True, verbose_name='证书编号')),
                ('type', models.PositiveSmallIntegerField(default=10, verbose_name='证书类型')),
                ('issue_date', models.DateField(verbose_name='发证日期')),
                ('expiration_date', models.DateField(verbose_name='有效期')),
                ('review_date', models.DateField(verbose_name='下一次复审日期')),
                ('file', models.TextField(blank=True, null=True, verbose_name='文件地址')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ClockRecord',
            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='删除标记')),
                ('type', models.PositiveSmallIntegerField(choices=[(10, '上班打卡'), (20, '下班打卡')], default=10, verbose_name='打卡类型')),
                ('trigger', models.CharField(max_length=20, verbose_name='触发')),
                ('detail', models.JSONField(blank=True, default=dict, verbose_name='相关记录')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Employee',
            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='删除标记')),
                ('type', models.CharField(choices=[('employee', '内部员工'), ('remployee', '相关方人员'), ('visitor', '访客')], default='employee', max_length=10, verbose_name='人员类型')),
                ('name', models.CharField(max_length=20, verbose_name='姓名')),
                ('phone', models.CharField(blank=True, max_length=11, null=True, unique=True, verbose_name='手机号')),
                ('email', models.EmailField(blank=True, max_length=254, null=True, verbose_name='邮箱号')),
                ('number', models.CharField(blank=True, max_length=50, null=True, verbose_name='人员编号')),
                ('photo', models.CharField(blank=True, max_length=1000, null=True, verbose_name='证件照')),
                ('id_number', models.CharField(blank=True, max_length=100, null=True, unique=True, verbose_name='身份证号')),
                ('gender', models.CharField(default='男', max_length=10, verbose_name='性别')),
                ('signature', models.CharField(blank=True, max_length=200, null=True, verbose_name='签名图片')),
                ('birthday', models.DateField(blank=True, null=True, verbose_name='出生年月日')),
                ('qualification', models.CharField(blank=True, max_length=50, null=True, verbose_name='学历')),
                ('job_state', models.IntegerField(choices=[(10, '在职'), (20, '离职')], default=10, verbose_name='在职状态')),
                ('is_atwork', models.BooleanField(default=False, verbose_name='当前在岗')),
                ('show_atwork', models.BooleanField(default=True, verbose_name='是否展示在岗状态')),
                ('last_check_time', models.DateTimeField(blank=True, null=True, verbose_name='打卡时间')),
                ('not_work_remark', models.CharField(blank=True, max_length=200, null=True, verbose_name='当前未打卡说明')),
                ('third_info', models.JSONField(blank=True, default=dict, verbose_name='三方信息')),
            ],
            options={
                'verbose_name': '员工补充信息',
                'verbose_name_plural': '员工补充信息',
            },
        ),
        migrations.CreateModel(
            name='NotWorkRemark',
            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='删除标记')),
                ('not_work_date', models.DateField(verbose_name='未打卡日期')),
                ('remark', models.CharField(blank=True, max_length=200, null=True, verbose_name='未打卡说明')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
