OneNET产品信息
This commit is contained in:
parent
913686356a
commit
93e66267c2
4323
src/JiShe.IoT.EntityFrameworkCore/Migrations/20260310025324_alertOneNETProduct20260310.Designer.cs
generated
Normal file
4323
src/JiShe.IoT.EntityFrameworkCore/Migrations/20260310025324_alertOneNETProduct20260310.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 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-HttpPost;2-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");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -2425,6 +2425,14 @@ namespace JiShe.IoT.Migrations
|
|||||||
.HasColumnType("integer")
|
.HasColumnType("integer")
|
||||||
.HasComment("数据协议");
|
.HasComment("数据协议");
|
||||||
|
|
||||||
|
b.Property<string>("DataPushInfo")
|
||||||
|
.HasColumnType("text")
|
||||||
|
.HasComment("数据推送信息,HTTP推送就是推送地址,Reist推送主题或者key");
|
||||||
|
|
||||||
|
b.Property<int?>("DataPushType")
|
||||||
|
.HasColumnType("integer")
|
||||||
|
.HasComment("数据推送类型, 1-HttpPost;2-ReisSubscription");
|
||||||
|
|
||||||
b.Property<Guid?>("DeleterId")
|
b.Property<Guid?>("DeleterId")
|
||||||
.HasColumnType("uuid")
|
.HasColumnType("uuid")
|
||||||
.HasColumnName("DeleterId");
|
.HasColumnName("DeleterId");
|
||||||
@ -2453,6 +2461,12 @@ namespace JiShe.IoT.Migrations
|
|||||||
b.Property<bool>("IsEnabled")
|
b.Property<bool>("IsEnabled")
|
||||||
.HasColumnType("boolean");
|
.HasColumnType("boolean");
|
||||||
|
|
||||||
|
b.Property<bool>("IsNeedPushData")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("boolean")
|
||||||
|
.HasDefaultValue(false)
|
||||||
|
.HasComment("是否需要推送数据");
|
||||||
|
|
||||||
b.Property<DateTime?>("LastModificationTime")
|
b.Property<DateTime?>("LastModificationTime")
|
||||||
.HasColumnType("timestamp with time zone")
|
.HasColumnType("timestamp with time zone")
|
||||||
.HasColumnName("LastModificationTime");
|
.HasColumnName("LastModificationTime");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user