集成文件管理

This commit is contained in:
陈益 2025-05-27 22:53:46 +08:00
parent cca8a04574
commit 1f8ed257a5
25 changed files with 294 additions and 1610 deletions

View File

@ -69,6 +69,15 @@
<PackageReference Update="JiShe.ServicePro.DynamicMenuManagement.HttpApi.Client" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FileManagement.Application" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FileManagement.Application.Contracts" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FileManagement.Domain" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FileManagement.Domain.Shared" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FileManagement.EntityFrameworkCore" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FileManagement.HttpApi" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FileManagement.HttpApi.Client" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FreeRedisProvider" Version="1.0.1"/>
<PackageReference Update="JiShe.ServicePro.FreeSqlProvider" Version="1.0.1"/>

View File

@ -1,6 +1,9 @@
using Hangfire.Redis.StackExchange;
using JiShe.ServicePro.Core;
using Medallion.Threading;
using Medallion.Threading.Redis;
using Volo.Abp.BlobStoring;
using Volo.Abp.BlobStoring.FileSystem;
namespace JiShe.IoT;
@ -271,4 +274,34 @@ public partial class IoTHttpApiHostModule
return new RedisDistributedSynchronizationProvider(connection.GetDatabase());
});
}
/// <summary>
/// 配置 文件管理的 blob设置默认使用本地文件系统
/// </summary>
private void ConfigureBlobStorage()
{
Configure<AbpBlobStoringOptions>(options =>
{
options.Containers.ConfigureDefault(container =>
{
container.UseFileSystem(fileSystem =>
{
string[] filePathArray = new string[] {
Environment.CurrentDirectory,
"UploadFile",
DateTime.Now.Date.ToString("yyyyMMdd")
};
string filePath = Path.Combine(filePathArray);
//检查文件夹是否存在
if (!System.IO.Directory.Exists(filePath))
{
System.IO.Directory.CreateDirectory(filePath);
}
fileSystem.BasePath = filePath;
});
});
});
}
}

View File

@ -1,3 +1,5 @@
using Volo.Abp.BlobStoring.FileSystem;
namespace JiShe.IoT
{
[DependsOn(
@ -13,6 +15,7 @@ namespace JiShe.IoT
// typeof(AbpProCapEntityFrameworkCoreModule),
typeof(AbpAspNetCoreMvcUiBasicThemeModule),
typeof(AbpCachingStackExchangeRedisModule),
typeof(AbpBlobStoringFileSystemModule),
typeof(AbpDistributedLockingModule)
//typeof(AbpBackgroundJobsHangfireModule)
)]
@ -39,7 +42,7 @@ namespace JiShe.IoT
ConfigureAuditLog(context);
ConfigurationSignalR(context);
ConfigurationMultiTenancy();
ConfigureBlobStorage();
}
public override void OnApplicationInitialization(ApplicationInitializationContext context)

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
@ -42,7 +42,8 @@
<PackageReference Include="Volo.Abp.BackgroundJobs.HangFire" />
<PackageReference Include="Volo.Abp.DistributedLocking"/>
<PackageReference Include="DistributedLock.Redis"/>
</ItemGroup>
<PackageReference Include="Volo.Abp.BlobStoring.FileSystem" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\JiShe.IoT.Application\JiShe.IoT.Application.csproj"/>

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

View File

