using ODMO.Commons.DTOs.Assets; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace ODMO.Infrastructure.ContextConfiguration.Assets { public class TamerSkillAssetConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder .ToTable("TamerSkill", "Asset") .HasKey(x => x.Id); builder .Property(x => x.SkillId) .HasColumnType("int") .IsRequired(); builder .Property(x => x.SkillCode) .HasColumnType("int") .IsRequired(); builder .Property(x => x.Duration) .HasColumnType("int") .IsRequired(); builder .Property(x => x.Type) .HasColumnType("int") .HasDefaultValue(0); builder .Property(x => x.BuffId) .HasColumnType("int") .HasDefaultValue(0); } } }