完成设备端物模型、属性、指令的增删改查

This commit is contained in:
ChenYi 2025-12-05 15:05:49 +08:00
parent 27da5050ce
commit 8bddc3749a
5 changed files with 5 additions and 3834 deletions

View File

@ -1,30 +0,0 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace JiShe.IoT.Migrations
{
/// <inheritdoc />
public partial class _202512051140 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<sbyte>(
name: "FunctionAnalysisFlag",
table: "ServiceProDeviceThingModelManagement",
type: "tinyint(1)",
nullable: false,
defaultValue: (sbyte)0,
comment: "函数解析标记默认为false 不能解析");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "FunctionAnalysisFlag",
table: "ServiceProDeviceThingModelManagement");
}
}
}

View File

@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore;
namespace JiShe.IoT.Migrations
{
[DbContext(typeof(IoTDbContext))]
[Migration("20251205034136_202512051140")]
partial class _202512051140
[Migration("20251205064351_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
@ -813,7 +813,7 @@ namespace JiShe.IoT.Migrations
.HasColumnType("int")
.HasComment("旧系统授权最后修改者Id");
b.Property<string>("PropertyArray")
b.PrimitiveCollection<string>("PropertyArray")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("varchar(1024)")

View File

@ -970,6 +970,7 @@ namespace JiShe.IoT.Migrations
FunctionScript = table.Column<string>(type: "text", nullable: false, comment: "脚本函数体")
.Annotation("MySql:CharSet", "utf8mb4"),
ParsingSequence = table.Column<int>(type: "int", nullable: false, comment: "解析顺序1234或者3412(高低位反转)"),
FunctionAnalysisFlag = table.Column<sbyte>(type: "tinyint(1)", nullable: false, comment: "函数解析标记默认为false 不能解析"),
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false),

View File

@ -810,7 +810,7 @@ namespace JiShe.IoT.Migrations
.HasColumnType("int")
.HasComment("旧系统授权最后修改者Id");
b.Property<string>("PropertyArray")
b.PrimitiveCollection<string>("PropertyArray")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("varchar(1024)")