using ODMO.Commons.DTOs.Assets; using ODMO.Commons.Models.Asset; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; namespace ODMO.Infrastructure.ContextConfiguration.Assets { public class TimeRewardAssetConfiguration : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { builder .ToTable("TimeEvent", "Asset") .HasKey(x => x.Id); builder .Property(x => x.Id) .HasColumnType("bigint") .IsRequired(); builder .Property(x => x.CurrentReward) .HasColumnType("int") .IsRequired(); builder .Property(x => x.ItemId) .HasColumnType("int") .IsRequired(); builder .Property(x => x.ItemCount) .HasColumnType("int") .IsRequired(); builder .Property(x => x.RewardIndex) .HasColumnType("int") .HasDefaultValue(0) .IsRequired(); } } }