完成设备端物模型、属性、指令的增删改查
This commit is contained in:
parent
27da5050ce
commit
8bddc3749a
File diff suppressed because it is too large
Load Diff
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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)")
|
||||
@ -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),
|
||||
@ -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)")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user