ref: project structure

This commit is contained in:
2026-08-19 23:25:08 +07:00
parent 05a93cfc09
commit a1fe31cf70
155 changed files with 3339 additions and 1007 deletions
@@ -0,0 +1,18 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using mws.backend.dotnet.domain.MasterData;
namespace mws.backend.dotnet.infrastructure.Persistence.Configuration;
public class MasterDataEntryConfiguration : IEntityTypeConfiguration<MasterDataEntry>
{
public void Configure(EntityTypeBuilder<MasterDataEntry> e)
{
e.ToTable("master_data");
e.HasKey(m => m.Id);
e.Property(m => m.Group).HasMaxLength(100).IsRequired();
e.Property(m => m.Label).HasMaxLength(200).IsRequired();
e.Property(m => m.Value).HasMaxLength(100).IsRequired();
e.HasIndex(m => new { m.Group, m.Value }).IsUnique();
}
}