完善平台端物模型设置
This commit is contained in:
parent
c972c6a8bf
commit
032af91dd1
4279
src/JiShe.IoT.EntityFrameworkCore/Migrations/20260120070701_InitialCreate.Designer.cs
generated
Normal file
4279
src/JiShe.IoT.EntityFrameworkCore/Migrations/20260120070701_InitialCreate.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
4283
src/JiShe.IoT.EntityFrameworkCore/Migrations/20260121014333_updateIoTThingModels.Designer.cs
generated
Normal file
4283
src/JiShe.IoT.EntityFrameworkCore/Migrations/20260121014333_updateIoTThingModels.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,52 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updateIoTThingModels : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "IoTPlatformRawFieldExtension",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
comment: "物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true,
|
||||
oldComment: "物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsOperableIdentifier",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false,
|
||||
comment: "是否可操作物模型标识符");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "IsOperableIdentifier",
|
||||
table: "ServiceProIoTPlatformThingModelInfo");
|
||||
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "IoTPlatformRawFieldExtension",
|
||||
table: "ServiceProIoTPlatformThingModelInfo",
|
||||
type: "text",
|
||||
nullable: true,
|
||||
comment: "物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "text",
|
||||
oldNullable: true,
|
||||
oldComment: "物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1587,7 +1587,7 @@ namespace JiShe.IoT.Migrations
|
||||
|
||||
b.Property<string>("IoTPlatformRawFieldExtension")
|
||||
.HasColumnType("text")
|
||||
.HasComment("物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型");
|
||||
.HasComment("物联网平台中对应产品物模型标识符扩展,结构体或者数组的时候,是参数的名称与长度的键值对,其他类型就是长度或者值范围");
|
||||
|
||||
b.Property<string>("IoTPlatformRawFieldName")
|
||||
.IsRequired()
|
||||
@ -1601,6 +1601,10 @@ namespace JiShe.IoT.Migrations
|
||||
.HasDefaultValue(false)
|
||||
.HasColumnName("IsDeleted");
|
||||
|
||||
b.Property<bool>("IsOperableIdentifier")
|
||||
.HasColumnType("boolean")
|
||||
.HasComment("是否可操作物模型标识符");
|
||||
|
||||
b.Property<bool>("IsSpecialIdentifier")
|
||||
.HasColumnType("boolean")
|
||||
.HasComment("是否是特殊物模型标识符");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user