@ -10,19 +10,19 @@
},
"Hangfire": {
"Redis": {
"Host": "192.168.5.9:6380,password=1q2w3e!@#",
"Host": "47.110.60.222:6379,password=3JBGfyhTaD46nS",
"DB": "2"
}
},
"Redis": {
"Configuration": "192.168.5.9:6380,password=1q2w3e!@#,defaultdatabase=5"
"Configuration": "47.110.60.222:6379,password=3JBGfyhTaD46nS,defaultdatabase=5"
},
"Kafka": {
"BootstrapServers": "192.168.5.9:29092,192.168.5.9:39092,192.168.5.9:49092",
"BootstrapServers": "47.110.62.104:9092,47.110.53.196:9092,47.110.60.222:9092",
"EnableFilter": true,
"EnableAuthorization": false,
"EnableAuthorization": true,
"SaslUserName": "lixiao",
"SaslPassword": "lixiao1980",
"SaslPassword": "lixiao@1980",
"KafkaReplicationFactor": 3,
"NumPartitions": 30,
"TaskThreadCount": -1,
@ -52,7 +52,7 @@
}
},
"FreeRedisOptions": {
"ConnectionString": "192.168.5.9:6380,password=1q2w3e!@#,defaultdatabase=1",
"ConnectionString": "47.110.60.222:6379,password=3JBGfyhTaD46nS,defaultdatabase=1",
"UseDistributedCache": true
},
"FreeSqlProviderOptions": {

View File

@ -1,5 +1,5 @@
using JiShe.ServicePro.CodeManagement;
using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement;
using JiShe.ServicePro.TemplateManagement;
namespace JiShe.IoT
@ -11,8 +11,8 @@ namespace JiShe.IoT
typeof(NotificationManagementApplicationContractsModule),
typeof(DataDictionaryManagementApplicationContractsModule),
typeof(LanguageManagementApplicationContractsModule),
typeof(CodeManagementApplicationContractsModule),
typeof(TemplateManagementApplicationContractsModule),
typeof(FileManagementApplicationContractsModule),
typeof(DynamicMenuManagementApplicationContractsModule)
)]
public class IoTApplicationContractsModule : AbpModule

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
@ -18,8 +18,9 @@
<PackageReference Include="JiShe.ServicePro.NotificationManagement.Application.Contracts"/>
<PackageReference Include="JiShe.ServicePro.DataDictionaryManagement.Application.Contracts"/>
<PackageReference Include="JiShe.ServicePro.LanguageManagement.Application.Contracts"/>
<PackageReference Include="JiShe.ServicePro.CodeManagement.Application.Contracts"/>
<PackageReference Include="JiShe.ServicePro.TemplateManagement.Application.Contracts"/>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.Application.Contracts"/>
</ItemGroup>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.Application.Contracts"/>
<PackageReference Include="JiShe.ServicePro.FileManagement.Application.Contracts"/>
</ItemGroup>
</Project>

View File

@ -1,5 +1,5 @@
using JiShe.ServicePro.CodeManagement;
using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement;
using JiShe.ServicePro.FreeRedisProvider;
using JiShe.ServicePro.FreeSqlProvider;
using JiShe.ServicePro.TemplateManagement;
@ -13,9 +13,9 @@ namespace JiShe.IoT
typeof(NotificationManagementApplicationModule),
typeof(DataDictionaryManagementApplicationModule),
typeof(LanguageManagementApplicationModule),
typeof(CodeManagementApplicationModule),
typeof(TemplateManagementApplicationModule),
typeof(DynamicMenuManagementApplicationModule),
typeof(FileManagementApplicationModule),
typeof(FreeRedisProviderModule)
)]
public class IoTApplicationModule : AbpModule

View File

@ -16,9 +16,9 @@
<PackageReference Include="JiShe.ServicePro.NotificationManagement.Application" />
<PackageReference Include="JiShe.ServicePro.DataDictionaryManagement.Application" />
<PackageReference Include="JiShe.ServicePro.LanguageManagement.Application" />
<PackageReference Include="JiShe.ServicePro.CodeManagement.Application" />
<PackageReference Include="JiShe.ServicePro.TemplateManagement.Application" />
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.Application" />
<PackageReference Include="JiShe.ServicePro.FileManagement.Application" />
<PackageReference Include="JiShe.ServicePro.FreeRedisProvider" />
</ItemGroup>

View File

@ -1,5 +1,5 @@
{
"ConnectionStrings": {
"Default": "Data Source=118.190.144.92;Port=33306;Database=JiS;uid=root;pwd=admin123;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true;"
"Default": "Data Source=118.190.144.92;Port=33306;Database=JiSheIoTProDB;uid=root;pwd=admin123;charset=utf8mb4;Allow User Variables=true;AllowLoadLocalInfile=true;"
}
}

View File

@ -1,5 +1,5 @@
using JiShe.ServicePro.CodeManagement;
using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement;
using JiShe.ServicePro.FreeSqlProvider;
using JiShe.ServicePro.TemplateManagement;
@ -10,9 +10,9 @@ namespace JiShe.IoT
typeof(NotificationManagementDomainSharedModule),
typeof(DataDictionaryManagementDomainSharedModule),
typeof(LanguageManagementDomainSharedModule),
typeof(CodeManagementDomainSharedModule),
typeof(TemplateManagementDomainSharedModule),
typeof(DynamicMenuManagementDomainSharedModule),
typeof(FileManagementDomainSharedModule),
typeof(AbpFreeSqlProviderModule),
typeof(ServiceProCoreModule)
)]

View File

@ -17,9 +17,10 @@
<PackageReference Include="JiShe.ServicePro.NotificationManagement.Domain.Shared"/>
<PackageReference Include="JiShe.ServicePro.DataDictionaryManagement.Domain.Shared"/>
<PackageReference Include="JiShe.ServicePro.LanguageManagement.Domain.Shared"/>
<PackageReference Include="JiShe.ServicePro.CodeManagement.Domain.Shared"/>
<PackageReference Include="JiShe.ServicePro.TemplateManagement.Domain.Shared"/>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.Domain.Shared"/>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.Domain.Shared"/>
<PackageReference Include="JiShe.ServicePro.FileManagement.Domain.Shared"/>
<PackageReference Include="JiShe.ServicePro.FreeSqlProvider" />
</ItemGroup>
</Project>

