# 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='Access',
            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, '禁入')], verbose_name='准入类型')),
                ('obj_cate', models.CharField(help_text='post/org/people/visit', max_length=20, verbose_name='对象类型')),
                ('stay_minute_min', models.PositiveSmallIntegerField(default=0, verbose_name='最短停留时间')),
                ('stay_minute_max', models.PositiveSmallIntegerField(default=0, verbose_name='最长停留时间')),
                ('sort', models.PositiveSmallIntegerField(default=1, verbose_name='排序')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Area',
            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='名称')),
                ('type', models.PositiveSmallIntegerField(choices=[(10, '固定'), (20, '临时作业')], default=10, verbose_name='区域类型')),
                ('level', models.PositiveSmallIntegerField(verbose_name='区域风险等级')),
                ('cate', models.PositiveSmallIntegerField(verbose_name='区域分类')),
                ('number', models.CharField(blank=True, max_length=20, null=True, verbose_name='编号')),
                ('access_list', models.JSONField(blank=True, default=list, help_text='employee/remployee/visitor', verbose_name='准入人员类型')),
                ('count_people_min', models.PositiveIntegerField(default=0, verbose_name='最小人员数')),
                ('count_people_max', models.PositiveIntegerField(default=1000, verbose_name='最大人员数')),
                ('count_people', models.PositiveIntegerField(default=0, verbose_name='当前人数')),
                ('stay_minute_min', models.PositiveSmallIntegerField(default=0, help_text='0代表未配置', verbose_name='最短停留时间')),
                ('stay_minute_max', models.PositiveSmallIntegerField(default=0, help_text='0代表未配置', verbose_name='最长停留时间')),
                ('is_hidden', models.BooleanField(default=False, verbose_name='隐藏围栏用')),
                ('third_info', models.JSONField(blank=True, default=dict, verbose_name='三方信息')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
