chore: 添加icon/image url
This commit is contained in:
parent
79a71ff57f
commit
97ad2b25f4
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 2.2.4 on 2024-04-24 14:57
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mosquito', '0037_deviceinfo_location_group'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='deviceinfo',
|
||||
name='icon_url',
|
||||
field=models.CharField(blank=True, max_length=300, null=True, verbose_name='icon地址'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='deviceinfo',
|
||||
name='image_url',
|
||||
field=models.CharField(blank=True, max_length=300, null=True, verbose_name='图片地址'),
|
||||
),
|
||||
]
|
|
@ -89,6 +89,8 @@ class DeviceInfo(models.Model):
|
|||
launch_time = models.DateTimeField(default=timezone.datetime(2023, 1, 11, tzinfo=timezone.utc),
|
||||
verbose_name='第一次启动时间')
|
||||
last_connect = models.DateTimeField(blank=True, null=True, verbose_name='最近连接时间')
|
||||
image_url = models.CharField(blank=True, null=True, max_length=300, verbose_name='图片地址')
|
||||
icon_url = models.CharField(blank=True, null=True, max_length=300, verbose_name='icon地址')
|
||||
|
||||
# mqtt 数据
|
||||
count = models.PositiveIntegerField(blank=True, null=True, verbose_name='蚊子计数')
|
||||
|
|
Loading…
Reference in New Issue