View File

@ -1,5 +1,5 @@
using JiShe.ServicePro.CodeManagement;
using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement;
using JiShe.ServicePro.TemplateManagement;
namespace JiShe.IoT
@ -10,8 +10,8 @@ namespace JiShe.IoT
typeof(NotificationManagementDomainModule),
typeof(DataDictionaryManagementDomainModule),
typeof(LanguageManagementDomainModule),
typeof(CodeManagementDomainModule),
typeof(TemplateManagementDomainModule),
typeof(FileManagementDomainModule),
typeof(DynamicMenuManagementDomainModule)
)]
public class IoTDomainModule : AbpModule

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>JiShe.IoT</RootNamespace>
@ -13,10 +13,10 @@
<PackageReference Include="JiShe.ServicePro.NotificationManagement.Domain"/>
<PackageReference Include="JiShe.ServicePro.DataDictionaryManagement.Domain"/>
<PackageReference Include="JiShe.ServicePro.LanguageManagement.Domain"/>
<PackageReference Include="JiShe.ServicePro.CodeManagement.Domain"/>
<PackageReference Include="JiShe.ServicePro.TemplateManagement.Domain"/>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.Domain"/>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.Domain"/>
<PackageReference Include="JiShe.ServicePro.FileManagement.Domain"/>
<PackageReference Include="Microsoft.EntityFrameworkCore.Abstractions" />
</ItemGroup>
</ItemGroup>
</Project>

View File

@ -1,12 +1,8 @@
using JiShe.ServicePro.BasicManagement.UserRefreshTokens;
using JiShe.ServicePro.CodeManagement.DataTypes.Aggregates;
using JiShe.ServicePro.CodeManagement.EntityFrameworkCore;
using JiShe.ServicePro.CodeManagement.EntityModels.Aggregates;
using JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates;
using JiShe.ServicePro.CodeManagement.Projects.Aggregates;
using JiShe.ServicePro.CodeManagement.Templates.Aggregates;
using JiShe.ServicePro.DynamicMenuManagement.EntityFrameworkCore;
using JiShe.ServicePro.DynamicMenuManagement.Menus;
using JiShe.ServicePro.FileManagement.EntityFrameworkCore;
using JiShe.ServicePro.FileManagement.Files;
using JiShe.ServicePro.TemplateManagement.EntityFrameworkCore;
using JiShe.ServicePro.TemplateManagement.TextTemplates;
@ -18,7 +14,6 @@ namespace JiShe.IoT.EntityFrameworkCore
INotificationManagementDbContext,
IDataDictionaryManagementDbContext,
ILanguageManagementDbContext,
ICodeManagementDbContext,
ITemplateManagementDbContext,
IDynamicMenuManagementDbContext
{
@ -48,19 +43,15 @@ namespace JiShe.IoT.EntityFrameworkCore
public DbSet<Language> Languages { get; set; }
public DbSet<LanguageText> LanguageTexts { get; set; }
public DbSet<Template> Templates { get; set; }
// 代码生成器模块
public DbSet<Project> Projects { get; set; }
public DbSet<EntityModel> EntityModels { get; set; }
public DbSet<DataType> DataTypes { get; set; }
public DbSet<EnumType> EnumTypes { get; set; }
public DbSet<TextTemplate> TextTemplates { get; set; }
public DbSet<Menu> Menus { get; set; }
public DbSet<UserRefreshToken> UserRefreshTokens { get; set; }
//文件管理
public DbSet<FileObject> FileObjects { get; set; }
public IoTDbContext(DbContextOptions<IoTDbContext> options)
: base(options)
{
@ -85,14 +76,14 @@ namespace JiShe.IoT.EntityFrameworkCore
// 多语言
builder.ConfigureLanguageManagement();
// 代码生成器模块
builder.ConfigureCodeManagement();
// 文本模板模块
builder.ConfigureTemplateManagement();
// 动态菜单
builder.ConfigureDynamicMenuManagement();
//文件管理
builder.ConfigureFileManagement();
}

View File

@ -1,5 +1,5 @@
using JiShe.ServicePro.CodeManagement.EntityFrameworkCore;
using JiShe.ServicePro.DynamicMenuManagement.EntityFrameworkCore;
using JiShe.ServicePro.FileManagement.EntityFrameworkCore;
using JiShe.ServicePro.TemplateManagement.EntityFrameworkCore;
using Volo.Abp.Guids;
@ -12,8 +12,8 @@ namespace JiShe.IoT.EntityFrameworkCore
typeof(DataDictionaryManagementEntityFrameworkCoreModule),
typeof(NotificationManagementEntityFrameworkCoreModule),
typeof(LanguageManagementEntityFrameworkCoreModule),
typeof(CodeManagementEntityFrameworkCoreModule),
typeof(TemplateManagementEntityFrameworkCoreModule),
typeof(FileManagementEntityFrameworkCoreModule),
typeof(DynamicMenuManagementEntityFrameworkCoreModule)
)]
public class IoTEntityFrameworkCoreModule : AbpModule

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>JiShe.IoT</RootNamespace>
@ -14,10 +14,10 @@
<PackageReference Include="JiShe.ServicePro.NotificationManagement.EntityFrameworkCore"/>
<PackageReference Include="JiShe.ServicePro.DataDictionaryManagement.EntityFrameworkCore"/>
<PackageReference Include="JiShe.ServicePro.LanguageManagement.EntityFrameworkCore"/>
<PackageReference Include="JiShe.ServicePro.CodeManagement.EntityFrameworkCore"/>
<PackageReference Include="JiShe.ServicePro.TemplateManagement.EntityFrameworkCore"/>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.EntityFrameworkCore"/>
</ItemGroup>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.EntityFrameworkCore"/>
<PackageReference Include="JiShe.ServicePro.FileManagement.EntityFrameworkCore"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools">

