From 9ad37f41fd602a64ecb7eb39da1e7a72199719ac Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 5 Sep 2023 17:43:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0last=5Fws=5Fpushtime,?= =?UTF-8?q?=20enm=5Fdata=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ecm/migrations/0013_auto_20230905_1729.py | 23 +++++++++++++++++++ apps/ecm/models.py | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 apps/ecm/migrations/0013_auto_20230905_1729.py diff --git a/apps/ecm/migrations/0013_auto_20230905_1729.py b/apps/ecm/migrations/0013_auto_20230905_1729.py new file mode 100644 index 00000000..658c68a8 --- /dev/null +++ b/apps/ecm/migrations/0013_auto_20230905_1729.py @@ -0,0 +1,23 @@ +# Generated by Django 3.2.12 on 2023-09-05 09:29 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ecm', '0012_auto_20230901_0927'), + ] + + operations = [ + migrations.AddField( + model_name='event', + name='enm_data', + field=models.JSONField(blank=True, default=dict, verbose_name='能管数据'), + ), + migrations.AddField( + model_name='event', + name='last_ws_pushtime', + field=models.DateTimeField(blank=True, null=True, verbose_name='最近ws推送时间'), + ), + ] diff --git a/apps/ecm/models.py b/apps/ecm/models.py index 3cfd947a..4d87bd4e 100644 --- a/apps/ecm/models.py +++ b/apps/ecm/models.py @@ -112,6 +112,8 @@ class Event(CommonBDModel): on_delete=models.SET_NULL, null=True, blank=True) handle_desc = models.TextField('处理描述', null=True, blank=True) is_pushed = models.BooleanField('是否已推送', default=False) + last_ws_pushtime = models.DateTimeField('最近ws推送时间', null=True, blank=True) + enm_data = models.JSONField('能管数据', default=dict, null=False, blank=True) class Eventdo(BaseModel):