解析脚本测试

This commit is contained in:
ChenYi 2025-12-12 16:44:29 +08:00
parent b160064154
commit f9ce67e98f
3 changed files with 3891 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,42 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace JiShe.IoT.Migrations
{
/// <inheritdoc />
public partial class update20251212 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "IoTPlatformRawFieldExtension",
table: "ServiceProIoTPlatformThingModelInfo",
type: "text",
nullable: false,
comment: "物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型")
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.AddColumn<sbyte>(
name: "IsSpecialIdentifier",
table: "ServiceProIoTPlatformThingModelInfo",
type: "tinyint(1)",
nullable: false,
defaultValue: (sbyte)0,
comment: "是否是特殊物模型标识符");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IoTPlatformRawFieldExtension",
table: "ServiceProIoTPlatformThingModelInfo");
migrationBuilder.DropColumn(
name: "IsSpecialIdentifier",
table: "ServiceProIoTPlatformThingModelInfo");
}
}
}

View File

@ -1154,6 +1154,11 @@ namespace JiShe.IoT.Migrations
.HasColumnType("varchar(50)") .HasColumnType("varchar(50)")
.HasComment("物联网平台中对应的产品Id"); .HasComment("物联网平台中对应的产品Id");
b.Property<string>("IoTPlatformRawFieldExtension")
.IsRequired()
.HasColumnType("text")
.HasComment("物联网平台中对应产品物模型标识符扩展,用于扩展结构体类型");
b.Property<string>("IoTPlatformRawFieldName") b.Property<string>("IoTPlatformRawFieldName")
.IsRequired() .IsRequired()
.HasMaxLength(64) .HasMaxLength(64)
@ -1166,6 +1171,10 @@ namespace JiShe.IoT.Migrations
.HasDefaultValue(false) .HasDefaultValue(false)
.HasColumnName("IsDeleted"); .HasColumnName("IsDeleted");
b.Property<sbyte>("IsSpecialIdentifier")
.HasColumnType("tinyint(1)")
.HasComment("是否是特殊物模型标识符");
b.Property<sbyte>("IsValueNeedConvert") b.Property<sbyte>("IsValueNeedConvert")
.HasColumnType("tinyint(1)") .HasColumnType("tinyint(1)")
.HasComment("是否需要值类型转换"); .HasComment("是否需要值类型转换");