初始化菜单种子数据
This commit is contained in:
parent
cc2dd5d3ab
commit
d6bd880d94
@ -2,7 +2,7 @@
|
|||||||
<!-- 定义项目加载属性 -->
|
<!-- 定义项目加载属性 -->
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!--JiShe.ServicePro版本-->
|
<!--JiShe.ServicePro版本-->
|
||||||
<ServiceProVersion>1.0.5.15</ServiceProVersion>
|
<ServiceProVersion>1.0.5.19</ServiceProVersion>
|
||||||
<!--Volo Abp 版本-->
|
<!--Volo Abp 版本-->
|
||||||
<VoloAbpVersion>9.1.1</VoloAbpVersion>
|
<VoloAbpVersion>9.1.1</VoloAbpVersion>
|
||||||
|
|
||||||
|
|||||||
@ -10,12 +10,12 @@
|
|||||||
},
|
},
|
||||||
"Hangfire": {
|
"Hangfire": {
|
||||||
"Redis": {
|
"Redis": {
|
||||||
"Host": "47.110.60.222:6379,password=3JBGfyhTaD46nS",
|
"Host": "47.110.53.196:6379,password=1q3J@BGf!yhTaD46nS#",
|
||||||
"DB": "2"
|
"DB": "2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Redis": {
|
"Redis": {
|
||||||
"Configuration": "47.110.60.222:6379,password=3JBGfyhTaD46nS,defaultdatabase=5"
|
"Configuration": "47.110.53.196:6379,password=1q3J@BGf!yhTaD46nS#,defaultdatabase=5"
|
||||||
},
|
},
|
||||||
"Kafka": {
|
"Kafka": {
|
||||||
"BootstrapServers": "47.110.62.104:9092,47.110.53.196:9092,47.110.60.222:9092",
|
"BootstrapServers": "47.110.62.104:9092,47.110.53.196:9092,47.110.60.222:9092",
|
||||||
@ -30,9 +30,9 @@
|
|||||||
},
|
},
|
||||||
"IoTDBOptions": {
|
"IoTDBOptions": {
|
||||||
"UserName": "root",
|
"UserName": "root",
|
||||||
"Password": "root",
|
"Password": "Lixiao@1980",
|
||||||
"TreeModelClusterList": [ "121.42.175.177:16667" ],
|
"TreeModelClusterList": [ "47.110.53.196:6667", "47.110.60.222:6667", "47.110.62.104:6667" ],
|
||||||
"TableModelClusterList": [ "121.42.175.177:16667" ],
|
"TableModelClusterList": [ "47.110.53.196:6667", "47.110.60.222:6667", "47.110.62.104:6667" ],
|
||||||
"PoolSize": 32,
|
"PoolSize": 32,
|
||||||
"TableModelDataBaseName": "energy",
|
"TableModelDataBaseName": "energy",
|
||||||
"OpenDebugMode": true,
|
"OpenDebugMode": true,
|
||||||
@ -64,7 +64,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"FreeRedisOptions": {
|
"FreeRedisOptions": {
|
||||||
"ConnectionString": "47.110.60.222:6379,password=3JBGfyhTaD46nS,defaultdatabase=1",
|
"ConnectionString": "47.110.53.196:6379,password=1q3J@BGf!yhTaD46nS#,defaultdatabase=1",
|
||||||
"UseDistributedCache": true
|
"UseDistributedCache": true
|
||||||
},
|
},
|
||||||
"FreeSqlProviderOptions": {
|
"FreeSqlProviderOptions": {
|
||||||
|
|||||||
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
|
namespace JiShe.IoT.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(IoTDbContext))]
|
[DbContext(typeof(IoTDbContext))]
|
||||||
[Migration("20250609003607_meterinfo_table")]
|
[Migration("20250609070511_initCeate")]
|
||||||
partial class meterinfo_table
|
partial class initCeate
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
@ -6,7 +6,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
|
|||||||
namespace JiShe.IoT.Migrations
|
namespace JiShe.IoT.Migrations
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class initCreate : Migration
|
public partial class initCeate : Migration
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
@ -840,6 +840,64 @@ namespace JiShe.IoT.Migrations
|
|||||||
})
|
})
|
||||||
.Annotation("MySql:CharSet", "utf8mb4");
|
.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(
|
migrationBuilder.CreateTable(
|
||||||
name: "ServiceProTextTemplates",
|
name: "ServiceProTextTemplates",
|
||||||
columns: table => new
|
columns: table => new
|
||||||
@ -1472,6 +1530,16 @@ namespace JiShe.IoT.Migrations
|
|||||||
table: "ServiceProFocusInfo",
|
table: "ServiceProFocusInfo",
|
||||||
column: "FocusAddress");
|
column: "FocusAddress");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_ServiceProMeterInfo_MeterAddress",
|
||||||
|
table: "ServiceProMeterInfo",
|
||||||
|
column: "MeterAddress");
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_ServiceProMeterInfo_MeterId",
|
||||||
|
table: "ServiceProMeterInfo",
|
||||||
|
column: "MeterId");
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_ServiceProTextTemplates_Code",
|
name: "IX_ServiceProTextTemplates_Code",
|
||||||
table: "ServiceProTextTemplates",
|
table: "ServiceProTextTemplates",
|
||||||
@ -1582,6 +1650,9 @@ namespace JiShe.IoT.Migrations
|
|||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "ServiceProMenus");
|
name: "ServiceProMenus");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "ServiceProMeterInfo");
|
||||||
|
|
||||||
migrationBuilder.DropTable(
|
migrationBuilder.DropTable(
|
||||||
name: "ServiceProTextTemplates");
|
name: "ServiceProTextTemplates");
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user