- 从文件模块的多部分上传处理器中移除未使用的实体引用 - 从即时通讯模块的群组成员处理器中移除未使用的实体引用 - 从RAG模块的AI模型配置中移除未使用的实体引用 - 从监控模块的告警规则配置中移除未使用的实体引用 - 从平台模块的角色权限处理器中移除未使用的实体引用 - 从脚本模块的执行日志实体引用中进行清理 - 从多个基础设施配置类中移除未使用的依赖项 - 优化测试文件中的导入声明,移除不必要的引用
21 lines
877 B
C#
21 lines
877 B
C#
using File.Domain.Entities.FileSetting;
|
||
using Microsoft.EntityFrameworkCore;
|
||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||
|
||
namespace File.Infrastructure.Persistence.Configurations;
|
||
|
||
/// <summary>
|
||
/// file_settings 表映射:单行配置表(Id 恒为 1),存储默认存储桶等系统级配置。
|
||
/// </summary>
|
||
public class FileSettingConfiguration : IEntityTypeConfiguration<FileSettingEntity>
|
||
{
|
||
public void Configure(EntityTypeBuilder<FileSettingEntity> builder)
|
||
{
|
||
builder.ToTable("b_file_settings");
|
||
builder.HasKey(e => e.Id);
|
||
builder.Property(e => e.Id).ValueGeneratedNever().HasComment("固定为1,保证单行");
|
||
builder.Property(e => e.DefaultBucket).HasMaxLength(255).IsRequired().HasComment("默认存储桶名");
|
||
builder.Property(e => e.UpdatedAt).HasComment("最后修改时间(UTC)");
|
||
}
|
||
}
|