using ODMO.Commons.DTOs.Config; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace ODMO.Infrastructure.ContextConfiguration.Config { public class MobExpRewardConfigConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder .ToTable("MobExpReward", "Config") .HasKey(x => x.Id); builder .Property(e => e.TamerExperience) .HasColumnType("bigint") .HasDefaultValue(0) .IsRequired(); builder .Property(e => e.DigimonExperience) .HasColumnType("bigint") .HasDefaultValue(0) .IsRequired(); builder .Property(e => e.NatureExperience) .HasColumnType("smallint") .HasDefaultValue(0) .IsRequired(); builder .Property(e => e.ElementExperience) .HasColumnType("smallint") .HasDefaultValue(0) .IsRequired(); builder .Property(e => e.SkillExperience) .HasColumnType("smallint") .HasDefaultValue(0) .IsRequired(); } } }