Compare commits
2 Commits
7b67519d9e
...
ab174e918e
| Author | SHA1 | Date | |
|---|---|---|---|
| ab174e918e | |||
| d6bd880d94 |
@ -2,7 +2,7 @@
|
||||
<!-- 定义项目加载属性 -->
|
||||
<PropertyGroup>
|
||||
<!--JiShe.ServicePro版本-->
|
||||
<ServiceProVersion>1.0.5.16</ServiceProVersion>
|
||||
<ServiceProVersion>1.0.5.19</ServiceProVersion>
|
||||
<!--Volo Abp 版本-->
|
||||
<VoloAbpVersion>9.1.1</VoloAbpVersion>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,90 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class meterinfo_table : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ServiceProMeterInfo",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
MeterName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "表计名称")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
MeterAddress = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "表计地址")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
MeterType = table.Column<int>(type: "int", nullable: false, comment: "表计类型"),
|
||||
Protocol = table.Column<int>(type: "int", nullable: false, comment: "协议类型"),
|
||||
Baudrate = table.Column<int>(type: "int", nullable: false, comment: "波特率"),
|
||||
MeteringCode = table.Column<int>(type: "int", nullable: false, comment: "表计编码"),
|
||||
MeteringPort = table.Column<int>(type: "int", nullable: false, comment: "表计端口"),
|
||||
Password = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "密码")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
DynamicPassword = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否动态密码"),
|
||||
SingleRate = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否单倍率"),
|
||||
TypeName = table.Column<int>(type: "int", maxLength: 128, nullable: false, comment: "表计类型名称"),
|
||||
SelfDevelop = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否自研"),
|
||||
BrandType = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true, comment: "品牌类型")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
ArchiveStatus = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "归档状态"),
|
||||
TripState = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否跳闸"),
|
||||
TimesA = table.Column<decimal>(type: "decimal(65,30)", nullable: false, comment: "倍率A"),
|
||||
Timev = table.Column<decimal>(type: "decimal(65,30)", nullable: false, comment: "倍率V"),
|
||||
HaveValve = table.Column<bool>(type: "tinyint(1)", nullable: true, comment: "是否带阀控"),
|
||||
FocusId = table.Column<int>(type: "int", nullable: false, comment: "集中器ID"),
|
||||
MeterId = table.Column<int>(type: "int", nullable: false, comment: "表计ID"),
|
||||
ProjectID = table.Column<int>(type: "int", nullable: false),
|
||||
DatabaseBusiID = table.Column<int>(type: "int", nullable: false, comment: "业务库ID"),
|
||||
Enabled = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否启用"),
|
||||
GatherCount = table.Column<int>(type: "int", nullable: false, comment: "采集项数量"),
|
||||
FunctionCount = table.Column<int>(type: "int", nullable: false, comment: "功能数量(包含采集项和阀控等)"),
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true),
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false),
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true),
|
||||
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, comment: "租户ID", collation: "ascii_general_ci"),
|
||||
Remark = table.Column<string>(type: "longtext", nullable: true, comment: "备注")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
OSACreatorId = table.Column<int>(type: "int", nullable: true, comment: "旧系统授权创建者Id"),
|
||||
OSALastModifierId = table.Column<int>(type: "int", nullable: true, comment: "旧系统授权最后修改者Id"),
|
||||
OSADeleterId = table.Column<int>(type: "int", nullable: true, comment: "旧系统授权最后删除者Id"),
|
||||
ExtraProperties = table.Column<string>(type: "longtext", nullable: true, comment: "扩展属性,用于存储自定义字段,JSON格式")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ServiceProMeterInfo", x => x.Id);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ServiceProMeterInfo_MeterAddress",
|
||||
table: "ServiceProMeterInfo",
|
||||
column: "MeterAddress");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ServiceProMeterInfo_MeterId",
|
||||
table: "ServiceProMeterInfo",
|
||||
column: "MeterId");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "ServiceProMeterInfo");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -13,8 +13,8 @@ using Volo.Abp.EntityFrameworkCore;
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
[DbContext(typeof(IoTDbContext))]
|
||||
[Migration("20250609003607_meterinfo_table")]
|
||||
partial class meterinfo_table
|
||||
[Migration("20250609070511_initCeate")]
|
||||
partial class initCeate
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class initCreate : Migration
|
||||
public partial class initCeate : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
@ -840,6 +840,64 @@ namespace JiShe.IoT.Migrations
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ServiceProMeterInfo",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
|
||||
MeterName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "表计名称")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
MeterAddress = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false, comment: "表计地址")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
MeterType = table.Column<int>(type: "int", nullable: false, comment: "表计类型"),
|
||||
Protocol = table.Column<int>(type: "int", nullable: false, comment: "协议类型"),
|
||||
Baudrate = table.Column<int>(type: "int", nullable: false, comment: "波特率"),
|
||||
MeteringCode = table.Column<int>(type: "int", nullable: false, comment: "表计编码"),
|
||||
MeteringPort = table.Column<int>(type: "int", nullable: false, comment: "表计端口"),
|
||||
Password = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "密码")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
DynamicPassword = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否动态密码"),
|
||||
SingleRate = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否单倍率"),
|
||||
TypeName = table.Column<int>(type: "int", maxLength: 128, nullable: false, comment: "表计类型名称"),
|
||||
SelfDevelop = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否自研"),
|
||||
BrandType = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true, comment: "品牌类型")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
ArchiveStatus = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "归档状态"),
|
||||
TripState = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否跳闸"),
|
||||
TimesA = table.Column<decimal>(type: "decimal(65,30)", nullable: false, comment: "倍率A"),
|
||||
Timev = table.Column<decimal>(type: "decimal(65,30)", nullable: false, comment: "倍率V"),
|
||||
HaveValve = table.Column<bool>(type: "tinyint(1)", nullable: true, comment: "是否带阀控"),
|
||||
FocusId = table.Column<int>(type: "int", nullable: false, comment: "集中器ID"),
|
||||
MeterId = table.Column<int>(type: "int", nullable: false, comment: "表计ID"),
|
||||
ProjectID = table.Column<int>(type: "int", nullable: false),
|
||||
DatabaseBusiID = table.Column<int>(type: "int", nullable: false, comment: "业务库ID"),
|
||||
Enabled = table.Column<bool>(type: "tinyint(1)", nullable: false, comment: "是否启用"),
|
||||
GatherCount = table.Column<int>(type: "int", nullable: false, comment: "采集项数量"),
|
||||
FunctionCount = table.Column<int>(type: "int", nullable: false, comment: "功能数量(包含采集项和阀控等)"),
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false)
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
CreationTime = table.Column<DateTime>(type: "datetime(6)", nullable: false),
|
||||
CreatorId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
|
||||
LastModificationTime = table.Column<DateTime>(type: "datetime(6)", nullable: true),
|
||||
LastModifierId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
|
||||
IsDeleted = table.Column<bool>(type: "tinyint(1)", nullable: false, defaultValue: false),
|
||||
DeleterId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
|
||||
DeletionTime = table.Column<DateTime>(type: "datetime(6)", nullable: true),
|
||||
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, comment: "租户ID", collation: "ascii_general_ci"),
|
||||
Remark = table.Column<string>(type: "longtext", nullable: true, comment: "备注")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
OSACreatorId = table.Column<int>(type: "int", nullable: true, comment: "旧系统授权创建者Id"),
|
||||
OSALastModifierId = table.Column<int>(type: "int", nullable: true, comment: "旧系统授权最后修改者Id"),
|
||||
OSADeleterId = table.Column<int>(type: "int", nullable: true, comment: "旧系统授权最后删除者Id"),
|
||||
ExtraProperties = table.Column<string>(type: "longtext", nullable: true, comment: "扩展属性,用于存储自定义字段,JSON格式")
|
||||
.Annotation("MySql:CharSet", "utf8mb4")
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_ServiceProMeterInfo", x => x.Id);
|
||||
})
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ServiceProTextTemplates",
|
||||
columns: table => new
|
||||
@ -1472,6 +1530,16 @@ namespace JiShe.IoT.Migrations
|
||||
table: "ServiceProFocusInfo",
|
||||
column: "FocusAddress");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ServiceProMeterInfo_MeterAddress",
|
||||
table: "ServiceProMeterInfo",
|
||||
column: "MeterAddress");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ServiceProMeterInfo_MeterId",
|
||||
table: "ServiceProMeterInfo",
|
||||
column: "MeterId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_ServiceProTextTemplates_Code",
|
||||
table: "ServiceProTextTemplates",
|
||||
@ -1582,6 +1650,9 @@ namespace JiShe.IoT.Migrations
|
||||
migrationBuilder.DropTable(
|
||||
name: "ServiceProMenus");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "ServiceProMeterInfo");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "ServiceProTextTemplates");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user