feat: 增加last_ws_pushtime, enm_data字段
This commit is contained in:
parent
28313b0c33
commit
9ad37f41fd
|
@ -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推送时间'),
|
||||||
|
),
|
||||||
|
]
|
|
@ -112,6 +112,8 @@ class Event(CommonBDModel):
|
||||||
on_delete=models.SET_NULL, null=True, blank=True)
|
on_delete=models.SET_NULL, null=True, blank=True)
|
||||||
handle_desc = models.TextField('处理描述', null=True, blank=True)
|
handle_desc = models.TextField('处理描述', null=True, blank=True)
|
||||||
is_pushed = models.BooleanField('是否已推送', default=False)
|
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):
|
class Eventdo(BaseModel):
|
||||||
|
|
Loading…
Reference in New Issue