View File

@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
namespace JiShe.IoT.Migrations
{
[DbContext(typeof(IoTDbContext))]
[Migration("20250527071110_InitialCreate")]
[Migration("20250527141907_InitialCreate")]
partial class InitialCreate
{
/// <inheritdoc />
@ -109,579 +109,6 @@ namespace JiShe.IoT.Migrations
b.ToTable("ServiceProUserRefreshTokens", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.DataTypes.Aggregates.DataType", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.HasKey("Id");
b.ToTable("ServiceProDataType", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModel", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<Guid>("AggregateId")
.HasColumnType("char(36)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<Guid?>("ParentId")
.HasColumnType("char(36)");
b.Property<Guid>("ProjectId")
.HasColumnType("char(36)");
b.Property<int?>("RelationalType")
.HasColumnType("int");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code");
b.ToTable("ServiceProEntityModels", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModelProperty", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<bool>("AllowAdd")
.HasColumnType("tinyint(1)");
b.Property<bool>("AllowEdit")
.HasColumnType("tinyint(1)");
b.Property<bool>("AllowSearch")
.HasColumnType("tinyint(1)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DataTypeId")
.HasColumnType("char(36)");
b.Property<int?>("DecimalPrecision")
.HasColumnType("int");
b.Property<int?>("DecimalScale")
.HasColumnType("int");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<Guid>("EntityModelId")
.HasColumnType("char(36)");
b.Property<Guid?>("EnumTypeId")
.HasColumnType("char(36)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<bool>("IsRequired")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<int?>("MaxLength")
.HasColumnType("int");
b.Property<int?>("MinLength")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("EntityModelId");
b.ToTable("ServiceProEntityModelProperties", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumType", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<Guid>("EntityModelId")
.HasColumnType("char(36)");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<Guid>("ProjectId")
.HasColumnType("char(36)");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code");
b.ToTable("ServiceProEnumType", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumTypeProperty", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<Guid>("EnumTypeId")
.HasColumnType("char(36)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<int>("Value")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("Code");
b.HasIndex("EnumTypeId");
b.ToTable("ServiceProEnumTypeProperty", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Projects.Aggregates.Project", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("CompanyName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<string>("NameSpace")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("Owner")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ProjectName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("Remark")
.HasMaxLength(512)
.HasColumnType("varchar(512)");
b.Property<bool>("SupportTenant")
.HasColumnType("tinyint(1)");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("ServiceProProjects", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Templates.Aggregates.Template", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("Remark")
.HasMaxLength(512)
.HasColumnType("varchar(512)");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("ServiceProTemplates", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Templates.Aggregates.TemplateDetail", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("Content")
.HasColumnType("longtext");
b.Property<int?>("ControlType")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<Guid?>("ParentId")
.HasColumnType("char(36)");
b.Property<Guid>("TemplateId")
.HasColumnType("char(36)");
b.Property<int>("TemplateType")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("TemplateId");
b.ToTable("ServiceProTemplateDetails", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", b =>
{
b.Property<Guid>("Id")
@ -922,6 +349,80 @@ namespace JiShe.IoT.Migrations
b.ToTable("ServiceProMenus", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.FileManagement.Files.FileObject", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<string>("ContentType")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("文件名称");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<string>("FileName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("文件名称");
b.Property<long>("FileSize")
.HasColumnType("bigint")
.HasComment("文件大小");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("FileName");
b.ToTable("AbpFileObjects", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.LanguageManagement.LanguageTexts.Aggregates.LanguageText", b =>
{
b.Property<Guid>("Id")
@ -2774,33 +2275,6 @@ namespace JiShe.IoT.Migrations
b.ToTable("AbpTenantConnectionStrings", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModelProperty", b =>
{
b.HasOne("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModel", null)
.WithMany("EntityModelProperties")
.HasForeignKey("EntityModelId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumTypeProperty", b =>
{
b.HasOne("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumType", null)
.WithMany("EnumTypeProperties")
.HasForeignKey("EnumTypeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Templates.Aggregates.TemplateDetail", b =>
{
b.HasOne("JiShe.ServicePro.CodeManagement.Templates.Aggregates.Template", null)
.WithMany("TemplateDetails")
.HasForeignKey("TemplateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionaryDetail", b =>
{
b.HasOne("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", null)
@ -2934,21 +2408,6 @@ namespace JiShe.IoT.Migrations
.IsRequired();
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModel", b =>
{
b.Navigation("EntityModelProperties");
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumType", b =>
{
b.Navigation("EnumTypeProperties");
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Templates.Aggregates.Template", b =>
{
b.Navigation("TemplateDetails");
});
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", b =>
{
b.Navigation("Details");

View File

@ -219,6 +219,35 @@ namespace JiShe.IoT.Migrations
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpFileObjects",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
FileName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "文件名称")
.Annotation("MySql:CharSet", "utf8mb4"),
FileSize = table.Column<long>(type: "bigint", nullable: false, comment: "文件大小"),
ContentType = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false, comment: "文件名称")
.Annotation("MySql:CharSet", "utf8mb4"),
ExtraProperties = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
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)
},
constraints: table =>
{
table.PrimaryKey("PK_AbpFileObjects", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpLanguages",
columns: table => new
@ -705,95 +734,6 @@ namespace JiShe.IoT.Migrations
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProDataType",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
ExtraProperties = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
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)
},
constraints: table =>
{
table.PrimaryKey("PK_ServiceProDataType", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProEntityModels",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
ProjectId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
RelationalType = table.Column<int>(type: "int", nullable: true),
ParentId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
AggregateId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
ExtraProperties = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
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)
},
constraints: table =>
{
table.PrimaryKey("PK_ServiceProEntityModels", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProEnumType",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
EntityModelId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
ProjectId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
ExtraProperties = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
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)
},
constraints: table =>
{
table.PrimaryKey("PK_ServiceProEnumType", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProMenus",
columns: table => new
@ -841,69 +781,6 @@ namespace JiShe.IoT.Migrations
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProProjects",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
Owner = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
NameSpace = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Remark = table.Column<string>(type: "varchar(512)", maxLength: 512, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
CompanyName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
ProjectName = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
SupportTenant = table.Column<bool>(type: "tinyint(1)", nullable: false),
ExtraProperties = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
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)
},
constraints: table =>
{
table.PrimaryKey("PK_ServiceProProjects", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProTemplates",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
TenantId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Remark = table.Column<string>(type: "varchar(512)", maxLength: 512, nullable: true)
.Annotation("MySql:CharSet", "utf8mb4"),
ExtraProperties = table.Column<string>(type: "longtext", nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
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)
},
constraints: table =>
{
table.PrimaryKey("PK_ServiceProTemplates", x => x.Id);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProTextTemplates",
columns: table => new
@ -1259,112 +1136,6 @@ namespace JiShe.IoT.Migrations
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProEntityModelProperties",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
IsRequired = table.Column<bool>(type: "tinyint(1)", nullable: false),
MaxLength = table.Column<int>(type: "int", nullable: true),
MinLength = table.Column<int>(type: "int", nullable: true),
DecimalPrecision = table.Column<int>(type: "int", nullable: true),
DecimalScale = table.Column<int>(type: "int", nullable: true),
EnumTypeId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
DataTypeId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
EntityModelId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
AllowSearch = table.Column<bool>(type: "tinyint(1)", nullable: false),
AllowAdd = table.Column<bool>(type: "tinyint(1)", nullable: false),
AllowEdit = table.Column<bool>(type: "tinyint(1)", nullable: false),
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)
},
constraints: table =>
{
table.PrimaryKey("PK_ServiceProEntityModelProperties", x => x.Id);
table.ForeignKey(
name: "FK_ServiceProEntityModelProperties_ServiceProEntityModels_Entit~",
column: x => x.EntityModelId,
principalTable: "ServiceProEntityModels",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProEnumTypeProperty",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
EnumTypeId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
Code = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Value = table.Column<int>(type: "int", nullable: false),
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: true)
.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)
},
constraints: table =>
{
table.PrimaryKey("PK_ServiceProEnumTypeProperty", x => x.Id);
table.ForeignKey(
name: "FK_ServiceProEnumTypeProperty_ServiceProEnumType_EnumTypeId",
column: x => x.EnumTypeId,
principalTable: "ServiceProEnumType",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "ServiceProTemplateDetails",
columns: table => new
{
Id = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
TemplateId = table.Column<Guid>(type: "char(36)", nullable: false, collation: "ascii_general_ci"),
TemplateType = table.Column<int>(type: "int", nullable: false),
ControlType = table.Column<int>(type: "int", nullable: true),
ParentId = table.Column<Guid>(type: "char(36)", nullable: true, collation: "ascii_general_ci"),
Name = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Description = table.Column<string>(type: "varchar(128)", maxLength: 128, nullable: false)
.Annotation("MySql:CharSet", "utf8mb4"),
Content = table.Column<string>(type: "longtext", nullable: true)
.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)
},
constraints: table =>
{
table.PrimaryKey("PK_ServiceProTemplateDetails", x => x.Id);
table.ForeignKey(
name: "FK_ServiceProTemplateDetails_ServiceProTemplates_TemplateId",
column: x => x.TemplateId,
principalTable: "ServiceProTemplates",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
})
.Annotation("MySql:CharSet", "utf8mb4");
migrationBuilder.CreateTable(
name: "AbpEntityPropertyChanges",
columns: table => new
@ -1461,6 +1232,11 @@ namespace JiShe.IoT.Migrations
columns: new[] { "Name", "ProviderName", "ProviderKey" },
unique: true);
migrationBuilder.CreateIndex(
name: "IX_AbpFileObjects_FileName",
table: "AbpFileObjects",
column: "FileName");
migrationBuilder.CreateIndex(
name: "IX_AbpLanguages_CultureName",
table: "AbpLanguages",
@ -1632,36 +1408,6 @@ namespace JiShe.IoT.Migrations
table: "AbpUsers",
column: "UserName");
migrationBuilder.CreateIndex(
name: "IX_ServiceProEntityModelProperties_EntityModelId",
table: "ServiceProEntityModelProperties",
column: "EntityModelId");
migrationBuilder.CreateIndex(
name: "IX_ServiceProEntityModels_Code",
table: "ServiceProEntityModels",
column: "Code");
migrationBuilder.CreateIndex(
name: "IX_ServiceProEnumType_Code",
table: "ServiceProEnumType",
column: "Code");
migrationBuilder.CreateIndex(
name: "IX_ServiceProEnumTypeProperty_Code",
table: "ServiceProEnumTypeProperty",
column: "Code");
migrationBuilder.CreateIndex(
name: "IX_ServiceProEnumTypeProperty_EnumTypeId",
table: "ServiceProEnumTypeProperty",
column: "EnumTypeId");
migrationBuilder.CreateIndex(
name: "IX_ServiceProTemplateDetails_TemplateId",
table: "ServiceProTemplateDetails",
column: "TemplateId");
migrationBuilder.CreateIndex(
name: "IX_ServiceProTextTemplates_Code",
table: "ServiceProTextTemplates",
@ -1700,6 +1446,9 @@ namespace JiShe.IoT.Migrations
migrationBuilder.DropTable(
name: "AbpFeatureValues");
migrationBuilder.DropTable(
name: "AbpFileObjects");
migrationBuilder.DropTable(
name: "AbpLanguages");
@ -1763,24 +1512,9 @@ namespace JiShe.IoT.Migrations
migrationBuilder.DropTable(
name: "AbpUserTokens");
migrationBuilder.DropTable(
name: "ServiceProDataType");
migrationBuilder.DropTable(
name: "ServiceProEntityModelProperties");
migrationBuilder.DropTable(
name: "ServiceProEnumTypeProperty");
migrationBuilder.DropTable(
name: "ServiceProMenus");
migrationBuilder.DropTable(
name: "ServiceProProjects");
migrationBuilder.DropTable(
name: "ServiceProTemplateDetails");
migrationBuilder.DropTable(
name: "ServiceProTextTemplates");
@ -1805,15 +1539,6 @@ namespace JiShe.IoT.Migrations
migrationBuilder.DropTable(
name: "AbpUsers");
migrationBuilder.DropTable(
name: "ServiceProEntityModels");
migrationBuilder.DropTable(
name: "ServiceProEnumType");
migrationBuilder.DropTable(
name: "ServiceProTemplates");
migrationBuilder.DropTable(
name: "AbpAuditLogs");
}

View File

@ -106,579 +106,6 @@ namespace JiShe.IoT.Migrations
b.ToTable("ServiceProUserRefreshTokens", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.DataTypes.Aggregates.DataType", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.HasKey("Id");
b.ToTable("ServiceProDataType", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModel", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<Guid>("AggregateId")
.HasColumnType("char(36)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<Guid?>("ParentId")
.HasColumnType("char(36)");
b.Property<Guid>("ProjectId")
.HasColumnType("char(36)");
b.Property<int?>("RelationalType")
.HasColumnType("int");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code");
b.ToTable("ServiceProEntityModels", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModelProperty", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<bool>("AllowAdd")
.HasColumnType("tinyint(1)");
b.Property<bool>("AllowEdit")
.HasColumnType("tinyint(1)");
b.Property<bool>("AllowSearch")
.HasColumnType("tinyint(1)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DataTypeId")
.HasColumnType("char(36)");
b.Property<int?>("DecimalPrecision")
.HasColumnType("int");
b.Property<int?>("DecimalScale")
.HasColumnType("int");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<Guid>("EntityModelId")
.HasColumnType("char(36)");
b.Property<Guid?>("EnumTypeId")
.HasColumnType("char(36)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<bool>("IsRequired")
.HasColumnType("tinyint(1)");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<int?>("MaxLength")
.HasColumnType("int");
b.Property<int?>("MinLength")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("EntityModelId");
b.ToTable("ServiceProEntityModelProperties", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumType", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<Guid>("EntityModelId")
.HasColumnType("char(36)");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<Guid>("ProjectId")
.HasColumnType("char(36)");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("Code");
b.ToTable("ServiceProEnumType", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumTypeProperty", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("Code")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<Guid>("EnumTypeId")
.HasColumnType("char(36)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<int>("Value")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("Code");
b.HasIndex("EnumTypeId");
b.ToTable("ServiceProEnumTypeProperty", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Projects.Aggregates.Project", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("CompanyName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<string>("NameSpace")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("Owner")
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("ProjectName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("Remark")
.HasMaxLength(512)
.HasColumnType("varchar(512)");
b.Property<bool>("SupportTenant")
.HasColumnType("tinyint(1)");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("ServiceProProjects", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Templates.Aggregates.Template", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<string>("Remark")
.HasMaxLength(512)
.HasColumnType("varchar(512)");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.ToTable("ServiceProTemplates", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Templates.Aggregates.TemplateDetail", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("Content")
.HasColumnType("longtext");
b.Property<int?>("ControlType")
.HasColumnType("int");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("Description")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)");
b.Property<Guid?>("ParentId")
.HasColumnType("char(36)");
b.Property<Guid>("TemplateId")
.HasColumnType("char(36)");
b.Property<int>("TemplateType")
.HasColumnType("int");
b.HasKey("Id");
b.HasIndex("TemplateId");
b.ToTable("ServiceProTemplateDetails", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", b =>
{
b.Property<Guid>("Id")
@ -919,6 +346,80 @@ namespace JiShe.IoT.Migrations
b.ToTable("ServiceProMenus", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.FileManagement.Files.FileObject", b =>
{
b.Property<Guid>("Id")
.HasColumnType("char(36)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.IsRequired()
.HasMaxLength(40)
.HasColumnType("varchar(40)")
.HasColumnName("ConcurrencyStamp");
b.Property<string>("ContentType")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("文件名称");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)")
.HasColumnName("CreationTime");
b.Property<Guid?>("CreatorId")
.HasColumnType("char(36)")
.HasColumnName("CreatorId");
b.Property<Guid?>("DeleterId")
.HasColumnType("char(36)")
.HasColumnName("DeleterId");
b.Property<DateTime?>("DeletionTime")
.HasColumnType("datetime(6)")
.HasColumnName("DeletionTime");
b.Property<string>("ExtraProperties")
.IsRequired()
.HasColumnType("longtext")
.HasColumnName("ExtraProperties");
b.Property<string>("FileName")
.IsRequired()
.HasMaxLength(128)
.HasColumnType("varchar(128)")
.HasComment("文件名称");
b.Property<long>("FileSize")
.HasColumnType("bigint")
.HasComment("文件大小");
b.Property<bool>("IsDeleted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasDefaultValue(false)
.HasColumnName("IsDeleted");
b.Property<DateTime?>("LastModificationTime")
.HasColumnType("datetime(6)")
.HasColumnName("LastModificationTime");
b.Property<Guid?>("LastModifierId")
.HasColumnType("char(36)")
.HasColumnName("LastModifierId");
b.Property<Guid?>("TenantId")
.HasColumnType("char(36)")
.HasColumnName("TenantId");
b.HasKey("Id");
b.HasIndex("FileName");
b.ToTable("AbpFileObjects", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.LanguageManagement.LanguageTexts.Aggregates.LanguageText", b =>
{
b.Property<Guid>("Id")
@ -2771,33 +2272,6 @@ namespace JiShe.IoT.Migrations
b.ToTable("AbpTenantConnectionStrings", (string)null);
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModelProperty", b =>
{
b.HasOne("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModel", null)
.WithMany("EntityModelProperties")
.HasForeignKey("EntityModelId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumTypeProperty", b =>
{
b.HasOne("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumType", null)
.WithMany("EnumTypeProperties")
.HasForeignKey("EnumTypeId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Templates.Aggregates.TemplateDetail", b =>
{
b.HasOne("JiShe.ServicePro.CodeManagement.Templates.Aggregates.Template", null)
.WithMany("TemplateDetails")
.HasForeignKey("TemplateId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionaryDetail", b =>
{
b.HasOne("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", null)
@ -2931,21 +2405,6 @@ namespace JiShe.IoT.Migrations
.IsRequired();
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EntityModels.Aggregates.EntityModel", b =>
{
b.Navigation("EntityModelProperties");
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.EnumTypes.Aggregates.EnumType", b =>
{
b.Navigation("EnumTypeProperties");
});
modelBuilder.Entity("JiShe.ServicePro.CodeManagement.Templates.Aggregates.Template", b =>
{
b.Navigation("TemplateDetails");
});
modelBuilder.Entity("JiShe.ServicePro.DataDictionaryManagement.DataDictionaries.Aggregates.DataDictionary", b =>
{
b.Navigation("Details");

View File

@ -1,7 +1,7 @@
using JiShe.ServicePro.BasicManagement;
using JiShe.ServicePro.CodeManagement;
using JiShe.ServicePro.DataDictionaryManagement;
using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement;
using JiShe.ServicePro.LanguageManagement;
using JiShe.ServicePro.NotificationManagement;
using JiShe.ServicePro.TemplateManagement;
@ -14,8 +14,8 @@ namespace JiShe.IoT
typeof(NotificationManagementHttpApiClientModule),
typeof(DataDictionaryManagementHttpApiClientModule),
typeof(LanguageManagementHttpApiClientModule),
typeof(CodeManagementHttpApiClientModule),
typeof(TemplateManagementHttpApiClientModule),
typeof(FileManagementHttpApiClientModule),
typeof(DynamicMenuManagementHttpApiClientModule)
)]
public class IoTHttpApiClientModule : AbpModule

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>JiShe.IoT</RootNamespace>
@ -13,9 +13,10 @@
<PackageReference Include="JiShe.ServicePro.NotificationManagement.HttpApi.Client"/>
<PackageReference Include="JiShe.ServicePro.DataDictionaryManagement.HttpApi.Client"/>
<PackageReference Include="JiShe.ServicePro.LanguageManagement.HttpApi.Client"/>
<PackageReference Include="JiShe.ServicePro.CodeManagement.HttpApi.Client"/>
<PackageReference Include="JiShe.ServicePro.TemplateManagement.HttpApi.Client"/>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.HttpApi.Client"/>
</ItemGroup>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.HttpApi.Client"/>
<PackageReference Include="JiShe.ServicePro.FileManagement.HttpApi.Client"/>
</ItemGroup>
</Project>

View File

@ -1,6 +1,6 @@
using JiShe.ServicePro.CodeManagement;
using JiShe.ServicePro.DataDictionaryManagement;
using JiShe.ServicePro.DynamicMenuManagement;
using JiShe.ServicePro.FileManagement;
using JiShe.ServicePro.LanguageManagement;
using JiShe.ServicePro.TemplateManagement;
@ -12,8 +12,8 @@ namespace JiShe.IoT
typeof(NotificationManagementHttpApiModule),
typeof(DataDictionaryManagementHttpApiModule),
typeof(LanguageManagementHttpApiModule),
typeof(CodeManagementHttpApiModule),
typeof(TemplateManagementHttpApiModule),
typeof(FileManagementHttpApiModule),
typeof(DynamicMenuManagementHttpApiModule)
)]
public class IoTHttpApiModule : AbpModule

View File

@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
@ -18,9 +18,10 @@
<PackageReference Include="JiShe.ServicePro.NotificationManagement.HttpApi"/>
<PackageReference Include="JiShe.ServicePro.DataDictionaryManagement.HttpApi"/>
<PackageReference Include="JiShe.ServicePro.LanguageManagement.HttpApi"/>
<PackageReference Include="JiShe.ServicePro.CodeManagement.HttpApi"/>
<PackageReference Include="JiShe.ServicePro.TemplateManagement.HttpApi"/>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.HttpApi"/>
</ItemGroup>
<PackageReference Include="JiShe.ServicePro.DynamicMenuManagement.HttpApi"/>
<PackageReference Include="JiShe.ServicePro.FileManagement.HttpApi"/>
</ItemGroup>
</Project>