From 57e6e23e9539604e74fa2784f7980f5ccfc934af Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 17 Feb 2025 14:35:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20equip=E6=B7=BB=E5=8A=A0=E9=87=87?= =?UTF-8?q?=E9=9B=86=E6=95=B0=E6=8D=AE=E8=AF=B7=E6=B1=82=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/0022_equipment_cd_req_addr.py | 18 ++++++++++++++++++ apps/em/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 apps/em/migrations/0022_equipment_cd_req_addr.py 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 = "设备信息"