using APT.Infrastructure.EF.Map;
using APT.MS.Domain.Entities.FO;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;

namespace APT.MS.Data.Mapping.FO
{
	public partial class FOJobActivityRecordMap : APTEntityBaseMap<T_FO_JOB_ACTIVITY_RECORD>
	{
		public override void Configure(EntityTypeBuilder<T_FO_JOB_ACTIVITY_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CreateUser).WithMany().HasForeignKey(t => t.CREATER_ID).OnDelete(DeleteBehavior.Restrict);
		}
	}
}
