tdevice 增加mtask_uid

This commit is contained in:
caoqianming 2023-03-10 17:08:03 +08:00
parent 367d9b31dd
commit f54cd0028f
2 changed files with 19 additions and 0 deletions

View File

@ -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'),
),
]

View File

@ -45,6 +45,7 @@ class TDevice(BaseModel):
is_clock = models.BooleanField('是否打卡设备', default=False)
access_list = models.JSONField('自动下发人员类型', default=list,
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)
third_info = models.JSONField('三方信息', default=dict,
null=False, blank=True)