tdevice 增加mtask_uid
This commit is contained in:
parent
367d9b31dd
commit
f54cd0028f
|
@ -0,0 +1,18 @@
|
||||||
|
# Generated by Django 3.2.12 on 2023-03-10 09:06
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('third', '0006_tlog_headers'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='tdevice',
|
||||||
|
name='mtask_uid',
|
||||||
|
field=models.CharField(blank=True, max_length=100, null=True, verbose_name='监控任务ID'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -45,6 +45,7 @@ class TDevice(BaseModel):
|
||||||
is_clock = models.BooleanField('是否打卡设备', default=False)
|
is_clock = models.BooleanField('是否打卡设备', default=False)
|
||||||
access_list = models.JSONField('自动下发人员类型', default=list,
|
access_list = models.JSONField('自动下发人员类型', default=list,
|
||||||
null=False, blank=True, help_text='employee/remployee/visitor/driver')
|
null=False, blank=True, help_text='employee/remployee/visitor/driver')
|
||||||
|
mtask_uid = models.CharField('监控任务ID', max_length=100, null=True, blank=True)
|
||||||
# algos = models.ManyToManyField('ecm.eventcate', through='ecm.algochannel', blank=True)
|
# algos = models.ManyToManyField('ecm.eventcate', through='ecm.algochannel', blank=True)
|
||||||
third_info = models.JSONField('三方信息', default=dict,
|
third_info = models.JSONField('三方信息', default=dict,
|
||||||
null=False, blank=True)
|
null=False, blank=True)
|
||||||
|
|
Loading…
Reference in New Issue