feat: equip添加采集数据请求字段
This commit is contained in:
parent
8cbb921969
commit
57e6e23e95
|
@ -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='采集数据的请求地址'),
|
||||
),
|
||||
]
|
|
@ -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 = "设备信息"
|
||||
|
|
Loading…
Reference in New Issue