//------------------------------------------------------------------------------
// 
//     This code was generated by a CodeSmith Template.
//
//     DO NOT MODIFY contents of this file. Changes to this
//     file will be lost if the code is regenerated.
// 
//------------------------------------------------------------------------------
using APT.BaseData.Domain.Entities;
using APT.Infrastructure.EF.Map;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
namespace APT.BaseData.Data.Mapping
{
	public partial class PFFlowInstanceTransHisMap: APTEntityBaseMap
    {
		public override void Configure(EntityTypeBuilder builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FromNodeId)
				.HasMaxLength(50) ;
			builder.Property(t => t.FromNodeType) ;
			builder.Property(t => t.FromNodeName)
				.HasMaxLength(200) ;
			builder.Property(t => t.ToNodeId)
				.HasMaxLength(50) ;
			builder.Property(t => t.ToNodeType) ;
			builder.Property(t => t.ToNodeName)
				.HasMaxLength(200) ;
			builder.Property(t => t.TransitionSate)
				.IsRequired();
			builder.Property(t => t.IsFinish)
				.IsRequired();
			builder.Property(t => t.CreateDate)
				.IsRequired();
			builder.Property(t => t.CreateUserId)
				.HasMaxLength(50) ;
			builder.Property(t => t.CreateUserName)
				.HasMaxLength(50) ;
			builder.HasOne(t => t.FlowInstance).
				WithMany(t => t.TransitionHistorys).
				HasForeignKey(t => t.InstanceId);
		}
		 
    }
}