xiangning 6c110b579a refactor(dependencies): 移除未使用的域实体引用
- 从文件模块的多部分上传处理器中移除未使用的实体引用
- 从即时通讯模块的群组成员处理器中移除未使用的实体引用
- 从RAG模块的AI模型配置中移除未使用的实体引用
- 从监控模块的告警规则配置中移除未使用的实体引用
- 从平台模块的角色权限处理器中移除未使用的实体引用
- 从脚本模块的执行日志实体引用中进行清理
- 从多个基础设施配置类中移除未使用的依赖项
- 优化测试文件中的导入声明,移除不必要的引用
2026-07-19 14:09:47 +08:00

21 lines
877 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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)");
}
}