using ODMO.Commons.DTOs.Character; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace ODMO.Infrastructure.ContextConfiguration.Character { public class CharacterIncubatorConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder .ToTable("Incubator", "Character") .HasKey(x => x.Id); builder .Property(x => x.EggId) .HasColumnType("int") .HasDefaultValue(byte.MinValue) .IsRequired(); builder .Property(x => x.HatchLevel) .HasColumnType("tinyint") .HasDefaultValue(byte.MinValue) .IsRequired(); builder .Property(x => x.BackupDiskId) .HasColumnType("int") .HasDefaultValue(byte.MinValue) .IsRequired(); } } }