优化字典

This commit is contained in:
ChenYi 2026-04-01 17:23:10 +08:00
parent 562edc3792
commit e9d37c954f
3 changed files with 14 additions and 13 deletions

View File

@ -5,7 +5,6 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Newtonsoft.Json.Linq;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Volo.Abp.EntityFrameworkCore;
@ -14,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace JiShe.IoT.Migrations
{
[DbContext(typeof(IoTDbContext))]
[Migration("20260326023314_InitialCreate")]
[Migration("20260401063556_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
@ -1593,7 +1592,9 @@ namespace JiShe.IoT.Migrations
.HasComment("物模型标识符访问模式");
b.Property<string>("CallServiceOperateCommand")
.HasColumnType("text");
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasComment("服务调用参数通用指令,物模型服务类才有,一般用于保存操作子设备时的透明转发指令。");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
@ -1648,7 +1649,7 @@ namespace JiShe.IoT.Migrations
.HasColumnType("character varying(64)")
.HasComment("物联网平台中对应的产品物模型属性或者事件数据类型");
b.Property<JToken>("IoTPlatformRawFieldExtension")
b.Property<string>("IoTPlatformRawFieldExtension")
.HasColumnType("jsonb")
.HasComment("物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围");
@ -1706,7 +1707,7 @@ namespace JiShe.IoT.Migrations
.HasColumnType("character varying(64)")
.HasComment("管理后台产品标准的物模型属性或者事件名称");
b.Property<JToken>("StandardFieldFieldExtension")
b.Property<string>("StandardFieldFieldExtension")
.HasColumnType("jsonb")
.HasComment("标准物模型字段标识符扩展,数组或者结构体时候的参数或者元素名称集合");

View File

@ -1,6 +1,5 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Newtonsoft.Json.Linq;
#nullable disable
@ -944,17 +943,17 @@ namespace JiShe.IoT.Migrations
FiledType = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: false, comment: "物联网平台中对应产品物模型属性或者事件类型"),
IoTPlatformRawFieldName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false, comment: "物联网平台中对应的产品物模型属性或者事件名称"),
IoTPlatformRawFieldDataType = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: true, comment: "物联网平台中对应的产品物模型属性或者事件数据类型"),
IoTPlatformRawFieldExtension = table.Column<JToken>(type: "jsonb", nullable: true, comment: "物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围"),
IoTPlatformRawFieldExtension = table.Column<string>(type: "jsonb", nullable: true, comment: "物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围"),
StandardFieldName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false, comment: "管理后台产品标准的物模型属性或者事件名称"),
StandardFieldValueType = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: false, comment: "标准物模型字段值类型"),
StandardFieldDisplayName = table.Column<string>(type: "character varying(64)", maxLength: 64, nullable: false, comment: "管理后台产品标准的物模型属性或者事件名称"),
StandardFieldFieldExtension = table.Column<JToken>(type: "jsonb", nullable: true, comment: "标准物模型字段标识符扩展,数组或者结构体时候的参数或者元素名称集合"),
StandardFieldFieldExtension = table.Column<string>(type: "jsonb", nullable: true, comment: "标准物模型字段标识符扩展,数组或者结构体时候的参数或者元素名称集合"),
IsValueNeedConvert = table.Column<bool>(type: "boolean", nullable: false, comment: "是否需要值类型转换"),
IsSpecialIdentifier = table.Column<bool>(type: "boolean", nullable: false, comment: "是否是特殊物模型标识符"),
IsOperableIdentifier = table.Column<bool>(type: "boolean", nullable: false, comment: "是否可操作物模型标识符"),
AccessMode = table.Column<string>(type: "character varying(10)", maxLength: 10, nullable: false, defaultValue: "r", comment: "物模型标识符访问模式"),
IdentifierType = table.Column<int>(type: "integer", nullable: false, comment: "物模型标识符类型"),
CallServiceOperateCommand = table.Column<string>(type: "text", nullable: true),
CallServiceOperateCommand = table.Column<string>(type: "character varying(128)", maxLength: 128, nullable: true, comment: "服务调用参数通用指令,物模型服务类才有,一般用于保存操作子设备时的透明转发指令。"),
ConcurrencyStamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: false),
CreationTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
CreatorId = table.Column<Guid>(type: "uuid", nullable: true),

View File

@ -4,7 +4,6 @@ using JiShe.IoT.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Newtonsoft.Json.Linq;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
using Volo.Abp.EntityFrameworkCore;
@ -1590,7 +1589,9 @@ namespace JiShe.IoT.Migrations
.HasComment("物模型标识符访问模式");
b.Property<string>("CallServiceOperateCommand")
.HasColumnType("text");
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasComment("服务调用参数通用指令,物模型服务类才有,一般用于保存操作子设备时的透明转发指令。");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
@ -1645,7 +1646,7 @@ namespace JiShe.IoT.Migrations
.HasColumnType("character varying(64)")
.HasComment("物联网平台中对应的产品物模型属性或者事件数据类型");
b.Property<JToken>("IoTPlatformRawFieldExtension")
b.Property<string>("IoTPlatformRawFieldExtension")
.HasColumnType("jsonb")
.HasComment("物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围");
@ -1703,7 +1704,7 @@ namespace JiShe.IoT.Migrations
.HasColumnType("character varying(64)")
.HasComment("管理后台产品标准的物模型属性或者事件名称");
b.Property<JToken>("StandardFieldFieldExtension")
b.Property<string>("StandardFieldFieldExtension")
.HasColumnType("jsonb")
.HasComment("标准物模型字段标识符扩展,数组或者结构体时候的参数或者元素名称集合");