diff --git a/Directory.Build.Microsoft.targets b/Directory.Build.Microsoft.targets
index d6e6d98..33e48c0 100644
--- a/Directory.Build.Microsoft.targets
+++ b/Directory.Build.Microsoft.targets
@@ -17,9 +17,10 @@
-
-
-
+
+
+
+
diff --git a/Directory.Build.Volo.targets b/Directory.Build.Volo.targets
index c40b1cc..4b4cf58 100644
--- a/Directory.Build.Volo.targets
+++ b/Directory.Build.Volo.targets
@@ -94,5 +94,6 @@
+
\ No newline at end of file
diff --git a/Directory.Build.props b/Directory.Build.props
index e3dea23..2a080ed 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -4,10 +4,10 @@
1.0.5.40
- 9.2.1
+ 9.3.4
- 9.0.4
+ 9.0.6
net9.0
diff --git a/Directory.Build.targets b/Directory.Build.targets
index b368fca..3d137be 100644
--- a/Directory.Build.targets
+++ b/Directory.Build.targets
@@ -103,6 +103,9 @@
+
+
+
diff --git a/host/JiShe.IoT.HttpApi.Host/configs/appsettings.Development.json b/host/JiShe.IoT.HttpApi.Host/configs/appsettings.Development.json
index 6ff0927..2e492ec 100644
--- a/host/JiShe.IoT.HttpApi.Host/configs/appsettings.Development.json
+++ b/host/JiShe.IoT.HttpApi.Host/configs/appsettings.Development.json
@@ -4,19 +4,19 @@
"CorsOrigins": "https://*.IoT.com,http://localhost:4200,http://localhost:3100,http://localhost:80,http://10.10.90.3:4200"
},
"ConnectionStrings": {
- "Default": "Data Source=192.168.111.174;Port=13306;Database=JiSheIoTProDB;uid=root;pwd=JiShe!aqG#5kGgh&0;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true;TreatTinyAsBoolean=false;SslMode=None;Pooling=true;"
+ "Default": "Data Source=localhost;Port=33306;Database=JiSheIoTProDB4;uid=root;pwd=123456789;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true;TreatTinyAsBoolean=false;SslMode=None;Pooling=true;"
},
"Hangfire": {
"Redis": {
- "Host": "192.168.111.174:30712,password=1q3J@BGf!yhTaD46nS#",
+ "Host": "47.110.53.196:30712,password=1q3J@BGf!yhTaD46nS#",
"DB": "2"
}
},
"Redis": {
- "Configuration": "192.168.111.174:30712,password=1q3J@BGf!yhTaD46nS#,defaultdatabase=5"
+ "Configuration": "47.110.53.196:30712,password=1q3J@BGf!yhTaD46nS#,defaultdatabase=5"
},
"Kafka": {
- "BootstrapServers": "47.110.62.104:9094,192.168.111.174:9094,47.110.60.222:9094",
+ "BootstrapServers": "47.110.62.104:9094,47.110.53.196:9094,47.110.60.222:9094",
"EnableFilter": true,
"EnableAuthorization": false,
"SaslUserName": "lixiao",
@@ -26,8 +26,8 @@
"TaskThreadCount": -1
},
"Pulsar": {
- "ServiceUrl": "pulsar+ssl://iot-north-mq.heclouds.com:6651", //pulsar+ssl://iot-north-mq.heclouds.com:6651 ,pulsar://192.168.111.174:26974
- "WebUrl": "http://192.168.111.174:9094",
+ "ServiceUrl": "pulsar+ssl://iot-north-mq.heclouds.com:6651", //pulsar+ssl://iot-north-mq.heclouds.com:6651 ,pulsar://47.110.53.196:26974
+ "WebUrl": "http://47.110.53.196:9094",
"UserName": "admin",
"TenantName": "1YMVZZkAkRArjxSD8457",
"Namespace": "OneNET",
@@ -57,10 +57,10 @@
"IoTDBOptions": {
"UserName": "root",
"Password": "Lixiao@1980",
- //"TreeModelClusterList": [ "192.168.111.174:6667", "47.110.60.222:6667", "47.110.62.104:6667" ],
- //"TableModelClusterList": [ "192.168.111.174:6667", "47.110.60.222:6667", "47.110.62.104:6667" ],
- "TreeModelClusterList": [ "192.168.111.174:30710" ],
- "TableModelClusterList": [ "192.168.111.174:30710" ],
+ //"TreeModelClusterList": [ "47.110.53.196:6667", "47.110.60.222:6667", "47.110.62.104:6667" ],
+ //"TableModelClusterList": [ "47.110.53.196:6667", "47.110.60.222:6667", "47.110.62.104:6667" ],
+ "TreeModelClusterList": [ "47.110.53.196:30710" ],
+ "TableModelClusterList": [ "47.110.53.196:30710" ],
"PoolSize": 32,
"DataBaseName": "jisheiotdata",
"OpenDebugMode": true,
@@ -97,7 +97,7 @@
}
},
"FreeRedisOptions": {
- "ConnectionString": "192.168.111.174:30712,password=1q3J@BGf!yhTaD46nS#,abortConnect=false,connectTimeout=30000,allowAdmin=true,maxPoolSize=500,defaultdatabase=14",
+ "ConnectionString": "47.110.53.196:30712,password=1q3J@BGf!yhTaD46nS#,abortConnect=false,connectTimeout=30000,allowAdmin=true,maxPoolSize=500,defaultdatabase=14",
"UseDistributedCache": true
},
"FreeSqlProviderOptions": {
diff --git a/src/JiShe.IoT.DbMigrator/appsettings.json b/src/JiShe.IoT.DbMigrator/appsettings.json
index 5cb5a3c..64b4512 100644
--- a/src/JiShe.IoT.DbMigrator/appsettings.json
+++ b/src/JiShe.IoT.DbMigrator/appsettings.json
@@ -1,14 +1,14 @@
{
"ConnectionStrings": {
- "Default": "Data Source=192.168.111.174;Port=13306;Database=JiSheIoTProDB;uid=root;pwd=JiShe!aqG#5kGgh&0;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true;TreatTinyAsBoolean=false;SslMode=None;Pooling=true;"
+ "Default": "Data Source=localhost;Port=33306;Database=JiSheIoTProDB4;uid=root;pwd=123456789;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true;TreatTinyAsBoolean=false;SslMode=None;Pooling=true;"
},
"IoTDBOptions": {
"UserName": "root",
"Password": "Lixiao@1980",
//"TreeModelClusterList": [ "47.110.53.196:6667", "47.110.60.222:6667", "47.110.62.104:6667" ],
//"TableModelClusterList": [ "47.110.53.196:6667", "47.110.60.222:6667", "47.110.62.104:6667" ],
- "TreeModelClusterList": [ "192.168.111.174:30710" ],
- "TableModelClusterList": [ "192.168.111.174:30710" ],
+ "TreeModelClusterList": [ "47.110.53.196:30710" ],
+ "TableModelClusterList": [ "47.110.53.196:30710" ],
"PoolSize": 32,
"DataBaseName": "jisheiotdata",
"OpenDebugMode": false,
diff --git a/src/JiShe.IoT.EntityFrameworkCore/EntityFrameworkCore/IoTDbContext.cs b/src/JiShe.IoT.EntityFrameworkCore/EntityFrameworkCore/IoTDbContext.cs
index 5f9c0bf..0e400af 100644
--- a/src/JiShe.IoT.EntityFrameworkCore/EntityFrameworkCore/IoTDbContext.cs
+++ b/src/JiShe.IoT.EntityFrameworkCore/EntityFrameworkCore/IoTDbContext.cs
@@ -50,6 +50,8 @@ namespace JiShe.IoT.EntityFrameworkCore
public DbSet TenantConnectionStrings { get; set; }
public DbSet BackgroundJobs { get; set; }
public DbSet AuditLogs { get; set; }
+ public DbSet AuditLogExcelFiles { get; set; }
+
public DbSet Notifications { get; set; }
public DbSet NotificationSubscriptions { get; set; }
public DbSet DataDictionaries { get; set; }
diff --git a/src/JiShe.IoT.EntityFrameworkCore/EntityFrameworkCore/IoTMigrationsDbContextFactory.cs b/src/JiShe.IoT.EntityFrameworkCore/EntityFrameworkCore/IoTMigrationsDbContextFactory.cs
index 4b8a107..b6f8181 100644
--- a/src/JiShe.IoT.EntityFrameworkCore/EntityFrameworkCore/IoTMigrationsDbContextFactory.cs
+++ b/src/JiShe.IoT.EntityFrameworkCore/EntityFrameworkCore/IoTMigrationsDbContextFactory.cs
@@ -11,7 +11,7 @@ namespace JiShe.IoT.EntityFrameworkCore
var configuration = BuildConfiguration();
var builder = new DbContextOptionsBuilder()
- .UseMySql(configuration.GetConnectionString("Default"), MySqlServerVersion.LatestSupportedServerVersion);
+ .UseMySQL(configuration.GetConnectionString("Default") ?? string.Empty);
return new IoTDbContext(builder.Options);
}
diff --git a/src/JiShe.IoT.EntityFrameworkCore/Migrations/20251205064351_InitialCreate.Designer.cs b/src/JiShe.IoT.EntityFrameworkCore/Migrations/20251207050159_InitialCreate.Designer.cs
similarity index 99%
rename from src/JiShe.IoT.EntityFrameworkCore/Migrations/20251205064351_InitialCreate.Designer.cs
rename to src/JiShe.IoT.EntityFrameworkCore/Migrations/20251207050159_InitialCreate.Designer.cs
index 34875da..fff8c85 100644
--- a/src/JiShe.IoT.EntityFrameworkCore/Migrations/20251205064351_InitialCreate.Designer.cs
+++ b/src/JiShe.IoT.EntityFrameworkCore/Migrations/20251207050159_InitialCreate.Designer.cs
@@ -3,17 +3,15 @@ using System;
using JiShe.IoT.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
-using Volo.Abp.EntityFrameworkCore;
#nullable disable
namespace JiShe.IoT.Migrations
{
[DbContext(typeof(IoTDbContext))]
- [Migration("20251205064351_InitialCreate")]
+ [Migration("20251207050159_InitialCreate")]
partial class InitialCreate
{
///
@@ -21,12 +19,9 @@ namespace JiShe.IoT.Migrations
{
#pragma warning disable 612, 618
modelBuilder
- .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql)
- .HasAnnotation("ProductVersion", "9.0.4")
+ .HasAnnotation("ProductVersion", "9.0.6")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
- MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
-
modelBuilder.Entity("JiShe.ServicePro.BasicManagement.UserRefreshTokens.UserRefreshToken", b =>
{
b.Property("Id")
@@ -813,7 +808,7 @@ namespace JiShe.IoT.Migrations
.HasColumnType("int")
.HasComment("旧系统授权最后修改者Id");
- b.PrimitiveCollection("PropertyArray")
+ b.Property("PropertyArray")
.IsRequired()
.HasMaxLength(1024)
.HasColumnType("varchar(1024)")
@@ -2355,6 +2350,33 @@ namespace JiShe.IoT.Migrations
b.ToTable("AbpAuditLogActions", (string)null);
});
+ modelBuilder.Entity("Volo.Abp.AuditLogging.AuditLogExcelFile", b =>
+ {
+ b.Property("Id")
+ .HasColumnType("char(36)");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime(6)")
+ .HasColumnName("CreationTime");
+
+ b.Property("CreatorId")
+ .HasColumnType("char(36)")
+ .HasColumnName("CreatorId");
+
+ b.Property("FileName")
+ .HasMaxLength(256)
+ .HasColumnType("varchar(256)")
+ .HasColumnName("FileName");
+
+ b.Property("TenantId")
+ .HasColumnType("char(36)")
+ .HasColumnName("TenantId");
+
+ b.HasKey("Id");
+
+ b.ToTable("AbpAuditLogExcelFiles", (string)null);
+ });
+
modelBuilder.Entity("Volo.Abp.AuditLogging.EntityChange", b =>
{
b.Property("Id")
@@ -2997,7 +3019,7 @@ namespace JiShe.IoT.Migrations
.HasColumnName("LastModifierId");
b.Property("LastPasswordChangeTime")
- .HasColumnType("datetime(6)");
+ .HasColumnType("datetime");
b.Property("LockoutEnabled")
.ValueGeneratedOnAdd()
@@ -3006,7 +3028,7 @@ namespace JiShe.IoT.Migrations
.HasColumnName("LockoutEnabled");
b.Property("LockoutEnd")
- .HasColumnType("datetime(6)");
+ .HasColumnType("datetime");
b.Property("Name")
.HasMaxLength(64)
diff --git a/src/JiShe.IoT.EntityFrameworkCore/Migrations/20251205064351_InitialCreate.cs b/src/JiShe.IoT.EntityFrameworkCore/Migrations/20251207050159_InitialCreate.cs
similarity index 72%
rename from src/JiShe.IoT.EntityFrameworkCore/Migrations/20251205064351_InitialCreate.cs
rename to src/JiShe.IoT.EntityFrameworkCore/Migrations/20251207050159_InitialCreate.cs
index 7e093ef..cdc6fa4 100644
--- a/src/JiShe.IoT.EntityFrameworkCore/Migrations/20251205064351_InitialCreate.cs
+++ b/src/JiShe.IoT.EntityFrameworkCore/Migrations/20251207050159_InitialCreate.cs
@@ -12,137 +12,121 @@ namespace JiShe.IoT.Migrations
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterDatabase()
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
+
+ migrationBuilder.CreateTable(
+ name: "AbpAuditLogExcelFiles",
+ columns: table => new
+ {
+ Id = table.Column(type: "char(36)", nullable: false),
+ TenantId = table.Column(type: "char(36)", nullable: true),
+ FileName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
+ CreationTime = table.Column(type: "datetime(6)", nullable: false),
+ CreatorId = table.Column(type: "char(36)", nullable: true)
+ },
+ constraints: table =>
+ {
+ table.PrimaryKey("PK_AbpAuditLogExcelFiles", x => x.Id);
+ })
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpAuditLogs",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- ApplicationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- UserId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- UserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- TenantName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ImpersonatorUserId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- ImpersonatorUserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ImpersonatorTenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- ImpersonatorTenantName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ ApplicationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: true),
+ UserId = table.Column(type: "char(36)", nullable: true),
+ UserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
+ TenantId = table.Column(type: "char(36)", nullable: true),
+ TenantName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true),
+ ImpersonatorUserId = table.Column(type: "char(36)", nullable: true),
+ ImpersonatorUserName = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
+ ImpersonatorTenantId = table.Column(type: "char(36)", nullable: true),
+ ImpersonatorTenantName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true),
ExecutionTime = table.Column(type: "datetime(6)", nullable: false),
ExecutionDuration = table.Column(type: "int", nullable: false),
- ClientIpAddress = table.Column(type: "varchar(64)", maxLength: 64, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ClientName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ClientId = table.Column(type: "varchar(64)", maxLength: 64, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- CorrelationId = table.Column(type: "varchar(64)", maxLength: 64, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- BrowserInfo = table.Column(type: "varchar(512)", maxLength: 512, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- HttpMethod = table.Column(type: "varchar(16)", maxLength: 16, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- Url = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- Exceptions = table.Column(type: "longtext", nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- Comments = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ ClientIpAddress = table.Column(type: "varchar(64)", maxLength: 64, nullable: true),
+ ClientName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true),
+ ClientId = table.Column(type: "varchar(64)", maxLength: 64, nullable: true),
+ CorrelationId = table.Column(type: "varchar(64)", maxLength: 64, nullable: true),
+ BrowserInfo = table.Column(type: "varchar(512)", maxLength: 512, nullable: true),
+ HttpMethod = table.Column(type: "varchar(16)", maxLength: 16, nullable: true),
+ Url = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
+ Exceptions = table.Column(type: "longtext", nullable: true),
+ Comments = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
HttpStatusCode = table.Column(type: "int", nullable: true),
- ExtraProperties = table.Column(type: "longtext", nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ ExtraProperties = table.Column(type: "longtext", nullable: false),
ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_AbpAuditLogs", x => x.Id);
})
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpBackgroundJobs",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- ApplicationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- JobName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- JobArgs = table.Column(type: "longtext", maxLength: 1048576, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ ApplicationName = table.Column(type: "varchar(96)", maxLength: 96, nullable: true),
+ JobName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false),
+ JobArgs = table.Column(type: "longtext", maxLength: 1048576, nullable: false),
TryCount = table.Column(type: "smallint", nullable: false, defaultValue: (short)0),
CreationTime = table.Column(type: "datetime(6)", nullable: false),
NextTryTime = table.Column(type: "datetime(6)", nullable: false),
LastTryTime = table.Column(type: "datetime(6)", nullable: true),
IsAbandoned = table.Column(type: "bit(1)", nullable: false, defaultValue: false),
Priority = table.Column(type: "tinyint unsigned", nullable: false, defaultValue: (byte)15),
- ExtraProperties = table.Column(type: "longtext", nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ ExtraProperties = table.Column(type: "longtext", nullable: false),
ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_AbpBackgroundJobs", x => x.Id);
})
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpClaimTypes",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- Name = table.Column(type: "varchar(256)", maxLength: 256, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ Name = table.Column(type: "varchar(256)", maxLength: 256, nullable: false),
Required = table.Column(type: "bit(1)", nullable: false),
IsStatic = table.Column(type: "bit(1)", nullable: false),
- Regex = table.Column(type: "varchar(512)", maxLength: 512, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- RegexDescription = table.Column(type: "varchar(128)", maxLength: 128, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- Description = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Regex = table.Column(type: "varchar(512)", maxLength: 512, nullable: true),
+ RegexDescription = table.Column(type: "varchar(128)", maxLength: 128, nullable: true),
+ Description = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
ValueType = table.Column(type: "int", nullable: false),
CreationTime = table.Column(type: "datetime(6)", nullable: false),
- ExtraProperties = table.Column(type: "longtext", nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ ExtraProperties = table.Column(type: "longtext", nullable: false),
ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_AbpClaimTypes", x => x.Id);
})
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpDataDictionaries",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- Code = table.Column(type: "varchar(64)", maxLength: 64, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- DisplayText = table.Column(type: "varchar(64)", maxLength: 64, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- Description = table.Column(type: "varchar(1024)", maxLength: 1024, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ExtraProperties = table.Column(type: "longtext", nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ TenantId = table.Column(type: "char(36)", nullable: true),
+ Code = table.Column(type: "varchar(64)", maxLength: 64, nullable: false),
+ DisplayText = table.Column(type: "varchar(64)", maxLength: 64, nullable: false),
+ Description = table.Column(type: "varchar(1024)", maxLength: 1024, nullable: false),
+ ExtraProperties = table.Column(type: "longtext", nullable: false),
+ ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false),
CreationTime = table.Column(type: "datetime(6)", nullable: false),
- CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ CreatorId = table.Column(type: "char(36)", nullable: true),
LastModificationTime = table.Column(type: "datetime(6)", nullable: true),
- LastModifierId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ LastModifierId = table.Column(type: "char(36)", nullable: true),
IsDeleted = table.Column(type: "bit(1)", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ DeleterId = table.Column(type: "char(36)", nullable: true),
DeletionTime = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
@@ -150,99 +134,79 @@ namespace JiShe.IoT.Migrations
table.PrimaryKey("PK_AbpDataDictionaries", x => x.Id);
},
comment: "数据字典")
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpFeatureGroups",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- DisplayName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false),
+ DisplayName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false),
ExtraProperties = table.Column(type: "longtext", nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_AbpFeatureGroups", x => x.Id);
})
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpFeatures",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- GroupName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ParentName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- DisplayName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- Description = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- DefaultValue = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ GroupName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false),
+ Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false),
+ ParentName = table.Column(type: "varchar(128)", maxLength: 128, nullable: true),
+ DisplayName = table.Column(type: "varchar(256)", maxLength: 256, nullable: false),
+ Description = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
+ DefaultValue = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
IsVisibleToClients = table.Column(type: "bit(1)", nullable: false),
IsAvailableToHost = table.Column(type: "bit(1)", nullable: false),
- AllowedProviders = table.Column(type: "varchar(256)", maxLength: 256, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ValueType = table.Column(type: "varchar(2048)", maxLength: 2048, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ AllowedProviders = table.Column(type: "varchar(256)", maxLength: 256, nullable: true),
+ ValueType = table.Column(type: "varchar(2048)", maxLength: 2048, nullable: true),
ExtraProperties = table.Column(type: "longtext", nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_AbpFeatures", x => x.Id);
})
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpFeatureValues",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- Value = table.Column(type: "varchar(128)", maxLength: 128, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ProviderName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ Name = table.Column(type: "varchar(128)", maxLength: 128, nullable: false),
+ Value = table.Column(type: "varchar(128)", maxLength: 128, nullable: false),
+ ProviderName = table.Column(type: "varchar(64)", maxLength: 64, nullable: true),
ProviderKey = table.Column(type: "varchar(64)", maxLength: 64, nullable: true)
- .Annotation("MySql:CharSet", "utf8mb4")
},
constraints: table =>
{
table.PrimaryKey("PK_AbpFeatureValues", x => x.Id);
})
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpFileObjects",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- FileName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "文件名称")
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ TenantId = table.Column(type: "char(36)", nullable: true),
+ FileName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "文件名称"),
FileSize = table.Column(type: "bigint", nullable: false, comment: "文件大小"),
- ContentType = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "文件名称")
- .Annotation("MySql:CharSet", "utf8mb4"),
- ExtraProperties = table.Column(type: "longtext", nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ ContentType = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "文件名称"),
+ ExtraProperties = table.Column(type: "longtext", nullable: false),
+ ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false),
CreationTime = table.Column(type: "datetime(6)", nullable: false),
- CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ CreatorId = table.Column(type: "char(36)", nullable: true),
LastModificationTime = table.Column(type: "datetime(6)", nullable: true),
- LastModifierId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ LastModifierId = table.Column(type: "char(36)", nullable: true),
IsDeleted = table.Column(type: "bit(1)", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ DeleterId = table.Column(type: "char(36)", nullable: true),
DeletionTime = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
@@ -250,34 +214,28 @@ namespace JiShe.IoT.Migrations
table.PrimaryKey("PK_AbpFileObjects", x => x.Id);
},
comment: "文件管理")
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpLanguages",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- CultureName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "语言名称")
- .Annotation("MySql:CharSet", "utf8mb4"),
- UiCultureName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "Ui语言名称")
- .Annotation("MySql:CharSet", "utf8mb4"),
- DisplayName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "显示名称")
- .Annotation("MySql:CharSet", "utf8mb4"),
- FlagIcon = table.Column(type: "varchar(128)", maxLength: 128, nullable: true, comment: "图标")
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ TenantId = table.Column(type: "char(36)", nullable: true),
+ CultureName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "语言名称"),
+ UiCultureName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "Ui语言名称"),
+ DisplayName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "显示名称"),
+ FlagIcon = table.Column(type: "varchar(128)", maxLength: 128, nullable: true, comment: "图标"),
IsEnabled = table.Column(type: "bit(1)", nullable: false),
IsDefault = table.Column(type: "bit(1)", nullable: false),
- ExtraProperties = table.Column(type: "longtext", nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ ExtraProperties = table.Column(type: "longtext", nullable: false),
+ ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false),
CreationTime = table.Column(type: "datetime(6)", nullable: false),
- CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ CreatorId = table.Column(type: "char(36)", nullable: true),
LastModificationTime = table.Column(type: "datetime(6)", nullable: true),
- LastModifierId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ LastModifierId = table.Column(type: "char(36)", nullable: true),
IsDeleted = table.Column(type: "bit(1)", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ DeleterId = table.Column(type: "char(36)", nullable: true),
DeletionTime = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
@@ -285,32 +243,26 @@ namespace JiShe.IoT.Migrations
table.PrimaryKey("PK_AbpLanguages", x => x.Id);
},
comment: "语言管理")
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpLanguageTexts",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- CultureName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "语言名称")
- .Annotation("MySql:CharSet", "utf8mb4"),
- ResourceName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "资源名称")
- .Annotation("MySql:CharSet", "utf8mb4"),
- Name = table.Column(type: "varchar(256)", maxLength: 256, nullable: false, comment: "名称")
- .Annotation("MySql:CharSet", "utf8mb4"),
- Value = table.Column(type: "varchar(256)", maxLength: 256, nullable: false, comment: "值")
- .Annotation("MySql:CharSet", "utf8mb4"),
- ExtraProperties = table.Column(type: "longtext", nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
- ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false)
- .Annotation("MySql:CharSet", "utf8mb4"),
+ Id = table.Column(type: "char(36)", nullable: false),
+ TenantId = table.Column(type: "char(36)", nullable: true),
+ CultureName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "语言名称"),
+ ResourceName = table.Column(type: "varchar(128)", maxLength: 128, nullable: false, comment: "资源名称"),
+ Name = table.Column(type: "varchar(256)", maxLength: 256, nullable: false, comment: "名称"),
+ Value = table.Column(type: "varchar(256)", maxLength: 256, nullable: false, comment: "值"),
+ ExtraProperties = table.Column(type: "longtext", nullable: false),
+ ConcurrencyStamp = table.Column(type: "varchar(40)", maxLength: 40, nullable: false),
CreationTime = table.Column(type: "datetime(6)", nullable: false),
- CreatorId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ CreatorId = table.Column(type: "char(36)", nullable: true),
LastModificationTime = table.Column(type: "datetime(6)", nullable: true),
- LastModifierId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ LastModifierId = table.Column(type: "char(36)", nullable: true),
IsDeleted = table.Column(type: "bit(1)", nullable: false, defaultValue: false),
- DeleterId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
+ DeleterId = table.Column(type: "char(36)", nullable: true),
DeletionTime = table.Column(type: "datetime(6)", nullable: true)
},
constraints: table =>
@@ -318,54 +270,48 @@ namespace JiShe.IoT.Migrations
table.PrimaryKey("PK_AbpLanguageTexts", x => x.Id);
},
comment: "语言文本管理")
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpLinkUsers",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- SourceUserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- SourceTenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- TargetUserId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- TargetTenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci")
+ Id = table.Column(type: "char(36)", nullable: false),
+ SourceUserId = table.Column(type: "char(36)", nullable: false),
+ SourceTenantId = table.Column(type: "char(36)", nullable: true),
+ TargetUserId = table.Column(type: "char(36)", nullable: false),
+ TargetTenantId = table.Column(type: "char(36)", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpLinkUsers", x => x.Id);
})
- .Annotation("MySql:CharSet", "utf8mb4");
+ .Annotation("MySQL:Charset", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpNotifications",
columns: table => new
{
- Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
- TenantId = table.Column(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
- Title = table.Column