OneNET产品信息

This commit is contained in:
ChenYi 2026-03-10 11:32:41 +08:00
parent 913686356a
commit 93e66267c2
3 changed files with 4389 additions and 0 deletions

View File

@ -0,0 +1,52 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace JiShe.IoT.Migrations
{
/// <inheritdoc />
public partial class alertOneNETProduct20260310 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "DataPushInfo",
table: "ServiceProOneNETProductInfo",
type: "text",
nullable: true,
comment: "数据推送信息,HTTP推送就是推送地址Reist推送主题或者key");
migrationBuilder.AddColumn<int>(
name: "DataPushType",
table: "ServiceProOneNETProductInfo",
type: "integer",
nullable: true,
comment: "数据推送类型, 1-HttpPost2-ReisSubscription");
migrationBuilder.AddColumn<bool>(
name: "IsNeedPushData",
table: "ServiceProOneNETProductInfo",
type: "boolean",
nullable: false,
defaultValue: false,
comment: "是否需要推送数据");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DataPushInfo",
table: "ServiceProOneNETProductInfo");
migrationBuilder.DropColumn(
name: "DataPushType",
table: "ServiceProOneNETProductInfo");
migrationBuilder.DropColumn(
name: "IsNeedPushData",
table: "ServiceProOneNETProductInfo");
}
}
}

View File

@ -2425,6 +2425,14 @@ namespace JiShe.IoT.Migrations
.HasColumnType("integer")
.HasComment("数据协议");
b.Property<string>("DataPushInfo")
.HasColumnType("text")
.HasComment("数据推送信息,HTTP推送就是推送地址Reist推送主题或者key");
b.Property<int?>("DataPushType")
.HasColumnType("integer")
.HasComment("数据推送类型, 1-HttpPost2-ReisSubscription");
b.Property<Guid?>("DeleterId")
.HasColumnType("uuid")
.HasColumnName("DeleterId");
@ -2453,6 +2461,12 @@ namespace JiShe.IoT.Migrations
b.Property<bool>("IsEnabled")
.HasColumnType("boolean");
b.Property<bool>("IsNeedPushData")
.ValueGeneratedOnAdd()
.HasColumnType("boolean")
.HasDefaultValue(false)
.HasComment("是否需要推送数据");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("timestamp with time zone")
.HasColumnName("LastModificationTime");