feat: equip添加采集数据请求字段

This commit is contained in:
caoqianming 2025-02-17 14:35:43 +08:00
parent 8cbb921969
commit 57e6e23e95
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 3.2.12 on 2025-02-17 06:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('em', '0021_auto_20241203_1531'),
]
operations = [
migrations.AddField(
model_name='equipment',
name='cd_req_addr',
field=models.TextField(blank=True, null=True, verbose_name='采集数据的请求地址'),
),
]

View File

@ -114,6 +114,7 @@ class Equipment(CommonBModel):
power_kw = models.FloatField("功率", null=True, blank=True)
coordinates = models.JSONField("坐标", default=dict, blank=True)
cd_req_addr = models.TextField("采集数据的请求地址", null=True, blank=True)
class Meta:
verbose_name = "设备信息"