diff --git a/apps/em/migrations/0022_equipment_cd_req_addr.py b/apps/em/migrations/0022_equipment_cd_req_addr.py new file mode 100644 index 00000000..f25a41f0 --- /dev/null +++ b/apps/em/migrations/0022_equipment_cd_req_addr.py @@ -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='采集数据的请求地址'), + ), + ] diff --git a/apps/em/models.py b/apps/em/models.py index ff7d6877..78946325 100644 --- a/apps/em/models.py +++ b/apps/em/models.py @@ -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 = "设备信息"