同步数据库

This commit is contained in:
曹前明 2022-09-15 10:24:02 +08:00
parent 255e23f1cd
commit 1d438d12f7
4 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-09-15 02:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ecm', '0006_alter_event_cates'),
]
operations = [
migrations.AlterField(
model_name='event',
name='obj_cate',
field=models.CharField(help_text='people(人员)/opl(作业)/other(其他)...', max_length=20, verbose_name='发生对象'),
),
]

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-09-15 02:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hrm', '0004_alter_employee_user'),
]
operations = [
migrations.AlterField(
model_name='employee',
name='phone',
field=models.CharField(blank=True, max_length=11, null=True, verbose_name='手机号'),
),
]

View File

@ -26,7 +26,7 @@ class Employee(CommonBModel):
related_name='employee',
on_delete=models.CASCADE, null=True, blank=True)
name = models.CharField('姓名', max_length=20)
phone = models.CharField('手机号', max_length=11, null=True, blank=True, unique=True)
phone = models.CharField('手机号', max_length=11, null=True, blank=True)
email = models.EmailField('邮箱号', null=True, blank=True)
number = models.CharField('人员编号', max_length=50, null=True, blank=True)
photo = models.CharField('证件照', max_length=1000, null=True, blank=True)

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2022-09-15 02:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('third', '0004_alter_tdevice_employee'),
]
operations = [
migrations.AlterField(
model_name='tdevice',
name='access_list',
field=models.JSONField(blank=True, default=list, help_text='employee/remployee/visitor/driver', verbose_name='自动下发人员类型'),
),
]