From f54cd0028fbc10ab10253093e4e9726eb059aeba Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 10 Mar 2023 17:08:03 +0800 Subject: [PATCH] =?UTF-8?q?tdevice=20=E5=A2=9E=E5=8A=A0mtask=5Fuid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third/migrations/0007_tdevice_mtask_uid.py | 18 ++++++++++++++++++ apps/third/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/third/migrations/0007_tdevice_mtask_uid.py diff --git a/apps/third/migrations/0007_tdevice_mtask_uid.py b/apps/third/migrations/0007_tdevice_mtask_uid.py new file mode 100644 index 00000000..b39cb342 --- /dev/null +++ b/apps/third/migrations/0007_tdevice_mtask_uid.py @@ -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'), + ), + ] diff --git a/apps/third/models.py b/apps/third/models.py index 5f558757..6b339138 100755 --- a/apps/third/models.py +++ b/apps/third/models.py @@ -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)