 
 
 
  
//------------------------------------------------------------------------------
//     T4模板类：基础Map类
//     此代码由T4模板自动生成
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//------------------------------------------------------------------------------
using APT.Infrastructure.EF.Map;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
 using Microsoft.EntityFrameworkCore;
 namespace APT.MS.Data.Mapping
 {
	using APT.MS.Domain.Entities.BS;
using APT.MS.Domain.Entities.FO;
using APT.MS.Domain.Entities.HM;
using APT.MS.Domain.Entities.AE;
using APT.MS.Domain.Entities.BI;
using APT.MS.Domain.Entities.SC.BI;
using APT.MS.Domain.Entities.CM;
using APT.MS.Domain.Entities.PC;
using APT.MS.Domain.Entities.DM;
using APT.MS.Domain.Entities.SC.DM;
using APT.MS.Domain.Entities.LR;
using APT.MS.Domain.Entities.SC;
using APT.MS.Domain.Entities.OG;
using APT.MS.Domain.Entities.SC.OG;
using APT.MS.Domain.Entities.OH;
using APT.MS.Domain.Entities.SC.PM;
using APT.MS.Domain.Entities.SC.PE;
using APT.MS.Domain.Entities.SC.PR;
using APT.MS.Domain.Entities.SC.PT;
using APT.MS.Domain.Entities.SC.SC;
using APT.MS.Domain.Entities.SE;
using APT.MS.Domain.Entities.TI;
using APT.MS.Domain.Entities.TL;
using APT.MS.Domain.Entities.WB;
using APT.MS.Domain.Entities.SK;
using APT.BaseData.Domain.Entities.BD;
using APT.BaseData.Domain.Entities.FM;
using APT.BaseData.Domain.Entities;
using APT.BaseData.Domain.Entities.LG;
using APT.BaseData.Domain.Entities.NW;
using APT.BaseData.Domain.Entities.OP;
using APT.MS.Domain.Entities.PF;
using APT.BaseData.Domain.Entities.PF;
using APT.BaseData.Domain.Entities.T4;
			#region  CheckContent
     public partial class BSCheckContentMap :APTEntityBaseMap<T_BS_CHECK_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_CONTENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.PROOF).HasMaxLength(500);
builder.HasOne(t => t.Nav_CheckProject).WithMany().HasForeignKey(t => t.CHECK_PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckContents
     public partial class BSCheckContentsMap :APTEntityBaseMap<T_BS_CHECK_CONTENTS>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_CONTENTS> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.StrCheckObject);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CheckContentCheckType
     public partial class BSCheckContentCheckTypeMap :APTEntityBaseMap<T_BS_CHECK_CONTENT_CHECK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_CONTENT_CHECK_TYPE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Content).WithMany(t=>t.Nav_ListContentCheckTypes).HasForeignKey(t => t.CHECK_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckContentCheckTypeLevel
     public partial class BSCheckContentCheckTypeLevelMap :APTEntityBaseMap<T_BS_CHECK_CONTENT_CHECK_TYPE_LEVEL>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_CONTENT_CHECK_TYPE_LEVEL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckContentCheckType).WithMany(t=>t.Nav_ListContentCheckTypeLevels).HasForeignKey(t => t.CHECK_CONTENT_CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckTypeLevel).WithMany().HasForeignKey(t => t.T_BS_CHECK_TYPE_LEVEL_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckContentHmRiskArea
     public partial class BSCheckContentHmRiskAreaMap :APTEntityBaseMap<T_BS_CHECK_CONTENT_HM_RISK_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_CONTENT_HM_RISK_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Content).WithMany(t=>t.Nav_ListContentAreas).HasForeignKey(t => t.CHECK_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.HM_RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckMain
     public partial class BSCheckMainMap :APTEntityBaseMap<T_BS_CHECK_MAIN>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_MAIN> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.CHECKOBJECT_DESCRIPTION);
builder.HasOne(t => t.Nav_CheckProject).WithMany().HasForeignKey(t => t.CHECK_PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProjectProjectCategory).WithMany().HasForeignKey(t => t.CHECK_PROJECT_PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProjectCategory).WithMany().HasForeignKey(t => t.CHECK_PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckQuestion).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Ignore(t => t.QUESTION_LEVE_DESCRIPTION);
builder.Ignore(t => t.SERIOUS_RISK_DESCRIPTION);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckTypeLevel).WithMany().HasForeignKey(t => t.CHECK_TYPE_LEVEL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CheckLevelDescription);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.DESCREPTION);
builder.Ignore(t => t.DEMAND);
		} 
     }
	 #endregion
					#region  CheckContentMainDepartment
     public partial class BSCheckContentMainDepartmentMap :APTEntityBaseMap<T_BS_CHECK_CONTENT_MAIN_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_CONTENT_MAIN_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Main).WithMany(t=>t.Nav_ListMainDep).HasForeignKey(t => t.MAIN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckContentQuestion
     public partial class BSCheckContentQuestionMap :APTEntityBaseMap<T_BS_CHECK_CONTENT_QUESTION>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_CONTENT_QUESTION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Content).WithMany(t=>t.Nav_ListContentQuestions).HasForeignKey(t => t.CHECK_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckMainLaw
     public partial class BSCheckMainLawMap :APTEntityBaseMap<T_BS_CHECK_MAIN_LAW>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_MAIN_LAW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Main).WithMany(t=>t.Nav_ListLaw).HasForeignKey(t => t.CHECK_MAIN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Standard).WithMany().HasForeignKey(t => t.STANDARD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckProject
     public partial class BSCheckProjectMap :APTEntityBaseMap<T_BS_CHECK_PROJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_PROJECT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CheckProjectCategory
     public partial class BSCheckProjectCategoryMap :APTEntityBaseMap<T_BS_CHECK_PROJECT_CATEGORY>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_PROJECT_CATEGORY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CheckProjectCategoryChecktype
     public partial class BSCheckProjectCategoryChecktypeMap :APTEntityBaseMap<T_BS_CHECK_PROJECT_CATEGORY_CHECKTYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_PROJECT_CATEGORY_CHECKTYPE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProjectCategory).WithMany(t=>t.Nav_ListCategoryType).HasForeignKey(t => t.PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckProjectCategoryObject
     public partial class BSCheckProjectCategoryObjectMap :APTEntityBaseMap<T_BS_CHECK_PROJECT_CATEGORY_OBJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_PROJECT_CATEGORY_OBJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProjectCategory).WithMany(t=>t.Nav_ListOBJECT).HasForeignKey(t => t.PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckProjectProjectCategory
     public partial class BSCheckProjectProjectCategoryMap :APTEntityBaseMap<T_BS_CHECK_PROJECT_PROJECT_CATEGORY>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_PROJECT_PROJECT_CATEGORY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckProject).WithMany(t=>t.Nav_ListCheckProjectProjectCategory).HasForeignKey(t => t.CHECK_PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_CheckProjectCategory).WithMany().HasForeignKey(t => t.CHECK_PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckQuestion
     public partial class BSCheckQuestionMap :APTEntityBaseMap<T_BS_CHECK_QUESTION>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_QUESTION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Contents).WithMany(t=>t.Nav_ListCheckQuestion).HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCREPTION).HasMaxLength(500);
builder.Property(t => t.DEMAND).HasMaxLength(500);
builder.Ignore(t => t.QUESTION_LEVEL_SHOW);
builder.Ignore(t => t.Nav_Main);
builder.Ignore(t => t.SERIOUS_RISK);
builder.Ignore(t => t.LastDateSystem);
		} 
     }
	 #endregion
					#region  CheckType
     public partial class BSCheckTypeMap :TreeEntityBaseMap<T_BS_CHECK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CheckTypeLevel
     public partial class BSCheckTypeLevelMap :APTEntityBaseMap<T_BS_CHECK_TYPE_LEVEL>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_TYPE_LEVEL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckType).WithMany(t=>t.Nav_ListCheckTypeLevel).HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Enums).WithMany().HasForeignKey(t => t.CheckLevel_ENUMS_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckTypeMinetype
     public partial class BSCheckTypeMinetypeMap :APTEntityBaseMap<T_BS_CHECK_TYPE_MINETYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_CHECK_TYPE_MINETYPE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckType).WithMany(t=>t.Nav_ListMineType).HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Enums).WithMany().HasForeignKey(t => t.MINETYPE_ENUMS_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentAreaobject
     public partial class BSDepartmentAreaobjectMap :APTEntityBaseMap<T_BS_DEPARTMENT_AREAOBJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_DEPARTMENT_AREAOBJECT> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.ISDOWNSAME);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENTID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperateLog
     public partial class BSOperateLogMap :APTEntityBaseMap<T_BS_OPERATE_LOG>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_OPERATE_LOG> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.USRTNAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  PlanSet
     public partial class BSPlanSetMap :APTEntityBaseMap<T_BS_PLAN_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_PLAN_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckTypeLevel).WithMany().HasForeignKey(t => t.CHECK_TYPE_LEVEL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RUNDATA).HasMaxLength(500);
builder.HasOne(t => t.Nav_UserSend).WithMany().HasForeignKey(t => t.USER_ID_SEND).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanSetArea
     public partial class BSPlanSetAreaMap :APTEntityBaseMap<T_BS_PLAN_SET_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_PLAN_SET_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListArea).HasForeignKey(t => t.PLANSET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanSetDepartmentOut
     public partial class BSPlanSetDepartmentOutMap :APTEntityBaseMap<T_BS_PLAN_SET_DEPARTMENT_OUT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_PLAN_SET_DEPARTMENT_OUT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListDepOut).HasForeignKey(t => t.PLANSET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanSetDepObject
     public partial class BSPlanSetDepObjectMap :APTEntityBaseMap<T_BS_PLAN_SET_DEP_OBJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_PLAN_SET_DEP_OBJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListSetDepObject).HasForeignKey(t => t.PLANSET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanSetObject
     public partial class BSPlanSetObjectMap :APTEntityBaseMap<T_BS_PLAN_SET_OBJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_PLAN_SET_OBJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListSetObject).HasForeignKey(t => t.PLANSET_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskCategory
     public partial class BSRiskCategoryMap :APTEntityBaseMap<T_BS_RISK_CATEGORY>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_CATEGORY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  RiskLevelDelayDays
     public partial class BSRiskLevelDelayDaysMap :APTEntityBaseMap<T_BS_RISK_LEVEL_DELAY_DAYS>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_LEVEL_DELAY_DAYS> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  RiskReason
     public partial class BSRiskReasonMap :APTEntityBaseMap<T_BS_RISK_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_REASON> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  RiskSubmit
     public partial class BSRiskSubmitMap :APTEntityBaseMap<T_BS_RISK_SUBMIT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckTypeLevel).WithMany().HasForeignKey(t => t.CHECK_TYPE_LEVEL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Check).WithMany().HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveCheckAudit).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.FORM_CODE);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CREATE_NAME);
		} 
     }
	 #endregion
					#region  RiskSubmitContent
     public partial class BSRiskSubmitContentMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Submit).WithMany(t=>t.Nav_ListRiskSubmitContent).HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitNotice).WithMany(t=>t.Nav_ListRiskSubmitContent).HasForeignKey(t => t.RISK_SUBMIT_NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitNoticePerson).WithMany(t=>t.Nav_ListRiskSubmitContent).HasForeignKey(t => t.RISK_SUBMIT_NOTICE_PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_CheckMain).WithMany().HasForeignKey(t => t.CHECK_MAIN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCREPTION).HasMaxLength(500);
builder.Property(t => t.DEMAND).HasMaxLength(500);
builder.Property(t => t.PROOF).HasMaxLength(500);
builder.Ignore(t => t.QUESTION_LEVEL_SHOW);
builder.Property(t => t.ADDRESS).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentDeal).WithMany().HasForeignKey(t => t.DEAL_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserDeal).WithMany().HasForeignKey(t => t.DEAL_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserActualDeal).WithMany().HasForeignKey(t => t.ACTUAL_DEAL_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserCheck).WithMany().HasForeignKey(t => t.CHECK_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_USER_REFUSED_REASON).HasMaxLength(200);
builder.Property(t => t.DEAL_USER_REFUSED_REASON).HasMaxLength(200);
builder.HasOne(t => t.Nav_ApproveCheckAudit).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.FORM_CODE);
builder.HasOne(t => t.Nav_SafeCheck).WithMany().HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeCheckDetail).WithMany().HasForeignKey(t => t.SAFE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProject).WithMany().HasForeignKey(t => t.CHECK_PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProjectProjectCategory).WithMany().HasForeignKey(t => t.CHECK_PROJECT_PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProjectCategory).WithMany().HasForeignKey(t => t.CHECK_PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIBE).HasMaxLength(500);
builder.Ignore(t => t.CHECK_TYPE_ID);
builder.Ignore(t => t.CHECK_TYPE_LEVEL_ID);
builder.Ignore(t => t.SUBMIT_STATUS);
builder.Ignore(t => t.CHECKOBJECT);
builder.Ignore(t => t.CHECKOBJECT_DESCRIPTION);
builder.Ignore(t => t.CREATE_NAME);
		} 
     }
	 #endregion
					#region  RiskSubmitContentBack
     public partial class BSRiskSubmitContentBackMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_BACK>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_BACK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SubmitContent).WithMany().HasForeignKey(t => t.RISK_SUBMIT_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Submit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitNoticePerson).WithMany().HasForeignKey(t => t.RISK_SUBMIT_NOTICE_PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_CheckMain).WithMany().HasForeignKey(t => t.CHECK_MAIN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ADDRESS).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEMAND).HasMaxLength(500);
builder.HasOne(t => t.Nav_DepartmentDeal).WithMany().HasForeignKey(t => t.DEAL_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserDeal).WithMany().HasForeignKey(t => t.DEAL_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserActualDeal).WithMany().HasForeignKey(t => t.ACTUAL_DEAL_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserCheck).WithMany().HasForeignKey(t => t.CHECK_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveCheckAudit).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.FORM_CODE);
builder.HasOne(t => t.Nav_SafeCheck).WithMany().HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeCheckDetail).WithMany().HasForeignKey(t => t.SAFE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitContentDeal
     public partial class BSRiskSubmitContentDealMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_DEAL>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_DEAL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Submit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitNotice).WithMany().HasForeignKey(t => t.RISK_SUBMIT_NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitNoticePerson).WithMany().HasForeignKey(t => t.RISK_SUBMIT_NOTICE_PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitContent).WithMany().HasForeignKey(t => t.RISK_SUBMIT_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Ignore(t => t.DEALSITUATION_SHOW);
builder.Property(t => t.DEALDESCRIBE).HasMaxLength(500);
builder.Property(t => t.DEALOPINION).HasMaxLength(500);
builder.Property(t => t.CHECKOPINION).HasMaxLength(500);
builder.HasOne(t => t.Nav_UserDeal).WithMany().HasForeignKey(t => t.DEAL_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserActualDeal).WithMany().HasForeignKey(t => t.ACTUAL_DEAL_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserCheck).WithMany().HasForeignKey(t => t.CHECK_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveCheckAudit).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.FORM_CODE);
builder.Ignore(t => t.OPERARTETYPE);
builder.Ignore(t => t.Nav_ApplyDetail);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.DEPARTMENT_ID);
		} 
     }
	 #endregion
					#region  RiskSubmitContentDealAfterFile
     public partial class BSRiskSubmitContentDealAfterFileMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_DEAL_AFTER_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_DEAL_AFTER_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RiskSubmitContentDeal).WithMany(t=>t.Nav_FilesAfter).HasForeignKey(t => t.RISK_SUBMIT_CONTENT_DEAL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitContentDealFile
     public partial class BSRiskSubmitContentDealFileMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_DEAL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_DEAL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RiskSubmitContentDeal).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_SUBMIT_CONTENT_DEAL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitContentDealUserchecksign
     public partial class BSRiskSubmitContentDealUserchecksignMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_DEAL_USERCHECKSIGN>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_DEAL_USERCHECKSIGN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ContentDeal).WithMany(t=>t.Nav_ListCheckUserSign).HasForeignKey(t => t.SUBMIT_CONTENT_DEAL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.SUSER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitContentDealUsersign
     public partial class BSRiskSubmitContentDealUsersignMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_DEAL_USERSIGN>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_DEAL_USERSIGN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ContentDeal).WithMany(t=>t.Nav_ListUserSign).HasForeignKey(t => t.SUBMIT_CONTENT_DEAL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.SUSER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitContentFile
     public partial class BSRiskSubmitContentFileMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RiskSubmit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskSubmitContent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_SUBMIT_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitContentReason
     public partial class BSRiskSubmitContentReasonMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RiskSubmitContent).WithMany(t=>t.Nav_ListRiskQuestionReason).HasForeignKey(t => t.RISK_SUBMIT_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskReason).WithMany().HasForeignKey(t => t.RISK_REASON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitContentTemp
     public partial class BSRiskSubmitContentTempMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_CONTENT_TEMP>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_CONTENT_TEMP> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckProject).WithMany().HasForeignKey(t => t.CHECK_PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckQuestion).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCREPTION).HasMaxLength(500);
builder.Property(t => t.DEMAND).HasMaxLength(500);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckTypeLevel).WithMany().HasForeignKey(t => t.CHECK_TYPE_LEVEL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeCheck).WithMany().HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeCheckDetail).WithMany().HasForeignKey(t => t.SAFE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Submit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitContent).WithMany().HasForeignKey(t => t.RISK_SUBMIT_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID_EDIT).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserAudit).WithMany().HasForeignKey(t => t.USER_ID_AUDIT).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveCheckAudit).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitDelayApply
     public partial class BSRiskSubmitDelayApplyMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_DELAY_APPLY>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_DELAY_APPLY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Submit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitContent).WithMany().HasForeignKey(t => t.RISK_SUBMIT_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitNoticePerson).WithMany().HasForeignKey(t => t.RISK_SUBMIT_NOTICE_PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.USER_NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_DepartmentApply).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(500);
builder.Ignore(t => t.QUESTION_LEVEL_SHOW);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  RiskSubmitDelayApplyDetail
     public partial class BSRiskSubmitDelayApplyDetailMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_DELAY_APPLY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_DELAY_APPLY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Apply).WithMany(t=>t.Nav_ListApplyDetail).HasForeignKey(t => t.RISK_SUBMIT_DELAY_APPLY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_SubmitContent).WithMany().HasForeignKey(t => t.RISK_SUBMIT_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitNoticePerson).WithMany().HasForeignKey(t => t.RISK_SUBMIT_NOTICE_PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TEMPDEMAND).HasMaxLength(1000);
builder.Property(t => t.REASON).HasMaxLength(1000);
		} 
     }
	 #endregion
					#region  RiskSubmitFile
     public partial class BSRiskSubmitFileMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RiskSubmit).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitNotice
     public partial class BSRiskSubmitNoticeMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_NOTICE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_NOTICE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Submit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.NOTICETIME);
builder.Ignore(t => t.FORM_CODE);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskSubmitNoticePerson
     public partial class BSRiskSubmitNoticePersonMap :APTEntityBaseMap<T_BS_RISK_SUBMIT_NOTICE_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_SUBMIT_NOTICE_PERSON> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Submit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SubmitNotice).WithMany().HasForeignKey(t => t.RISK_SUBMIT_NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.QUESTION_LEVEL_SHOW);
builder.Ignore(t => t.OPERATETYPE_SHOW);
builder.Ignore(t => t.Nav_Files);
		} 
     }
	 #endregion
					#region  RiskTpm
     public partial class BSRiskTpmMap :APTEntityBaseMap<T_BS_RISK_TPM>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_RISK_TPM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.machinecode).HasMaxLength(32);
builder.Property(t => t.machinename).HasMaxLength(50);
builder.Property(t => t.usedepartmentname).HasMaxLength(50);
builder.Property(t => t.processworkerid).HasMaxLength(20);
builder.Property(t => t.processworkername).HasMaxLength(30);
builder.Property(t => t.description).HasMaxLength(200);
builder.Property(t => t.remark).HasMaxLength(200);
builder.Property(t => t.processresult).HasMaxLength(200);
builder.Property(t => t.MATCH_EXCEPTION).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  SafeCheck
     public partial class BSSafeCheckMap :APTEntityBaseMap<T_BS_SAFE_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany().HasForeignKey(t => t.PLAN_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(30);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CHECKOBJECT_DESCRIPTION);
builder.HasOne(t => t.Nav_CheckTypeLevel).WithMany().HasForeignKey(t => t.CHECK_TYPE_LEVEL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CheckUsers).HasMaxLength(500);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_ApproveDetails);
builder.HasOne(t => t.Nav_ApproveTemp).WithMany().HasForeignKey(t => t.APPROVE_TEMP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveCheckAudit).WithMany().HasForeignKey(t => t.APPROVE_CHECKAUDIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_ApproveCheckAuditDetails);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USERID_DOPLAN).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENTID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.FORM_CODE);
builder.Ignore(t => t.IS_OVERTIME);
builder.Property(t => t.REMARK_CANCEL).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  SafeCheckDetail
     public partial class BSSafeCheckDetailMap :APTEntityBaseMap<T_BS_SAFE_CHECK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany(t=>t.Nav_ListSafeCheckDetail).HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckMain).WithMany().HasForeignKey(t => t.CHECK_MAIN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CHECKRESULT_DESCRIPTION);
builder.Property(t => t.REMARK_RESULT).HasMaxLength(500);
builder.Ignore(t => t.QUESTION_LEVEL_DESCRIPTION);
builder.HasOne(t => t.Nav_CheckArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProject).WithMany().HasForeignKey(t => t.CHECK_PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProjectProjectCategory).WithMany().HasForeignKey(t => t.CHECK_PROJECT_PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProjectCategory).WithMany().HasForeignKey(t => t.CHECK_PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckQuestion).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Ignore(t => t.ISAUTOLOAD);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ADDRESS).HasMaxLength(100);
builder.Ignore(t => t.Nav_Reject);
		} 
     }
	 #endregion
					#region  SafeCheckDetailFile
     public partial class BSSafeCheckDetailFileMap :APTEntityBaseMap<T_BS_SAFE_CHECK_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SAFE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeCheck).WithMany().HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckDetailLaw
     public partial class BSSafeCheckDetailLawMap :APTEntityBaseMap<T_BS_SAFE_CHECK_DETAIL_LAW>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_DETAIL_LAW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckDetail).WithMany(t=>t.Nav_ListLaw).HasForeignKey(t => t.CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Standard).WithMany().HasForeignKey(t => t.STANDARD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckDetailQuestion
     public partial class BSSafeCheckDetailQuestionMap :APTEntityBaseMap<T_BS_SAFE_CHECK_DETAIL_QUESTION>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_DETAIL_QUESTION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany().HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeCheckDetail).WithMany(t=>t.Nav_ListCheckDetailQuestion).HasForeignKey(t => t.SAFE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.SAFE_CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckDetailReason
     public partial class BSSafeCheckDetailReasonMap :APTEntityBaseMap<T_BS_SAFE_CHECK_DETAIL_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_DETAIL_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckDetail).WithMany(t=>t.Nav_ListCheckDetailReason).HasForeignKey(t => t.CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskReason).WithMany().HasForeignKey(t => t.RISK_REASON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckDetailReject
     public partial class BSSafeCheckDetailRejectMap :APTEntityBaseMap<T_BS_SAFE_CHECK_DETAIL_REJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_DETAIL_REJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Check).WithMany().HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckDetail).WithMany().HasForeignKey(t => t.SAFE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON).HasMaxLength(200);
builder.Ignore(t => t.Nav_User);
		} 
     }
	 #endregion
					#region  SafeCheckDetailRejectFile
     public partial class BSSafeCheckDetailRejectFileMap :APTEntityBaseMap<T_BS_SAFE_CHECK_DETAIL_REJECT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_DETAIL_REJECT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Reject).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.REJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckDetailUser
     public partial class BSSafeCheckDetailUserMap :APTEntityBaseMap<T_BS_SAFE_CHECK_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany().HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeCheckDetail).WithMany(t=>t.Nav_ListCheckDetailUser).HasForeignKey(t => t.SAFE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckFile
     public partial class BSSafeCheckFileMap :APTEntityBaseMap<T_BS_SAFE_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckProject
     public partial class BSSafeCheckProjectMap :APTEntityBaseMap<T_BS_SAFE_CHECK_PROJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_PROJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany(t=>t.Nav_ListCheckProject).HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProject).WithMany().HasForeignKey(t => t.CHECK_PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckProjectCategory
     public partial class BSSafeCheckProjectCategoryMap :APTEntityBaseMap<T_BS_SAFE_CHECK_PROJECT_CATEGORY>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_PROJECT_CATEGORY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany(t=>t.Nav_ListCheckProjectCategory).HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckProjectCategory).WithMany().HasForeignKey(t => t.CHECK_PROJECT_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckRecord
     public partial class BSSafeCheckRecordMap :APTEntityBaseMap<T_BS_SAFE_CHECK_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany().HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafeCheckRecordDetail
     public partial class BSSafeCheckRecordDetailMap :APTEntityBaseMap<T_BS_SAFE_CHECK_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecord).WithMany(t=>t.Nav_ListRecordDetail).HasForeignKey(t => t.SAFE_CHECK_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeCheckDetail).WithMany().HasForeignKey(t => t.SAFE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckRiskArea
     public partial class BSSafeCheckRiskAreaMap :APTEntityBaseMap<T_BS_SAFE_CHECK_RISK_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_RISK_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany(t=>t.Nav_ListCheckRiskArea).HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckUsersign
     public partial class BSSafeCheckUsersignMap :APTEntityBaseMap<T_BS_SAFE_CHECK_USERSIGN>
     {   
        public override void Configure(EntityTypeBuilder<T_BS_SAFE_CHECK_USERSIGN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeCheck).WithMany(t=>t.Nav_ListCheckUserSign).HasForeignKey(t => t.SAFE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.SUSER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ChangeShiftRecord
     public partial class FOChangeShiftRecordMap :APTEntityBaseMap<T_FO_CHANGE_SHIFT_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CHANGE_SHIFT_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Editor).WithMany().HasForeignKey(t => t.EDITOR_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ADDRESS).HasMaxLength(500);
builder.Property(t => t.DEVICE_STORAGE).HasMaxLength(500);
builder.Property(t => t.CURRENT_CLASS_QUESTION).HasMaxLength(500);
builder.Property(t => t.CURRENT_CLASS_MEASURE).HasMaxLength(500);
builder.Property(t => t.DEVICE_QUESTION).HasMaxLength(500);
builder.Property(t => t.DEVICE_MEASURE).HasMaxLength(500);
builder.Property(t => t.ENVIRONMENT_QUESTION).HasMaxLength(500);
builder.Property(t => t.ENVIRONMENT_MEASURE).HasMaxLength(500);
builder.Property(t => t.SUPPLIES_QUESTION).HasMaxLength(500);
builder.Property(t => t.SUPPLIES_MEASURE).HasMaxLength(500);
builder.Property(t => t.LAST_CLASS_RECORD_QUESTION).HasMaxLength(500);
builder.Property(t => t.LAST_CLASS_FINISH_QUESTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Class).WithMany().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentPost).WithMany().HasForeignKey(t => t.DEPARTMENT_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Team).WithMany().HasForeignKey(t => t.TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CHANGE_DEPART);
builder.Ignore(t => t.CURRENT_USER);
builder.Ignore(t => t.CHANGE_USER);
		} 
     }
	 #endregion
					#region  ChangeShiftRecordAfterUser
     public partial class FOChangeShiftRecordAfterUserMap :APTEntityBaseMap<T_FO_CHANGE_SHIFT_RECORD_AFTER_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CHANGE_SHIFT_RECORD_AFTER_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ChangeShiftRecord).WithMany(t=>t.Nav_AfterUsers).HasForeignKey(t => t.CHANGE_SHIFT_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ChangeShiftRecordFile
     public partial class FOChangeShiftRecordFileMap :APTEntityBaseMap<T_FO_CHANGE_SHIFT_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CHANGE_SHIFT_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ChangeShiftRecord).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CHANGE_SHIFT_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ChangeShiftRecordPreUser
     public partial class FOChangeShiftRecordPreUserMap :APTEntityBaseMap<T_FO_CHANGE_SHIFT_RECORD_PRE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CHANGE_SHIFT_RECORD_PRE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ChangeShiftRecord).WithMany(t=>t.Nav_PreUsers).HasForeignKey(t => t.CHANGE_SHIFT_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CrucialLicenseDealMeasure
     public partial class FOCrucialLicenseDealMeasureMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_DEAL_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_DEAL_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_DealMeasures).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CrucialLicenseJob
     public partial class FOCrucialLicenseJobMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_JOB>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_JOB> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(500);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.TERRITORY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MonitorUser).WithMany().HasForeignKey(t => t.MONITOR_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JobCause).HasMaxLength(500);
builder.Property(t => t.SafeMeasuresStr).HasMaxLength(500);
builder.HasOne(t => t.Nav_JobScheme).WithMany().HasForeignKey(t => t.JOB_SCHEME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_PreOperSchFile);
builder.Ignore(t => t.Nav_ApproveDetails);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CALLBACK_INTERFACE);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.PARENT_NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Related).WithMany().HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CrucialLicenseJobFile
     public partial class FOCrucialLicenseJobFileMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_JOB_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_JOB_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CrucialLicenseJobOutsource
     public partial class FOCrucialLicenseJobOutsourceMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(500);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.TERRITORY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MonitorUser).WithMany().HasForeignKey(t => t.MONITOR_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JobCause).HasMaxLength(500);
builder.Property(t => t.SafeMeasuresStr).HasMaxLength(500);
builder.HasOne(t => t.Nav_JobScheme).WithMany().HasForeignKey(t => t.JOB_SCHEME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_PreOperSchFile);
builder.Ignore(t => t.Nav_ApproveDetails);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CALLBACK_INTERFACE);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.PARENT_NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Related).WithMany().HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CrucialLicenseJobRisk
     public partial class FOCrucialLicenseJobRiskMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_JOB_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_JOB_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_Risks).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(20);
		} 
     }
	 #endregion
					#region  CrucialLicenseOutsourceDealMeasure
     public partial class FOCrucialLicenseOutsourceDealMeasureMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_OUTSOURCE_DEAL_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_OUTSOURCE_DEAL_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_DealMeasures).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CrucialLicenseOutsourcePerson
     public partial class FOCrucialLicenseOutsourcePersonMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_OUTSOURCE_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_OUTSOURCE_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_CrucialLicensePerson).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.USER_NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CERTIFICATE_NAME).HasMaxLength(500);
builder.Property(t => t.CERTIFICATE_CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CrucialLicenseOutsourceRisk
     public partial class FOCrucialLicenseOutsourceRiskMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_Risks).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(20);
		} 
     }
	 #endregion
					#region  CrucialLicenseOutsourceSafeConfirm
     public partial class FOCrucialLicenseOutsourceSafeConfirmMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_OUTSOURCE_SAFE_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_OUTSOURCE_SAFE_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_SafeConfirms).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CrucialLicenseOutsourceSafeMeasure
     public partial class FOCrucialLicenseOutsourceSafeMeasureMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_OUTSOURCE_SAFE_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_OUTSOURCE_SAFE_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_SafeMeasures).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CrucialLicensePerson
     public partial class FOCrucialLicensePersonMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_CrucialLicensePerson).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_DOCUMENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Train).WithMany().HasForeignKey(t => t.TRAIN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OUTSOURCE);
builder.Ignore(t => t.RELATED_ID);
		} 
     }
	 #endregion
					#region  CrucialLicenseSafeConfirm
     public partial class FOCrucialLicenseSafeConfirmMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_SAFE_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_SAFE_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_SafeConfirms).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CrucialLicenseSafeMeasure
     public partial class FOCrucialLicenseSafeMeasureMap :APTEntityBaseMap<T_FO_CRUCIAL_LICENSE_SAFE_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CRUCIAL_LICENSE_SAFE_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialLicenseJob).WithMany(t=>t.Nav_SafeMeasures).HasForeignKey(t => t.CRUCIAL_LICENSE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CurrentClassRecord
     public partial class FOCurrentClassRecordMap :APTEntityBaseMap<T_FO_CURRENT_CLASS_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CURRENT_CLASS_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Editor).WithMany().HasForeignKey(t => t.EDITOR_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEVICE_STORAGE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Class).WithMany().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentPost).WithMany().HasForeignKey(t => t.DEPARTMENT_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CURRENT_CLASS_QUESTION).HasMaxLength(500);
builder.Property(t => t.CURRENT_CLASS_MEASURE).HasMaxLength(500);
builder.Property(t => t.DEVICE_QUESTION).HasMaxLength(500);
builder.Property(t => t.DEVICE_MEASURE).HasMaxLength(500);
builder.Property(t => t.ENVIRONMENT_QUESTION).HasMaxLength(500);
builder.Property(t => t.ENVIRONMENT_MEASURE).HasMaxLength(500);
builder.Property(t => t.SUPPLIES_QUESTION).HasMaxLength(500);
builder.Property(t => t.SUPPLIES_MEASURE).HasMaxLength(500);
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.AUDIT_OPINION).HasMaxLength(2000);
builder.HasOne(t => t.Nav_Team).WithMany().HasForeignKey(t => t.CLASS_TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(200);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  CurrentClassRecordFile
     public partial class FOCurrentClassRecordFileMap :APTEntityBaseMap<T_FO_CURRENT_CLASS_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CURRENT_CLASS_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CurrentClassRecord).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CURRENT_CLASS_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CurrentClassRecordLabourSupply
     public partial class FOCurrentClassRecordLabourSupplyMap :APTEntityBaseMap<T_FO_CURRENT_CLASS_RECORD_LABOUR_SUPPLY>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CURRENT_CLASS_RECORD_LABOUR_SUPPLY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CurrentClassRecord).WithMany(t=>t.Nav_LabourSupplies).HasForeignKey(t => t.CURRENT_CLASS_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CurrentClassRecordUser
     public partial class FOCurrentClassRecordUserMap :APTEntityBaseMap<T_FO_CURRENT_CLASS_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_CURRENT_CLASS_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CurrentClassRecord).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.CURRENT_CLASS_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Educational
     public partial class FOEducationalMap :APTEntityBaseMap<T_FO_EDUCATIONAL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_EDUCATIONAL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnterpriseInformationRegistration
     public partial class FOEnterpriseInformationRegistrationMap :APTEntityBaseMap<T_FO_ENTERPRISE_INFORMATION_REGISTRATION>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_ENTERPRISE_INFORMATION_REGISTRATION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.COMPANY_NAME).HasMaxLength(50);
builder.Property(t => t.IDENTIFY_CODE).HasMaxLength(50);
builder.Property(t => t.USER_NAME).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.TYPE).HasMaxLength(50);
builder.Property(t => t.ALLOW_NO).HasMaxLength(50);
builder.Property(t => t.SAFE_ALLOW_NO).HasMaxLength(50);
builder.Property(t => t.COMPANY_DESCRIPTION).HasMaxLength(1000);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  EnterpriseInformationRegistrationAllowfile
     public partial class FOEnterpriseInformationRegistrationAllowfileMap :APTEntityBaseMap<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_ALLOWFILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Company).WithMany(t=>t.Nav_AllowFiles).HasForeignKey(t => t.ENTERPRISE_INFORMATION_REGISTRATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseInformationRegistrationFile
     public partial class FOEnterpriseInformationRegistrationFileMap :APTEntityBaseMap<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Company).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.ENTERPRISE_INFORMATION_REGISTRATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseInformationRegistrationSafefile
     public partial class FOEnterpriseInformationRegistrationSafefileMap :APTEntityBaseMap<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_SAFEFILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Company).WithMany(t=>t.Nav_SafeFiles).HasForeignKey(t => t.ENTERPRISE_INFORMATION_REGISTRATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseInformationRegistrationUnit
     public partial class FOEnterpriseInformationRegistrationUnitMap :APTEntityBaseMap<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_UNIT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Company).WithMany(t=>t.Nav_ProUnits).HasForeignKey(t => t.ENTERPRISE_INFORMATION_REGISTRATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseInformationRegistrationWorkfile
     public partial class FOEnterpriseInformationRegistrationWorkfileMap :APTEntityBaseMap<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_ENTERPRISE_INFORMATION_REGISTRATION_WORKFILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Company).WithMany(t=>t.Nav_WorkFiles).HasForeignKey(t => t.ENTERPRISE_INFORMATION_REGISTRATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJob
     public partial class FOFireJobMap :APTEntityBaseMap<T_FO_FIRE_JOB>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Company).WithMany().HasForeignKey(t => t.COMPANY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_FireUser).WithMany().HasForeignKey(t => t.FIRE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_FireDepartment).WithMany().HasForeignKey(t => t.FIRE_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeUser).WithMany().HasForeignKey(t => t.SAFE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(100);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_CONTENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_MonitorUser).WithMany().HasForeignKey(t => t.MONITOR_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.COMPLETED_CONDITION).HasMaxLength(200);
builder.HasOne(t => t.Nav_DispatchUser).WithMany().HasForeignKey(t => t.DISPATCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.COMPLETED_CONTENT).HasMaxLength(200);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  FireJobDetail
     public partial class FOFireJobDetailMap :APTEntityBaseMap<T_FO_FIRE_JOB_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.FIRE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  FireJobDetailFile
     public partial class FOFireJobDetailFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_DetailFiles).HasForeignKey(t => t.FIRE_JOB_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobFile
     public partial class FOFireJobFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.FIRE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobFireFile
     public partial class FOFireJobFireFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_FIRE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_FIRE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_FireFiles).HasForeignKey(t => t.FIRE_JOB_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobMonitorFile
     public partial class FOFireJobMonitorFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_MONITOR_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_MONITOR_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_MonitorFiles).HasForeignKey(t => t.FIRE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobRisk
     public partial class FOFireJobRiskMap :APTEntityBaseMap<T_FO_FIRE_JOB_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Risks).HasForeignKey(t => t.FIRE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(20);
		} 
     }
	 #endregion
					#region  FireJobUser
     public partial class FOFireJobUserMap :APTEntityBaseMap<T_FO_FIRE_JOB_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.FIRE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserType).WithMany().HasForeignKey(t => t.USER_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CERTIFICATE_NAME).HasMaxLength(100);
builder.Property(t => t.CERTIFICATE_CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Train).WithMany().HasForeignKey(t => t.TRAIN_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobUserFile
     public partial class FOFireJobUserFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_USER_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_USER_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_UserFiles).HasForeignKey(t => t.FIRE_JOB_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWb
     public partial class FOFireJobWbMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Company).WithMany().HasForeignKey(t => t.COMPANY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Related).WithMany().HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DPARTMENT_NAME).HasMaxLength(100);
builder.Property(t => t.USER_NAME).HasMaxLength(50);
builder.Property(t => t.USER_PHONE).HasMaxLength(50);
builder.Property(t => t.SAFE_USER_NAME).HasMaxLength(50);
builder.Property(t => t.SAFE_USER_PHONE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(100);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_CONTENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_MonitorUser).WithMany().HasForeignKey(t => t.MONITOR_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.COMPLETED_CONDITION).HasMaxLength(200);
builder.HasOne(t => t.Nav_DispatchUser).WithMany().HasForeignKey(t => t.DISPATCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.COMPLETED_CONTENT).HasMaxLength(200);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  FireJobWbDetail
     public partial class FOFireJobWbDetailMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.FIRE_JOB_WB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  FireJobWbDetailFile
     public partial class FOFireJobWbDetailFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_DetailFiles).HasForeignKey(t => t.FIRE_JOB_WB_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWbFile
     public partial class FOFireJobWbFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.FIRE_JOB_WB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWbFireFile
     public partial class FOFireJobWbFireFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_FIRE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_FIRE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_FireFiles).HasForeignKey(t => t.FIRE_JOB_WB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWbFireUser
     public partial class FOFireJobWbFireUserMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_FIRE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_FIRE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_FireUser).HasForeignKey(t => t.FIRE_JOB_WB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWbMonitorFile
     public partial class FOFireJobWbMonitorFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_MONITOR_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_MONITOR_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_MonitorFiles).HasForeignKey(t => t.FIRE_JOB_WB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWbRisk
     public partial class FOFireJobWbRiskMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Risks).HasForeignKey(t => t.FIRE_JOB_WB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(20);
		} 
     }
	 #endregion
					#region  FireJobWbSafeUser
     public partial class FOFireJobWbSafeUserMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_SAFE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_SAFE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_SafeUser).HasForeignKey(t => t.FIRE_JOB_WB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWbUser
     public partial class FOFireJobWbUserMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.FIRE_JOB_WB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserType).WithMany().HasForeignKey(t => t.USER_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CERTIFICATE_NAME).HasMaxLength(100);
builder.Property(t => t.CERTIFICATE_CODE).HasMaxLength(50);
builder.Property(t => t.USER_NAME).HasMaxLength(50);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWbUserFile
     public partial class FOFireJobWbUserFileMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_USER_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_USER_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobUser).WithMany(t=>t.Nav_UserFiles).HasForeignKey(t => t.FIRE_JOB_WB_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireJobWbUserSign
     public partial class FOFireJobWbUserSignMap :APTEntityBaseMap<T_FO_FIRE_JOB_WB_USER_SIGN>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_JOB_WB_USER_SIGN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobUser).WithMany(t=>t.Nav_Signs).HasForeignKey(t => t.FIRE_JOB_WB_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FireType
     public partial class FOFireTypeMap :APTEntityBaseMap<T_FO_FIRE_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_FIRE_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Holidays
     public partial class FOHolidaysMap :APTEntityBaseMap<T_FO_HOLIDAYS>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_HOLIDAYS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.YEAR).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  HolidaysDetail
     public partial class FOHolidaysDetailMap :APTEntityBaseMap<T_FO_HOLIDAYS_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_HOLIDAYS_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Holidays).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.HOLIDAYS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  JobActivityDetail
     public partial class FOJobActivityDetailMap :APTEntityBaseMap<T_FO_JOB_ACTIVITY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_ACTIVITY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobActivityRecord).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.JOB_ACTIVITY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SafeConfirmsStr).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  JobActivityFile
     public partial class FOJobActivityFileMap :APTEntityBaseMap<T_FO_JOB_ACTIVITY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_ACTIVITY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Details).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.T_FO_JOB_ACTIVITY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobActivityFlow
     public partial class FOJobActivityFlowMap :APTEntityBaseMap<T_FO_JOB_ACTIVITY_FLOW>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_ACTIVITY_FLOW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobActivityRecord).WithMany(t=>t.Nav_Flow).HasForeignKey(t => t.JOB_ACTIVITY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SafeMeasuresStr).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  JobActivityFlowFile
     public partial class FOJobActivityFlowFileMap :APTEntityBaseMap<T_FO_JOB_ACTIVITY_FLOW_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_ACTIVITY_FLOW_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Flow).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.T_FO_JOB_ACTIVITY_FLOW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobActivityMeasure
     public partial class FOJobActivityMeasureMap :APTEntityBaseMap<T_FO_JOB_ACTIVITY_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_ACTIVITY_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobActivityRecord).WithMany(t=>t.Nav_Measure).HasForeignKey(t => t.JOB_ACTIVITY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DealMeasuresStr).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  JobActivityMeasureFile
     public partial class FOJobActivityMeasureFileMap :APTEntityBaseMap<T_FO_JOB_ACTIVITY_MEASURE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_ACTIVITY_MEASURE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Measure).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.T_FO_JOB_ACTIVITY_MEASURE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobActivityPerson
     public partial class FOJobActivityPersonMap :APTEntityBaseMap<T_FO_JOB_ACTIVITY_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_ACTIVITY_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobActivityRecord).WithMany(t=>t.Nav_JobActivityPerson).HasForeignKey(t => t.JOB_ACTIVITY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_DOCUMENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RelatedUser).WithMany().HasForeignKey(t => t.RELATED_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobActivityRecord
     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.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TechDisclosure).WithMany().HasForeignKey(t => t.TECH_DISCLOSURE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_JobName).WithMany().HasForeignKey(t => t.JOB_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_JobNameOut).WithMany().HasForeignKey(t => t.JOB_NAME_OUTSOURCE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(500);
builder.Property(t => t.EFFECTIVE).HasMaxLength(500);
builder.Property(t => t.EXIST).HasMaxLength(500);
builder.Property(t => t.SUITABLE).HasMaxLength(500);
builder.Property(t => t.NEED).HasMaxLength(500);
builder.Property(t => t.REQUIRES).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.Property(t => t.PARENT_NAME).HasMaxLength(500);
builder.Ignore(t => t.Nav_AcceptUsers);
		} 
     }
	 #endregion
					#region  JobEventDetail
     public partial class FOJobEventDetailMap :APTEntityBaseMap<T_FO_JOB_EVENT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_EVENT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobEventRecord).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.JOB_EVENT_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SafeConfirmsStr).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(1000);
		} 
     }
	 #endregion
					#region  JobEventFile
     public partial class FOJobEventFileMap :APTEntityBaseMap<T_FO_JOB_EVENT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_EVENT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Details).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.T_FO_JOB_EVENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobEventFlow
     public partial class FOJobEventFlowMap :APTEntityBaseMap<T_FO_JOB_EVENT_FLOW>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_EVENT_FLOW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobEventRecord).WithMany(t=>t.Nav_Flow).HasForeignKey(t => t.JOB_EVENT_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SafeMeasuresStr).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(1000);
		} 
     }
	 #endregion
					#region  JobEventFlowFile
     public partial class FOJobEventFlowFileMap :APTEntityBaseMap<T_FO_JOB_EVENT_FLOW_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_EVENT_FLOW_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Flow).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.T_FO_JOB_EVENT_FLOW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobEventMeasure
     public partial class FOJobEventMeasureMap :APTEntityBaseMap<T_FO_JOB_EVENT_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_EVENT_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobEventRecord).WithMany(t=>t.Nav_Measure).HasForeignKey(t => t.JOB_EVENT_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DealMeasuresStr).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(1000);
		} 
     }
	 #endregion
					#region  JobEventMeasureFile
     public partial class FOJobEventMeasureFileMap :APTEntityBaseMap<T_FO_JOB_EVENT_MEASURE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_EVENT_MEASURE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Measure).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.T_FO_JOB_EVENT_MEASURE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobEventPerson
     public partial class FOJobEventPersonMap :APTEntityBaseMap<T_FO_JOB_EVENT_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_EVENT_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobEventRecord).WithMany(t=>t.Nav_JobEventPerson).HasForeignKey(t => t.JOB_EVENT_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobEventRecord
     public partial class FOJobEventRecordMap :APTEntityBaseMap<T_FO_JOB_EVENT_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_JOB_EVENT_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_DATE).HasMaxLength(500);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.PARENT_NAME).HasMaxLength(500);
builder.Ignore(t => t.USER_NAME);
		} 
     }
	 #endregion
					#region  LabourSupply
     public partial class FOLabourSupplyMap :APTEntityBaseMap<T_FO_LABOUR_SUPPLY>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LABOUR_SUPPLY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LeaderWellRecord
     public partial class FOLeaderWellRecordMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Company).WithMany().HasForeignKey(t => t.COMPANY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Class).WithMany().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.PLACE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  LeaderWellRecordAfteruser
     public partial class FOLeaderWellRecordAfteruserMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_AFTERUSER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_AFTERUSER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_AfterUsers).HasForeignKey(t => t.LEADER_WELL_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AfterUser).WithMany().HasForeignKey(t => t.AFTER_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LeaderWellRecordDetail
     public partial class FOLeaderWellRecordDetailMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.LEADER_WELL_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.QUESTION).HasMaxLength(500);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ITEM).HasMaxLength(500);
builder.Property(t => t.PLACE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  LeaderWellRecordDetailAfteruser
     public partial class FOLeaderWellRecordDetailAfteruserMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_DETAIL_AFTERUSER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_DETAIL_AFTERUSER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_AfterUsers).HasForeignKey(t => t.LEADER_WELL_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AfterUser).WithMany().HasForeignKey(t => t.AFTER_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LeaderWellRecordDetailArea
     public partial class FOLeaderWellRecordDetailAreaMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_DETAIL_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_DETAIL_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_DetailAreas).HasForeignKey(t => t.LEADER_WELL_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LeaderWellRecordDetailFile
     public partial class FOLeaderWellRecordDetailFileMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_DetailFiles).HasForeignKey(t => t.LEADER_WELL_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LeaderWellRecordDetailPreuser
     public partial class FOLeaderWellRecordDetailPreuserMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_DETAIL_PREUSER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_DETAIL_PREUSER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_PreUsers).HasForeignKey(t => t.LEADER_WELL_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PreUser).WithMany().HasForeignKey(t => t.PRE_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LeaderWellRecordFile
     public partial class FOLeaderWellRecordFileMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.LEADER_WELL_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LeaderWellRecordPreuser
     public partial class FOLeaderWellRecordPreuserMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_PREUSER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_PREUSER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_PreUsers).HasForeignKey(t => t.LEADER_WELL_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PreUser).WithMany().HasForeignKey(t => t.PRE_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LeaderWellRecordUser
     public partial class FOLeaderWellRecordUserMap :APTEntityBaseMap<T_FO_LEADER_WELL_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_LEADER_WELL_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.LEADER_WELL_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PreOperSch
     public partial class FOPreOperSchMap :APTEntityBaseMap<T_FO_PRE_OPER_SCH>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PRE_OPER_SCH> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FILE_NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.LANUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  PreOperSchFile
     public partial class FOPreOperSchFileMap :APTEntityBaseMap<T_FO_PRE_OPER_SCH_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PRE_OPER_SCH_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PreOperSch).WithMany(t=>t.Nav_PreOperSchFile).HasForeignKey(t => t.PRE_OPER_SCH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PreOperSchUser
     public partial class FOPreOperSchUserMap :APTEntityBaseMap<T_FO_PRE_OPER_SCH_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PRE_OPER_SCH_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PreOperSch).WithMany(t=>t.Nav_PreOperSchUser).HasForeignKey(t => t.PRE_OPER_SCH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RealDepartmentPost).WithMany().HasForeignKey(t => t.REAL_DEPARTMENT_POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PreShiftMeetingRecord
     public partial class FOPreShiftMeetingRecordMap :APTEntityBaseMap<T_FO_PRE_SHIFT_MEETING_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PRE_SHIFT_MEETING_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.LOCATION).HasMaxLength(500);
builder.Property(t => t.JOB_CONTENT).HasMaxLength(1000);
builder.Property(t => t.PROTECT_MEASURE).HasMaxLength(1000);
builder.Property(t => t.OTHER_CONTENT).HasMaxLength(1000);
builder.Property(t => t.RATE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Class).WithMany().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Team).WithMany().HasForeignKey(t => t.TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Monitor).WithMany().HasForeignKey(t => t.MONITOR_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ABNORMAL_CAUSE).HasMaxLength(1000);
builder.Property(t => t.GREETING).HasMaxLength(500);
builder.Property(t => t.SLOGAN).HasMaxLength(500);
builder.Property(t => t.WELCOME).HasMaxLength(500);
builder.Property(t => t.TODAY_PLAN).HasMaxLength(2000);
builder.Property(t => t.LEARNING).HasMaxLength(2000);
builder.Property(t => t.PRAISE).HasMaxLength(2000);
builder.Property(t => t.SHARE).HasMaxLength(2000);
builder.Property(t => t.DANGER).HasMaxLength(2000);
builder.Property(t => t.DIFFICULTY).HasMaxLength(2000);
builder.Property(t => t.SAFETY_OATH).HasMaxLength(2000);
		} 
     }
	 #endregion
					#region  PreShiftMeetingRecordDetail
     public partial class FOPreShiftMeetingRecordDetailMap :APTEntityBaseMap<T_FO_PRE_SHIFT_MEETING_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PRE_SHIFT_MEETING_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PreShiftMeetingRecord).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.PRE_SHIFT_MEETING_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.QUOTA).HasMaxLength(500);
builder.Property(t => t.PURPOSE).HasMaxLength(500);
builder.Property(t => t.ACTUAL).HasMaxLength(500);
builder.Property(t => t.RATE).HasMaxLength(20);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.Property(t => t.IMPROVE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  PreShiftMeetingRecordDetailPost
     public partial class FOPreShiftMeetingRecordDetailPostMap :APTEntityBaseMap<T_FO_PRE_SHIFT_MEETING_RECORD_DETAIL_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PRE_SHIFT_MEETING_RECORD_DETAIL_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PreShiftMeetingDetail).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.PRE_SHIFT_MEETING_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PreShiftMeetingRecordFile
     public partial class FOPreShiftMeetingRecordFileMap :APTEntityBaseMap<T_FO_PRE_SHIFT_MEETING_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PRE_SHIFT_MEETING_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PreShiftMeetingRecord).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PRE_SHIFT_MEETING_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PreShiftMeetingRecordUser
     public partial class FOPreShiftMeetingRecordUserMap :APTEntityBaseMap<T_FO_PRE_SHIFT_MEETING_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PRE_SHIFT_MEETING_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PreShiftMeetingRecord).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.PRE_SHIFT_MEETING_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RealDepartmentPost).WithMany().HasForeignKey(t => t.REAL_DEPARTMENT_POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProfessionalCategory
     public partial class FOProfessionalCategoryMap :APTEntityBaseMap<T_FO_PROFESSIONAL_CATEGORY>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_CATEGORY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ProfessionalResume
     public partial class FOProfessionalResumeMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Company).WithMany().HasForeignKey(t => t.COMPANY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(30);
builder.HasOne(t => t.Nav_Educational).WithMany().HasForeignKey(t => t.EDUCATIONAL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SCHOOL).HasMaxLength(100);
builder.Property(t => t.MAJOR).HasMaxLength(100);
builder.HasOne(t => t.Nav_Category).WithMany().HasForeignKey(t => t.PROFESSIONAL_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TechPost).WithMany().HasForeignKey(t => t.TECH_POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProfessionalResumeCertificateFile
     public partial class FOProfessionalResumeCertificateFileMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Professional).WithMany(t=>t.Nav_CertificateFiles).HasForeignKey(t => t.PROFESSIONAL_RESUME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProfessionalResumeDetail
     public partial class FOProfessionalResumeDetailMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Professional).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.PROFESSIONAL_RESUME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.UNIT).HasMaxLength(100);
builder.Property(t => t.WORK_POST).HasMaxLength(100);
builder.Property(t => t.POST_DUTY).HasMaxLength(500);
builder.Property(t => t.WORK_ACHIEVEMENT).HasMaxLength(500);
builder.Property(t => t.SKILL_IMPROVE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ProfessionalResumeDetailFile
     public partial class FOProfessionalResumeDetailFileMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_DetailFiles).HasForeignKey(t => t.PROFESSIONAL_RESUME_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProfessionalResumeEducationalFile
     public partial class FOProfessionalResumeEducationalFileMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Professional).WithMany(t=>t.Nav_EducationalFiles).HasForeignKey(t => t.PROFESSIONAL_RESUME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProfessionalResumeMedicalFile
     public partial class FOProfessionalResumeMedicalFileMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Professional).WithMany(t=>t.Nav_MedicalFiles).HasForeignKey(t => t.PROFESSIONAL_RESUME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProfessionalResumeOtherFile
     public partial class FOProfessionalResumeOtherFileMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME_OTHER_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME_OTHER_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Professional).WithMany(t=>t.Nav_OtherFiles).HasForeignKey(t => t.PROFESSIONAL_RESUME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProfessionalResumePostFile
     public partial class FOProfessionalResumePostFileMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME_POST_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME_POST_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Professional).WithMany(t=>t.Nav_PostFiles).HasForeignKey(t => t.PROFESSIONAL_RESUME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProfessionalResumeTrainFile
     public partial class FOProfessionalResumeTrainFileMap :APTEntityBaseMap<T_FO_PROFESSIONAL_RESUME_TRAIN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_PROFESSIONAL_RESUME_TRAIN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Professional).WithMany(t=>t.Nav_TrainFiles).HasForeignKey(t => t.PROFESSIONAL_RESUME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Scheduling
     public partial class FOSchedulingMap :APTEntityBaseMap<T_FO_SCHEDULING>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_SCHEDULING> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Tech).WithMany().HasForeignKey(t => t.TECH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Driver).WithMany().HasForeignKey(t => t.DRIVER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.WEEK).HasMaxLength(500);
builder.Property(t => t.PHONE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Class).WithMany().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SchedulingTemplate
     public partial class FOSchedulingTemplateMap :APTEntityBaseMap<T_FO_SCHEDULING_TEMPLATE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_SCHEDULING_TEMPLATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SchedulingTemplateDetail
     public partial class FOSchedulingTemplateDetailMap :APTEntityBaseMap<T_FO_SCHEDULING_TEMPLATE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_SCHEDULING_TEMPLATE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Template).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.SCHEDULING_TEMPLATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PHONE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TeamActivity
     public partial class FOTeamActivityMap :APTEntityBaseMap<T_FO_TEAM_ACTIVITY>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TEAM_ACTIVITY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.TITLE).HasMaxLength(100);
builder.Property(t => t.ADDRESS).HasMaxLength(100);
builder.Property(t => t.DURATION).HasMaxLength(20);
builder.HasOne(t => t.Nav_MainUser).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.NOTE_AKER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Taem).WithMany().HasForeignKey(t => t.TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ACTIVITY_CONTENT).HasMaxLength(1000);
builder.Ignore(t => t.OpType);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.DEPARTMENT_ID);
		} 
     }
	 #endregion
					#region  TeamActivityFile
     public partial class FOTeamActivityFileMap :APTEntityBaseMap<T_FO_TEAM_ACTIVITY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TEAM_ACTIVITY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TeamActivity).WithMany(t=>t.Nav_TeamActivityFile).HasForeignKey(t => t.TEAM_ACTIVITY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TeamActivityUser
     public partial class FOTeamActivityUserMap :APTEntityBaseMap<T_FO_TEAM_ACTIVITY_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TEAM_ACTIVITY_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TeamActivity).WithMany(t=>t.Nav_TeamActivityUser).HasForeignKey(t => t.TEAM_ACTIVITY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TeamSlogan
     public partial class FOTeamSloganMap :APTEntityBaseMap<T_FO_TEAM_SLOGAN>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TEAM_SLOGAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Team).WithMany().HasForeignKey(t => t.TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SLOGAN).HasMaxLength(500);
builder.Property(t => t.SAFETY_OATH).HasMaxLength(2000);
builder.Property(t => t.LOCATION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TechDisclosureFile
     public partial class FOTechDisclosureFileMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TechDisclosure).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.TECH_DISCLOSURE_FROM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TechDisclosureFrom
     public partial class FOTechDisclosureFromMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_FROM>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_FROM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_JobName).WithMany().HasForeignKey(t => t.JOB_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_FireJob).WithMany().HasForeignKey(t => t.FIRE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_JobNameOut).WithMany().HasForeignKey(t => t.JOB_NAME_OUTSOURCE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(500);
builder.HasOne(t => t.Nav_DisclosurePerson).WithMany().HasForeignKey(t => t.DISCLOSURE_PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DisclosuredPerson).WithMany().HasForeignKey(t => t.DISCLOSURED_PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DisclosureContent).HasMaxLength(2000);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  TechDisclosureFromSafe
     public partial class FOTechDisclosureFromSafeMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_FROM_SAFE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_FROM_SAFE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DisclosureContent).HasMaxLength(2000);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Job).WithMany().HasForeignKey(t => t.FIRE_JOB_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TechDisclosureFromSafeFile
     public partial class FOTechDisclosureFromSafeFileMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_FROM_SAFE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TechDisclosure).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.TECH_DISCLOSURE_FROM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TechDisclosureFromSafePerson
     public partial class FOTechDisclosureFromSafePersonMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TechDisclosure).WithMany(t=>t.Nav_Person).HasForeignKey(t => t.TECH_DISCLOSURE_FROM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TechDisclosureFromTech
     public partial class FOTechDisclosureFromTechMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_FROM_TECH>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_FROM_TECH> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JOB_LOCATION).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DisclosureContent).HasMaxLength(2000);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  TechDisclosureFromTechFile
     public partial class FOTechDisclosureFromTechFileMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_FROM_TECH_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_FROM_TECH_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TechDisclosure).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.TECH_DISCLOSURE_FROM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TechDisclosureFromTechPerson
     public partial class FOTechDisclosureFromTechPersonMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TechDisclosure).WithMany(t=>t.Nav_Person).HasForeignKey(t => t.TECH_DISCLOSURE_FROM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TechDisclosurePerson
     public partial class FOTechDisclosurePersonMap :APTEntityBaseMap<T_FO_TECH_DISCLOSURE_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_DISCLOSURE_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TechDisclosure).WithMany(t=>t.Nav_Person).HasForeignKey(t => t.TECH_DISCLOSURE_FROM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RelatedUser).WithMany().HasForeignKey(t => t.RELATED_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TechPost
     public partial class FOTechPostMap :APTEntityBaseMap<T_FO_TECH_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_TECH_POST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Category).WithMany().HasForeignKey(t => t.PROFESSIONAL_CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  UserType
     public partial class FOUserTypeMap :APTEntityBaseMap<T_FO_USER_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_FO_USER_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EvaluationPlan
     public partial class HMEvaluationPlanMap :APTEntityBaseMap<T_HM_EVALUATION_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATION_PLAN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DOCUMENT_NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_InitiatingDepartment).WithMany().HasForeignKey(t => t.INITIATING_DEPARTMENT).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_GroupLeader).WithMany().HasForeignKey(t => t.GROUP_LEADER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DeputyGroupLeader).WithMany().HasForeignKey(t => t.DEPUTY_GROUP_LEADER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EVALUATION_CONTENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_ReleaseUser).WithMany().HasForeignKey(t => t.RELEASE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.APPROVECODE).HasMaxLength(50);
builder.Property(t => t.AUDIT_OPINION).HasMaxLength(500);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  EvaluationFile
     public partial class HMEvaluationFileMap :APTEntityBaseMap<T_HM_EVALUATION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationPlan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluationDetail
     public partial class HMEvaluationDetailMap :APTEntityBaseMap<T_HM_EVALUATION_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATION_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationPlan).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.LEVEL).HasMaxLength(50);
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  EvaluationDetailArea
     public partial class HMEvaluationDetailAreaMap :APTEntityBaseMap<T_HM_EVALUATION_DETAIL_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATION_DETAIL_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_Areas).HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluationDetailIdentifying
     public partial class HMEvaluationDetailIdentifyingMap :APTEntityBaseMap<T_HM_EVALUATION_DETAIL_IDENTIFYING>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATION_DETAIL_IDENTIFYING> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_Identifyings).HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  NoticeRelease
     public partial class HMNoticeReleaseMap :APTEntityBaseMap<T_HM_NOTICE_RELEASE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_NOTICE_RELEASE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NOTICE_NAME).HasMaxLength(50);
builder.Property(t => t.DOCUMENT_CODE).HasMaxLength(50);
builder.Property(t => t.DOCUMENT_NAME).HasMaxLength(50);
builder.Property(t => t.DOCUMENT_VERSION).HasMaxLength(50);
builder.HasOne(t => t.Nav_TaskAnalyze).WithMany().HasForeignKey(t => t.TASK_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ReleaseUser).WithMany().HasForeignKey(t => t.RELEASE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ReleasDepartment).WithMany().HasForeignKey(t => t.RELEAS_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  NoticeReleaseDepartment
     public partial class HMNoticeReleaseDepartmentMap :APTEntityBaseMap<T_HM_NOTICE_RELEASE_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_NOTICE_RELEASE_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_NoticeRelease).WithMany(t=>t.Nav_ReleaseRange).HasForeignKey(t => t.NOTICE_RELEASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskTask
     public partial class HMRiskTaskMap :APTEntityBaseMap<T_HM_RISK_TASK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_TASK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.LEVEL).HasMaxLength(50);
builder.HasOne(t => t.Nav_InitiatingDepartment).WithMany().HasForeignKey(t => t.INITIATING_DEPARTMENT).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Request).WithMany().HasForeignKey(t => t.REQUEST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.APPROVECODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_LiableUser).WithMany().HasForeignKey(t => t.LIABLE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  RiskTaskArea
     public partial class HMRiskTaskAreaMap :APTEntityBaseMap<T_HM_RISK_TASK_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_TASK_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_Areas).HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskTaskDetail
     public partial class HMRiskTaskDetailMap :APTEntityBaseMap<T_HM_RISK_TASK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_TASK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_Detail).HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.RECORD_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskTaskFile
     public partial class HMRiskTaskFileMap :APTEntityBaseMap<T_HM_RISK_TASK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_TASK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskArea
     public partial class HMRiskAreaMap :TreeEntityBaseMap<T_HM_RISK_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_AREA> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_User);
builder.Ignore(t => t.Nav_Post);
builder.Ignore(t => t.Nav_Device);
builder.Ignore(t => t.Nav_Risk);
builder.Ignore(t => t.Nav_Submit);
builder.Ignore(t => t.Nav_Check);
		} 
     }
	 #endregion
					#region  RiskTaskIdentifying
     public partial class HMRiskTaskIdentifyingMap :APTEntityBaseMap<T_HM_RISK_TASK_IDENTIFYING>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_TASK_IDENTIFYING> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_Identifyings).HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskTaskUser
     public partial class HMRiskTaskUserMap :APTEntityBaseMap<T_HM_RISK_TASK_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_TASK_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task_Detail).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.TASK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskRecord
     public partial class HMRiskRecordMap :APTEntityBaseMap<T_HM_RISK_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Request).WithMany().HasForeignKey(t => t.REQUEST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Task).WithMany().HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_NoteTaker).WithMany().HasForeignKey(t => t.NOTE_TAKER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_InitiatingDepartment).WithMany().HasForeignKey(t => t.INITIATING_DEPARTMENT).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.APPROVECODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_LiableUser).WithMany().HasForeignKey(t => t.LIABLE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  RiskRecordDetail
     public partial class HMRiskRecordDetailMap :APTEntityBaseMap<T_HM_RISK_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateRisk).WithMany().HasForeignKey(t => t.EVALUATE_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(200);
builder.Property(t => t.RISK_PLACE).HasMaxLength(200);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentLiable).WithMany().HasForeignKey(t => t.DEPARTMENT_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PostLiable).WithMany().HasForeignKey(t => t.POST_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LiableUser).WithMany().HasForeignKey(t => t.LIABLE_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskRecordDetailEquipment
     public partial class HMRiskRecordDetailEquipmentMap :APTEntityBaseMap<T_HM_RISK_RECORD_DETAIL_EQUIPMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_RECORD_DETAIL_EQUIPMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RiskRecordDetail).WithMany(t=>t.Nav_EvaluateRiskRecordEquipment).HasForeignKey(t => t.RISK_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Equipment).WithMany().HasForeignKey(t => t.EQUIPMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskRecordDetailFacilities
     public partial class HMRiskRecordDetailFacilitiesMap :APTEntityBaseMap<T_HM_RISK_RECORD_DETAIL_FACILITIES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_RECORD_DETAIL_FACILITIES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RiskRecordDetail).WithMany(t=>t.Nav_EvaluateRiskRecordFacilities).HasForeignKey(t => t.RISK_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Facilities).WithMany().HasForeignKey(t => t.FACILITIES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskRecordDetailWorkduty
     public partial class HMRiskRecordDetailWorkdutyMap :APTEntityBaseMap<T_HM_RISK_RECORD_DETAIL_WORKDUTY>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_RECORD_DETAIL_WORKDUTY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RiskRecordDetail).WithMany(t=>t.Nav_EvaluateRiskRecordWorkduty).HasForeignKey(t => t.RISK_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Workduty).WithMany().HasForeignKey(t => t.WORKDUTY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskRecordFile
     public partial class HMRiskRecordFileMap :APTEntityBaseMap<T_HM_RISK_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskRecordIdentifying
     public partial class HMRiskRecordIdentifyingMap :APTEntityBaseMap<T_HM_RISK_RECORD_IDENTIFYING>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_RECORD_IDENTIFYING> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Identifyings).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskRecordUser
     public partial class HMRiskRecordUserMap :APTEntityBaseMap<T_HM_RISK_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluationSchedule
     public partial class HMEvaluationScheduleMap :APTEntityBaseMap<T_HM_EVALUATION_SCHEDULE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATION_SCHEDULE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FORM_NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_ApproveRole).WithMany().HasForeignKey(t => t.APPROVE_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AnalysisPerson
     public partial class HMAnalysisPersonMap :APTEntityBaseMap<T_HM_ANALYSIS_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_ANALYSIS_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LicenseAnalysis).WithMany(t=>t.Nav_AnalysisPerson).HasForeignKey(t => t.LICENSE_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CrucialAnalysisFile
     public partial class HMCrucialAnalysisFileMap :APTEntityBaseMap<T_HM_CRUCIAL_ANALYSIS_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_CRUCIAL_ANALYSIS_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Details).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CRUCIAL_TASK_ANALYSIS_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CrucialAnalysisPerson
     public partial class HMCrucialAnalysisPersonMap :APTEntityBaseMap<T_HM_CRUCIAL_ANALYSIS_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_CRUCIAL_ANALYSIS_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialTaskAnalysis).WithMany(t=>t.Nav_CrucialAnalysisPerson).HasForeignKey(t => t.CRUCIAL_TASK_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CrucialTaskAnalysis
     public partial class HMCrucialTaskAnalysisMap :APTEntityBaseMap<T_HM_CRUCIAL_TASK_ANALYSIS>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_CRUCIAL_TASK_ANALYSIS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationAnalyze).WithMany().HasForeignKey(t => t.OPERATION_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CALLBACK_INTERFACE);
builder.Ignore(t => t.Nav_ApproveDetails);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  CrucialTaskDetail
     public partial class HMCrucialTaskDetailMap :APTEntityBaseMap<T_HM_CRUCIAL_TASK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_CRUCIAL_TASK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CrucialTaskAnalysis).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.CRUCIAL_TASK_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SafeConfirmsStr).HasMaxLength(500);
builder.Property(t => t.SafeMeasuresStr).HasMaxLength(500);
builder.Property(t => t.DealMeasuresStr).HasMaxLength(500);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CrucialTaskDetailRisk
     public partial class HMCrucialTaskDetailRiskMap :APTEntityBaseMap<T_HM_CRUCIAL_TASK_DETAIL_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_CRUCIAL_TASK_DETAIL_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Details).WithMany(t=>t.Nav_DetailRisk).HasForeignKey(t => t.CRUCIAL_TASK_ANALYSIS_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateRisk).WithMany().HasForeignKey(t => t.EVALUATE_RISK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EducationMeasures
     public partial class HMEducationMeasuresMap :APTEntityBaseMap<T_HM_EDUCATION_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EDUCATION_MEASURES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  EmergencyMeasures
     public partial class HMEmergencyMeasuresMap :APTEntityBaseMap<T_HM_EMERGENCY_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EMERGENCY_MEASURES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  EngineeringMeasures
     public partial class HMEngineeringMeasuresMap :APTEntityBaseMap<T_HM_ENGINEERING_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_ENGINEERING_MEASURES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  Equipment
     public partial class HMEquipmentMap :APTEntityBaseMap<T_HM_EQUIPMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EQUIPMENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  EvaluateHazard
     public partial class HMEvaluateHazardMap :APTEntityBaseMap<T_HM_EVALUATE_HAZARD>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_HAZARD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HAZARD_POSITION).HasMaxLength(300);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EXPOSURE_LIMIT_VALUE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OccupationalRisk).WithMany().HasForeignKey(t => t.OCCUPATIONALRISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MonitorMeasures).WithMany().HasForeignKey(t => t.MONITOR_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentLiable).WithMany().HasForeignKey(t => t.DEPARTMENT_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PostLiable).WithMany().HasForeignKey(t => t.POST_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.IndividualMeasuresStr).HasMaxLength(500);
builder.Property(t => t.EngineeringMeasuresStr).HasMaxLength(500);
builder.Property(t => t.ManagementMeasuresStr).HasMaxLength(500);
builder.Property(t => t.EducationTrainingMeasuresStr).HasMaxLength(500);
builder.Property(t => t.EmergencyDisposalMeasuresStr).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EvaluateHazardDepartment
     public partial class HMEvaluateHazardDepartmentMap :APTEntityBaseMap<T_HM_EVALUATE_HAZARD_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_HAZARD_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateHazard).WithMany(t=>t.Nav_EvaluateHazardDepartment).HasForeignKey(t => t.EVALUATE_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateHazardEducationMeasures
     public partial class HMEvaluateHazardEducationMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_HAZARD_EDUCATION_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_HAZARD_EDUCATION_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateHazard).WithMany(t=>t.Nav_EvaluateHazardEducationMeasures).HasForeignKey(t => t.EVALUATE_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EducationMeasures).WithMany().HasForeignKey(t => t.EDUCATION_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateHazardEmergencyMeasures
     public partial class HMEvaluateHazardEmergencyMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_HAZARD_EMERGENCY_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_HAZARD_EMERGENCY_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateHazard).WithMany(t=>t.Nav_EvaluateHazardEmergencyMeasures).HasForeignKey(t => t.EVALUATE_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EmergencyMeasures).WithMany().HasForeignKey(t => t.EMERGENCY_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateHazardEngineeringMeasures
     public partial class HMEvaluateHazardEngineeringMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_HAZARD_ENGINEERING_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_HAZARD_ENGINEERING_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateHazard).WithMany(t=>t.Nav_EvaluateHazardEngineeringMeasures).HasForeignKey(t => t.EVALUATE_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EngineeringMeasures).WithMany().HasForeignKey(t => t.ENGINEERING_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateHazardIndividualMeasures
     public partial class HMEvaluateHazardIndividualMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_HAZARD_INDIVIDUAL_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_HAZARD_INDIVIDUAL_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateHazard).WithMany(t=>t.Nav_EvaluateHazardIndividualMeasures).HasForeignKey(t => t.EVALUATE_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_IndividualMeasures).WithMany().HasForeignKey(t => t.INDIVIDUAL_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateHazardManagementMeasures
     public partial class HMEvaluateHazardManagementMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_HAZARD_MANAGEMENT_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_HAZARD_MANAGEMENT_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateHazard).WithMany(t=>t.Nav_EvaluateHazardManagementMeasures).HasForeignKey(t => t.EVALUATE_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ManagementMeasures).WithMany().HasForeignKey(t => t.MANAGEMENT_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRequirement
     public partial class HMEvaluateRequirementMap :APTEntityBaseMap<T_HM_EVALUATE_REQUIREMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_REQUIREMENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  EvaluateResult
     public partial class HMEvaluateResultMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Requirement).WithMany().HasForeignKey(t => t.REQUIREMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_NoteTaker).WithMany().HasForeignKey(t => t.NOTE_TAKER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_InitiatingDepartment).WithMany().HasForeignKey(t => t.INITIATING_DEPARTMENT).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.APPROVECODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  EvaluateResultFile
     public partial class HMEvaluateResultFileMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateResult).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.EVALUATE_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultHazard
     public partial class HMEvaluateResultHazardMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_HAZARD>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_HAZARD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateResult).WithMany(t=>t.Nav_Hazards).HasForeignKey(t => t.EVALUATE_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HAZARD_POSITION).HasMaxLength(100);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EXPOSURE_LIMIT_VALUE).HasMaxLength(50);
builder.HasOne(t => t.Nav_OccupationalRisk).WithMany().HasForeignKey(t => t.OCCUPATIONALRISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateHazard).WithMany().HasForeignKey(t => t.EVALUATE_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MonitorMeasures).WithMany().HasForeignKey(t => t.MONITOR_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentLiable).WithMany().HasForeignKey(t => t.DEPARTMENT_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PostLiable).WithMany().HasForeignKey(t => t.POST_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LiableUser).WithMany().HasForeignKey(t => t.LIABLE_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultHazardEducationMeasures
     public partial class HMEvaluateResultHazardEducationMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_HAZARD_EDUCATION_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_HAZARD_EDUCATION_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultHazard).WithMany(t=>t.Nav_EvaluateHazardEducationMeasures).HasForeignKey(t => t.EVALUATE_RESULT_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EducationMeasures).WithMany().HasForeignKey(t => t.EDUCATION_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultHazardEmergencyMeasures
     public partial class HMEvaluateResultHazardEmergencyMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_HAZARD_EMERGENCY_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_HAZARD_EMERGENCY_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultHazard).WithMany(t=>t.Nav_EvaluateHazardEmergencyMeasures).HasForeignKey(t => t.EVALUATE_RESULT_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EmergencyMeasures).WithMany().HasForeignKey(t => t.EMERGENCY_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultHazardEngineeringMeasures
     public partial class HMEvaluateResultHazardEngineeringMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_HAZARD_ENGINEERING_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_HAZARD_ENGINEERING_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultHazard).WithMany(t=>t.Nav_EvaluateHazardEngineeringMeasures).HasForeignKey(t => t.EVALUATE_RESULT_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EngineeringMeasures).WithMany().HasForeignKey(t => t.ENGINEERING_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultHazardIndividualMeasures
     public partial class HMEvaluateResultHazardIndividualMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_HAZARD_INDIVIDUAL_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_HAZARD_INDIVIDUAL_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultHazard).WithMany(t=>t.Nav_EvaluateHazardIndividualMeasures).HasForeignKey(t => t.EVALUATE_RESULT_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_IndividualMeasures).WithMany().HasForeignKey(t => t.INDIVIDUAL_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultHazardManagementMeasures
     public partial class HMEvaluateResultHazardManagementMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_HAZARD_MANAGEMENT_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_HAZARD_MANAGEMENT_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultHazard).WithMany(t=>t.Nav_EvaluateHazardManagementMeasures).HasForeignKey(t => t.EVALUATE_RESULT_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ManagementMeasures).WithMany().HasForeignKey(t => t.MANAGEMENT_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRisk
     public partial class HMEvaluateResultRiskMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluateResult).WithMany(t=>t.Nav_Risks).HasForeignKey(t => t.EVALUATE_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.RISK_PLACE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateRisk).WithMany().HasForeignKey(t => t.EVALUATE_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentLiable).WithMany().HasForeignKey(t => t.DEPARTMENT_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PostLiable).WithMany().HasForeignKey(t => t.POST_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LiableUser).WithMany().HasForeignKey(t => t.LIABLE_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRiskEducationMeasures
     public partial class HMEvaluateResultRiskEducationMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK_EDUCATION_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK_EDUCATION_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultRisk).WithMany(t=>t.Nav_EvaluateRiskEducationMeasures).HasForeignKey(t => t.EVALUATION_RESULT_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EducationMeasures).WithMany().HasForeignKey(t => t.EDUCATION_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRiskEmergencyMeasures
     public partial class HMEvaluateResultRiskEmergencyMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK_EMERGENCY_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK_EMERGENCY_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultRisk).WithMany(t=>t.Nav_EvaluateRiskEmergencyMeasures).HasForeignKey(t => t.EVALUATION_RESULT_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EmergencyMeasures).WithMany().HasForeignKey(t => t.EMERGENCY_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRiskEngineeringMeasures
     public partial class HMEvaluateResultRiskEngineeringMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK_ENGINEERING_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK_ENGINEERING_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultRisk).WithMany(t=>t.Nav_EvaluateRiskEngineeringMeasures).HasForeignKey(t => t.EVALUATION_RESULT_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EngineeringMeasures).WithMany().HasForeignKey(t => t.ENGINEERING_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRiskEquipment
     public partial class HMEvaluateResultRiskEquipmentMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK_EQUIPMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK_EQUIPMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultRisk).WithMany(t=>t.Nav_EvaluateRiskEquipment).HasForeignKey(t => t.EVALUATION_RESULT_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Equipment).WithMany().HasForeignKey(t => t.EQUIPMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRiskFacilities
     public partial class HMEvaluateResultRiskFacilitiesMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK_FACILITIES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK_FACILITIES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultRisk).WithMany(t=>t.Nav_EvaluateRiskFacilities).HasForeignKey(t => t.EVALUATION_RESULT_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Facilities).WithMany().HasForeignKey(t => t.FACILITIES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRiskIndividualMeasures
     public partial class HMEvaluateResultRiskIndividualMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK_INDIVIDUAL_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK_INDIVIDUAL_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultRisk).WithMany(t=>t.Nav_EvaluateRiskIndividualMeasures).HasForeignKey(t => t.EVALUATION_RESULT_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_IndividualMeasures).WithMany().HasForeignKey(t => t.INDIVIDUAL_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRiskManagementMeasures
     public partial class HMEvaluateResultRiskManagementMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK_MANAGEMENT_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK_MANAGEMENT_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultRisk).WithMany(t=>t.Nav_EvaluateRiskManagementMeasures).HasForeignKey(t => t.EVALUATION_RESULT_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ManagementMeasures).WithMany().HasForeignKey(t => t.MANAGEMENT_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateResultRiskWorkduty
     public partial class HMEvaluateResultRiskWorkdutyMap :APTEntityBaseMap<T_HM_EVALUATE_RESULT_RISK_WORKDUTY>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RESULT_RISK_WORKDUTY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationResultRisk).WithMany(t=>t.Nav_EvaluateRiskWorkduty).HasForeignKey(t => t.EVALUATION_RESULT_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.WORKDUTY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRisk
     public partial class HMEvaluateRiskMap :APTEntityBaseMap<T_HM_EVALUATE_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_PLACE).HasMaxLength(50);
builder.Ignore(t => t.EVALUATE_LEVEL_SHOW);
builder.Property(t => t.IndividualMeasuresStr).HasMaxLength(500);
builder.Property(t => t.EngineeringMeasuresStr).HasMaxLength(500);
builder.Property(t => t.ManagementMeasuresStr).HasMaxLength(500);
builder.Property(t => t.EducationTrainingMeasuresStr).HasMaxLength(500);
builder.Property(t => t.EmergencyDisposalMeasuresStr).HasMaxLength(500);
builder.Property(t => t.postStr).HasMaxLength(500);
builder.Property(t => t.equipmentStr).HasMaxLength(500);
builder.HasOne(t => t.Nav_DepartmentLiable).WithMany().HasForeignKey(t => t.DEPARTMENT_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PostLiable).WithMany().HasForeignKey(t => t.POST_LIABLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SourceDepartment).WithMany().HasForeignKey(t => t.SOURCE_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskDepartment
     public partial class HMEvaluateRiskDepartmentMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskDepartment).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskEducationMeasures
     public partial class HMEvaluateRiskEducationMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_EDUCATION_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_EDUCATION_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskEducationMeasures).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EducationMeasures).WithMany().HasForeignKey(t => t.EDUCATION_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskEmergencyMeasures
     public partial class HMEvaluateRiskEmergencyMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_EMERGENCY_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_EMERGENCY_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskEmergencyMeasures).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EmergencyMeasures).WithMany().HasForeignKey(t => t.EMERGENCY_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskEngineeringMeasures
     public partial class HMEvaluateRiskEngineeringMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_ENGINEERING_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_ENGINEERING_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskEngineeringMeasures).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EngineeringMeasures).WithMany().HasForeignKey(t => t.ENGINEERING_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskEquipment
     public partial class HMEvaluateRiskEquipmentMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_EQUIPMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_EQUIPMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskEquipment).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Equipment).WithMany().HasForeignKey(t => t.EQUIPMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskFacilities
     public partial class HMEvaluateRiskFacilitiesMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_FACILITIES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_FACILITIES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskFacilities).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Facilities).WithMany().HasForeignKey(t => t.FACILITIES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskIndividualMeasures
     public partial class HMEvaluateRiskIndividualMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_INDIVIDUAL_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_INDIVIDUAL_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskIndividualMeasures).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_IndividualMeasures).WithMany().HasForeignKey(t => t.INDIVIDUAL_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskLec
     public partial class HMEvaluateRiskLecMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_LEC>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_LEC> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.TYPE).HasMaxLength(1);
		} 
     }
	 #endregion
					#region  EvaluateRiskManagementMeasures
     public partial class HMEvaluateRiskManagementMeasuresMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_MANAGEMENT_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_MANAGEMENT_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskManagementMeasures).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ManagementMeasures).WithMany().HasForeignKey(t => t.MANAGEMENT_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluateRiskWorkduty
     public partial class HMEvaluateRiskWorkdutyMap :APTEntityBaseMap<T_HM_EVALUATE_RISK_WORKDUTY>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_EVALUATE_RISK_WORKDUTY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRisk).WithMany(t=>t.Nav_EvaluateRiskWorkduty).HasForeignKey(t => t.EVALUATION_RISK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Facilities
     public partial class HMFacilitiesMap :APTEntityBaseMap<T_HM_FACILITIES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_FACILITIES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TYPE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  FilePublish
     public partial class HMFilePublishMap :APTEntityBaseMap<T_HM_FILE_PUBLISH>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_FILE_PUBLISH> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_CrucialTaskAnalysis).WithMany().HasForeignKey(t => t.CRUCIAL_TASK_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LicenseAnalysis).WithMany().HasForeignKey(t => t.LICENSE_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OrdinaryTaskAnalysis).WithMany().HasForeignKey(t => t.ORDINARY_TASK_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EDITION).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.Nav_License_Details);
builder.Ignore(t => t.Nav_Crucial_Details);
builder.Ignore(t => t.Nav_Ordinary_Details);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  FilePublishArea
     public partial class HMFilePublishAreaMap :APTEntityBaseMap<T_HM_FILE_PUBLISH_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_FILE_PUBLISH_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_FilePublish).WithMany(t=>t.Nav_Area).HasForeignKey(t => t.FILE_PUBLISH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardRecord
     public partial class HMHazardRecordMap :APTEntityBaseMap<T_HM_HAZARD_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_InitiatingDepartment).WithMany().HasForeignKey(t => t.INITIATING_DEPARTMENT).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_NoteTaker).WithMany().HasForeignKey(t => t.NOTE_TAKER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.APPROVECODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_LiableUser).WithMany().HasForeignKey(t => t.LIABLE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.Property(t => t.AREAS).HasMaxLength(500);
builder.Property(t => t.IDENTIFYINGS).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  HazardRecordDetail
     public partial class HMHazardRecordDetailMap :APTEntityBaseMap<T_HM_HAZARD_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_HazardRecord).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateHazard).WithMany().HasForeignKey(t => t.EVALUATE_HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HAZARD_POSITION).HasMaxLength(200);
builder.Property(t => t.EXPOSURE_LIMIT_VALUE).HasMaxLength(100);
builder.HasOne(t => t.Nav_OccupationalRisk).WithMany().HasForeignKey(t => t.OCCUPATIONALRISK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardRecordFile
     public partial class HMHazardRecordFileMap :APTEntityBaseMap<T_HM_HAZARD_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardRecordUser
     public partial class HMHazardRecordUserMap :APTEntityBaseMap<T_HM_HAZARD_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardTask
     public partial class HMHazardTaskMap :APTEntityBaseMap<T_HM_HAZARD_TASK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_TASK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.LEVEL).HasMaxLength(50);
builder.HasOne(t => t.Nav_InitiatingDepartment).WithMany().HasForeignKey(t => t.INITIATING_DEPARTMENT).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.APPROVECODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_LiableUser).WithMany().HasForeignKey(t => t.LIABLE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  HazardTaskArea
     public partial class HMHazardTaskAreaMap :APTEntityBaseMap<T_HM_HAZARD_TASK_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_TASK_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_Areas).HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardTaskDetail
     public partial class HMHazardTaskDetailMap :APTEntityBaseMap<T_HM_HAZARD_TASK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_TASK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_Detail).HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.RECORD_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardTaskDetailIdentifying
     public partial class HMHazardTaskDetailIdentifyingMap :APTEntityBaseMap<T_HM_HAZARD_TASK_DETAIL_IDENTIFYING>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_TASK_DETAIL_IDENTIFYING> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task_Detail).WithMany(t=>t.Nav_Identifyings).HasForeignKey(t => t.TASK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardTaskDetailUser
     public partial class HMHazardTaskDetailUserMap :APTEntityBaseMap<T_HM_HAZARD_TASK_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_TASK_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task_Detail).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.TASK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardTaskFile
     public partial class HMHazardTaskFileMap :APTEntityBaseMap<T_HM_HAZARD_TASK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_TASK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardTaskIdentifying
     public partial class HMHazardTaskIdentifyingMap :APTEntityBaseMap<T_HM_HAZARD_TASK_IDENTIFYING>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_HAZARD_TASK_IDENTIFYING> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_Identifyings).HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identifying).WithMany().HasForeignKey(t => t.IDENTIFYING_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Identifying
     public partial class HMIdentifyingMap :APTEntityBaseMap<T_HM_IDENTIFYING>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_IDENTIFYING> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.LIMIT_UNIT).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  IndividualMeasures
     public partial class HMIndividualMeasuresMap :APTEntityBaseMap<T_HM_INDIVIDUAL_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_INDIVIDUAL_MEASURES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  JobtaskIdentify
     public partial class HMJobtaskIdentifyMap :APTEntityBaseMap<T_HM_JOBTASK_IDENTIFY>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_JOBTASK_IDENTIFY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_ApproveDetails);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CALLBACK_INTERFACE);
builder.Ignore(t => t.PARAM);
builder.Ignore(t => t.FORM_CODE);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  JobtaskIdentifyDetail
     public partial class HMJobtaskIdentifyDetailMap :APTEntityBaseMap<T_HM_JOBTASK_IDENTIFY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_JOBTASK_IDENTIFY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobtaskIdentify).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.JOBTASK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.DetailPost);
builder.Ignore(t => t.OperationStepName);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobtaskIdentifyDetailPost
     public partial class HMJobtaskIdentifyDetailPostMap :APTEntityBaseMap<T_HM_JOBTASK_IDENTIFY_DETAIL_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_JOBTASK_IDENTIFY_DETAIL_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_DetailPost).HasForeignKey(t => t.JOBTASK_IDENTIFY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobtaskIdentifyDetailRisk
     public partial class HMJobtaskIdentifyDetailRiskMap :APTEntityBaseMap<T_HM_JOBTASK_IDENTIFY_DETAIL_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_JOBTASK_IDENTIFY_DETAIL_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_DetailRisk).HasForeignKey(t => t.JOBTASK_IDENTIFY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateRisk).WithMany().HasForeignKey(t => t.EVALUATE_RISK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobtaskIdentifyFile
     public partial class HMJobtaskIdentifyFileMap :APTEntityBaseMap<T_HM_JOBTASK_IDENTIFY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_JOBTASK_IDENTIFY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobtaskIdentify).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.JOBTASK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobtaskIdentifyUser
     public partial class HMJobtaskIdentifyUserMap :APTEntityBaseMap<T_HM_JOBTASK_IDENTIFY_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_JOBTASK_IDENTIFY_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_JobtaskIdentify).WithMany(t=>t.Nav_IdentifyUser).HasForeignKey(t => t.JOBTASK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LicenseAnalysis
     public partial class HMLicenseAnalysisMap :APTEntityBaseMap<T_HM_LICENSE_ANALYSIS>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_LICENSE_ANALYSIS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationAnalyze).WithMany().HasForeignKey(t => t.OPERATION_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CALLBACK_INTERFACE);
builder.Ignore(t => t.Nav_ApproveDetails);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  LicenseAnalysisDetail
     public partial class HMLicenseAnalysisDetailMap :APTEntityBaseMap<T_HM_LICENSE_ANALYSIS_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_LICENSE_ANALYSIS_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LicenseAnalysis).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.LICENSE_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SafeConfirmsStr).HasMaxLength(500);
builder.Property(t => t.SafeMeasuresStr).HasMaxLength(500);
builder.Property(t => t.DealMeasuresStr).HasMaxLength(500);
builder.HasOne(t => t.Nav_WorkPermitType).WithMany().HasForeignKey(t => t.WORK_PERMIT_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LicenseAnalysisDetailRisk
     public partial class HMLicenseAnalysisDetailRiskMap :APTEntityBaseMap<T_HM_LICENSE_ANALYSIS_DETAIL_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_LICENSE_ANALYSIS_DETAIL_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Details).WithMany(t=>t.Nav_DetailRisk).HasForeignKey(t => t.LICENSE_ANALYSIS_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateRisk).WithMany().HasForeignKey(t => t.EVALUATE_RISK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LicenseAnalysisFile
     public partial class HMLicenseAnalysisFileMap :APTEntityBaseMap<T_HM_LICENSE_ANALYSIS_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_LICENSE_ANALYSIS_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Details).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.LICENSE_ANALYSIS_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ManagementMeasures
     public partial class HMManagementMeasuresMap :APTEntityBaseMap<T_HM_MANAGEMENT_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_MANAGEMENT_MEASURES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  MonitorMeasures
     public partial class HMMonitorMeasuresMap :APTEntityBaseMap<T_HM_MONITOR_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_MONITOR_MEASURES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  NoticeReleaseFile
     public partial class HMNoticeReleaseFileMap :APTEntityBaseMap<T_HM_NOTICE_RELEASE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_NOTICE_RELEASE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_NoticeRelease).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.NOTICE_RELEASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OccupationalRisk
     public partial class HMOccupationalRiskMap :APTEntityBaseMap<T_HM_OCCUPATIONAL_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OCCUPATIONAL_RISK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  OperationInstructionFile
     public partial class HMOperationInstructionFileMap :APTEntityBaseMap<T_HM_OPERATION_INSTRUCTION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_INSTRUCTION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationLink).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationLink
     public partial class HMOperationLinkMap :APTEntityBaseMap<T_HM_OPERATION_LINK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_LINK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_WorkPermitType).WithMany().HasForeignKey(t => t.WORK_PERMIT_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SafeConfirmsStr).HasMaxLength(2000);
builder.Property(t => t.SafeMeasuresStr).HasMaxLength(2000);
builder.Property(t => t.DealMeasuresStr).HasMaxLength(2000);
builder.Property(t => t.POST).HasMaxLength(500);
builder.HasOne(t => t.Nav_Unit).WithMany().HasForeignKey(t => t.UNIT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationLinkArea
     public partial class HMOperationLinkAreaMap :APTEntityBaseMap<T_HM_OPERATION_LINK_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_LINK_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationLink).WithMany(t=>t.Nav_LinkArea).HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationLinkEvaluateRisk
     public partial class HMOperationLinkEvaluateRiskMap :APTEntityBaseMap<T_HM_OPERATION_LINK_EVALUATE_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_LINK_EVALUATE_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationLink).WithMany(t=>t.Nav_OperationLinkEvaluateRisk).HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateRisk).WithMany().HasForeignKey(t => t.EVALUATE_RISK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationLinkPost
     public partial class HMOperationLinkPostMap :APTEntityBaseMap<T_HM_OPERATION_LINK_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_LINK_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationLink).WithMany(t=>t.Nav_LinkPost).HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationStep
     public partial class HMOperationStepMap :APTEntityBaseMap<T_HM_OPERATION_STEP>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_STEP> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationStepDealMeasure
     public partial class HMOperationStepDealMeasureMap :APTEntityBaseMap<T_HM_OPERATION_STEP_DEAL_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_STEP_DEAL_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationStep).WithMany(t=>t.Nav_DealMeasures).HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(600);
		} 
     }
	 #endregion
					#region  OperationStepSafeConfirm
     public partial class HMOperationStepSafeConfirmMap :APTEntityBaseMap<T_HM_OPERATION_STEP_SAFE_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_STEP_SAFE_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationStep).WithMany(t=>t.Nav_SafeConfirms).HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(600);
		} 
     }
	 #endregion
					#region  OperationStepSafeMeasure
     public partial class HMOperationStepSafeMeasureMap :APTEntityBaseMap<T_HM_OPERATION_STEP_SAFE_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_STEP_SAFE_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationStep).WithMany(t=>t.Nav_SafeMeasures).HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(600);
		} 
     }
	 #endregion
					#region  OperationTaskAnalyzeDealMeasure
     public partial class HMOperationTaskAnalyzeDealMeasureMap :APTEntityBaseMap<T_HM_OPERATION_TASK_ANALYZE_DEAL_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_ANALYZE_DEAL_MEASURE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationTaskAnalyzeSafeConfirm
     public partial class HMOperationTaskAnalyzeSafeConfirmMap :APTEntityBaseMap<T_HM_OPERATION_TASK_ANALYZE_SAFE_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_ANALYZE_SAFE_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationTaskAnalyzeSafeMeasure
     public partial class HMOperationTaskAnalyzeSafeMeasureMap :APTEntityBaseMap<T_HM_OPERATION_TASK_ANALYZE_SAFE_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_ANALYZE_SAFE_MEASURE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationTaskDealMeasure
     public partial class HMOperationTaskDealMeasureMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DEAL_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DEAL_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationLink).WithMany(t=>t.Nav_DealMeasures).HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(600);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguish
     public partial class HMOperationTaskDistinguishMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyze
     public partial class HMOperationTaskDistinguishAnalyzeMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_JobtaskIdentify).WithMany().HasForeignKey(t => t.JOBTASK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CALLBACK_INTERFACE);
builder.Ignore(t => t.Nav_ApproveDetails);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeDetail
     public partial class HMOperationTaskDistinguishAnalyzeDetailMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DistinguishAnalyze).WithMany(t=>t.Nav_AnalyzeDetails).HasForeignKey(t => t.OPERATION_TASK_DISTINGUISH_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DistinguishAnalyzeH).WithMany().HasForeignKey(t => t.ANALYZE_H_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DistinguishAnalyzeL).WithMany().HasForeignKey(t => t.ANALYZE_L_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DistinguishAnalyzeE).WithMany().HasForeignKey(t => t.ANALYZE_E_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DistinguishAnalyzeP).WithMany().HasForeignKey(t => t.ANALYZE_P_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DistinguishAnalyzeR).WithMany().HasForeignKey(t => t.ANALYZE_R_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_WorkPermitType).WithMany().HasForeignKey(t => t.WORK_PERMIT_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeE
     public partial class HMOperationTaskDistinguishAnalyzeEMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_E>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_E> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeFile
     public partial class HMOperationTaskDistinguishAnalyzeFileMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DistinguishAnalyze).WithMany(t=>t.Nav_AnalyzeFiles).HasForeignKey(t => t.OPERATION_TASK_DISTINGUISH_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeH
     public partial class HMOperationTaskDistinguishAnalyzeHMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_H>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_H> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeL
     public partial class HMOperationTaskDistinguishAnalyzeLMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_L>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_L> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeP
     public partial class HMOperationTaskDistinguishAnalyzePMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_P>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_P> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeR
     public partial class HMOperationTaskDistinguishAnalyzeRMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_R>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_R> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeRisk
     public partial class HMOperationTaskDistinguishAnalyzeRiskMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AnalyzeDetails).WithMany(t=>t.Nav_DetailRisk).HasForeignKey(t => t.OPERATION_TASK_DISTINGUISH_ANALYZE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateRisk).WithMany().HasForeignKey(t => t.EVALUATE_RISK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishAnalyzeUser
     public partial class HMOperationTaskDistinguishAnalyzeUserMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_ANALYZE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DistinguishAnalyze).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.OPERATION_TASK_DISTINGUISH_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishDetail
     public partial class HMOperationTaskDistinguishDetailMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationTaskDistinguish).WithMany(t=>t.Nav_DistinguishDetails).HasForeignKey(t => t.OPERATION_TASK_DISTINGUISH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Workduty).WithMany().HasForeignKey(t => t.WORKDUTY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_WorkType).WithMany().HasForeignKey(t => t.WORK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishFile
     public partial class HMOperationTaskDistinguishFileMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationTaskDistinguish).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.OPERATION_TASK_DISTINGUISH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationTaskDistinguishUser
     public partial class HMOperationTaskDistinguishUserMap :APTEntityBaseMap<T_HM_OPERATION_TASK_DISTINGUISH_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_DISTINGUISH_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationTaskDistinguish).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.OPERATION_TASK_DISTINGUISH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OperationTaskSafeConfirm
     public partial class HMOperationTaskSafeConfirmMap :APTEntityBaseMap<T_HM_OPERATION_TASK_SAFE_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_SAFE_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationLink).WithMany(t=>t.Nav_SafeConfirms).HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(600);
		} 
     }
	 #endregion
					#region  OperationTaskSafeMeasure
     public partial class HMOperationTaskSafeMeasureMap :APTEntityBaseMap<T_HM_OPERATION_TASK_SAFE_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OPERATION_TASK_SAFE_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationLink).WithMany(t=>t.Nav_SafeMeasures).HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(600);
		} 
     }
	 #endregion
					#region  OrdinaryAnalysisFile
     public partial class HMOrdinaryAnalysisFileMap :APTEntityBaseMap<T_HM_ORDINARY_ANALYSIS_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_ORDINARY_ANALYSIS_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Details).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.ORDINARY_TASK_ANALYSIS_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OrdinaryAnalysisPerson
     public partial class HMOrdinaryAnalysisPersonMap :APTEntityBaseMap<T_HM_ORDINARY_ANALYSIS_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_ORDINARY_ANALYSIS_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OrdinaryTaskAnalysis).WithMany(t=>t.Nav_OrdinaryAnalysisPerson).HasForeignKey(t => t.ORDINARY_TASK_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OrdinaryTaskDetailRisk
     public partial class HMOrdinaryTaskDetailRiskMap :APTEntityBaseMap<T_HM_ORDINARY_TASK_DETAIL_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_ORDINARY_TASK_DETAIL_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Details).WithMany(t=>t.Nav_DetailRisk).HasForeignKey(t => t.ORDINARY_TASK_ANALYSIS_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateRisk).WithMany().HasForeignKey(t => t.EVALUATE_RISK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OrdinaryTaskAnalysis
     public partial class HMOrdinaryTaskAnalysisMap :APTEntityBaseMap<T_HM_ORDINARY_TASK_ANALYSIS>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_ORDINARY_TASK_ANALYSIS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationAnalyze).WithMany().HasForeignKey(t => t.OPERATION_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CALLBACK_INTERFACE);
builder.Ignore(t => t.Nav_ApproveDetails);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  OrdinaryTaskDetail
     public partial class HMOrdinaryTaskDetailMap :APTEntityBaseMap<T_HM_ORDINARY_TASK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_ORDINARY_TASK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OrdinaryTaskAnalysis).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.ORDINARY_TASK_ANALYSIS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SafeConfirmsStr).HasMaxLength(500);
builder.Property(t => t.SafeMeasuresStr).HasMaxLength(500);
builder.Property(t => t.DealMeasuresStr).HasMaxLength(500);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OtherApproveLog
     public partial class HMOtherApproveLogMap :APTEntityBaseMap<T_HM_OTHER_APPROVE_LOG>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_OTHER_APPROVE_LOG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Request
     public partial class HMRequestMap :APTEntityBaseMap<T_HM_REQUEST>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_REQUEST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  Risksource
     public partial class HMRisksourceMap :APTEntityBaseMap<T_HM_RISKSOURCE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISKSOURCE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  RiskType
     public partial class HMRiskTypeMap :APTEntityBaseMap<T_HM_RISK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_RISK_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  TaskAnalyze
     public partial class HMTaskAnalyzeMap :APTEntityBaseMap<T_HM_TASK_ANALYZE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_TASK_ANALYZE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DistinguishAnalyze).WithMany().HasForeignKey(t => t.OPERATION_TASK_DISTINGUISH_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TaskAnalyzeDetail
     public partial class HMTaskAnalyzeDetailMap :APTEntityBaseMap<T_HM_TASK_ANALYZE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_TASK_ANALYZE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TaskAnalyze).WithMany(t=>t.Nav_AnalyzeDetails).HasForeignKey(t => t.TASK_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationLink).WithMany().HasForeignKey(t => t.OPERATION_LINK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TaskAnalyzeDetailFile
     public partial class HMTaskAnalyzeDetailFileMap :APTEntityBaseMap<T_HM_TASK_ANALYZE_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_TASK_ANALYZE_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FILE_NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  TaskAnalyzeUser
     public partial class HMTaskAnalyzeUserMap :APTEntityBaseMap<T_HM_TASK_ANALYZE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_TASK_ANALYZE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TaskAnalyze).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.TASK_ANALYZE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WorkPermitType
     public partial class HMWorkPermitTypeMap :APTEntityBaseMap<T_HM_WORK_PERMIT_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_WORK_PERMIT_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  WorkType
     public partial class HMWorkTypeMap :APTEntityBaseMap<T_HM_WORK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_HM_WORK_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  AccidentEventDamageObject
     public partial class AEAccidentEventDamageObjectMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_DAMAGE_OBJECT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  AccidentEventReasonType
     public partial class AEAccidentEventReasonTypeMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_REASON_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_REASON_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  AccidentEventReport
     public partial class AEAccidentEventReportMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_REPORT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(300);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ACCIDENT_PLACE).HasMaxLength(500);
builder.HasOne(t => t.Nav_AccidentType).WithMany().HasForeignKey(t => t.ACCIDENT_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ACCIDENT_REASON).HasMaxLength(500);
builder.Property(t => t.IMPACT_SCOPE).HasMaxLength(500);
builder.Property(t => t.TAKE_MEASURES).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(1000);
builder.Property(t => t.WORK_SUGGEST).HasMaxLength(1000);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentEventReportFile
     public partial class AEAccidentEventReportFileMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_REPORT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_REPORT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentEventReportListKind
     public partial class AEAccidentEventReportListKindMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_REPORT_LIST_KIND>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_REPORT_LIST_KIND> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EventReport).WithMany(t=>t.Nav_ListAccidentListKind).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AccidentKind).WithMany().HasForeignKey(t => t.KIND_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyAdmPunishment
     public partial class AEAccidentEventSurveyAdmPunishmentMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_ADM_PUNISHMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_ADM_PUNISHMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListAdmPunishment).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PUNISHMENT_RESULT).HasMaxLength(500);
builder.Property(t => t.PUNISHMENT_REASON).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyCasualties
     public partial class AEAccidentEventSurveyCasualtiesMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_CASUALTIES>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_CASUALTIES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListCasualties).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.INJURED_AREA).HasMaxLength(500);
builder.Ignore(t => t.Nav_ClaimRecord);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyDamageObject
     public partial class AEAccidentEventSurveyDamageObjectMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_DAMAGE_OBJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_DAMAGE_OBJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListSurveyDamageObject).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DamageObject).WithMany().HasForeignKey(t => t.DAMAGE_OBJECT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyEquipmentLoss
     public partial class AEAccidentEventSurveyEquipmentLossMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_EQUIPMENT_LOSS>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_EQUIPMENT_LOSS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListEquipmentLoss).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Equipment).WithMany().HasForeignKey(t => t.EQUIPMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Facilities).WithMany().HasForeignKey(t => t.FACILITIES_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MACHINE_NAME).HasMaxLength(500);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.USER_NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.LOSS_CONDITION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyFile
     public partial class AEAccidentEventSurveyFileMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_FilesSurvey).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyForensics
     public partial class AEAccidentEventSurveyForensicsMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListForensics).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EVIDENCE_DESC).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyForensicsFile
     public partial class AEAccidentEventSurveyForensicsFileMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_FORENSICS_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyForensics).WithMany(t=>t.Nav_FilesSurvey).HasForeignKey(t => t.SURVEY_FORENSICS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyPfile
     public partial class AEAccidentEventSurveyPfileMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_PFILE>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_PFILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_FilesP).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyReason
     public partial class AEAccidentEventSurveyReasonMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyResult).WithMany(t=>t.Nav_ListReason).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON_ANALYZE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyReasonType
     public partial class AEAccidentEventSurveyReasonTypeMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_REASON_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_REASON_TYPE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyReason).WithMany(t=>t.Nav_ListReasonType).HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ReasonType).WithMany().HasForeignKey(t => t.REASON_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentEventSurveyResult
     public partial class AEAccidentEventSurveyResultMap :APTEntityBaseMap<T_AE_ACCIDENT_EVENT_SURVEY_RESULT>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_EVENT_SURVEY_RESULT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AccidentEventReport).WithMany().HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ACCIDENT_COURSE).HasMaxLength(1000);
builder.HasOne(t => t.Nav_RiskSubmit).WithMany().HasForeignKey(t => t.RISK_SUBMIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentKind
     public partial class AEAccidentKindMap :APTEntityBaseMap<T_AE_ACCIDENT_KIND>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_KIND> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  AccidentLevelDays
     public partial class AEAccidentLevelDaysMap :APTEntityBaseMap<T_AE_ACCIDENT_LEVEL_DAYS>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_LEVEL_DAYS> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  AccidentSurveyTeamDeputyLeader
     public partial class AEAccidentSurveyTeamDeputyLeaderMap :APTEntityBaseMap<T_AE_ACCIDENT_SURVEY_TEAM_DEPUTY_LEADER>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_SURVEY_TEAM_DEPUTY_LEADER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TeamMember).WithMany(t=>t.Nav_DeputyLeaderUser).HasForeignKey(t => t.TEAM_MEMBER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentSurveyTeamMember
     public partial class AEAccidentSurveyTeamMemberMap :APTEntityBaseMap<T_AE_ACCIDENT_SURVEY_TEAM_MEMBER>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_SURVEY_TEAM_MEMBER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AccidentEventReport).WithMany().HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LeaderUser).WithMany().HasForeignKey(t => t.LEADER_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SurveyUser).WithMany().HasForeignKey(t => t.SURVEY_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentSurveyTeamMembers
     public partial class AEAccidentSurveyTeamMembersMap :APTEntityBaseMap<T_AE_ACCIDENT_SURVEY_TEAM_MEMBERS>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_SURVEY_TEAM_MEMBERS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TeamMember).WithMany(t=>t.Nav_TeamMembers).HasForeignKey(t => t.TEAM_MEMBER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AccidentType
     public partial class AEAccidentTypeMap :APTEntityBaseMap<T_AE_ACCIDENT_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_ACCIDENT_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  DosetDepartmentUser
     public partial class AEDosetDepartmentUserMap :APTEntityBaseMap<T_AE_DOSET_DEPARTMENT_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_DOSET_DEPARTMENT_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InvestigationRecord
     public partial class AEInvestigationRecordMap :APTEntityBaseMap<T_AE_INVESTIGATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_INVESTIGATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Accident).WithMany().HasForeignKey(t => t.ACCIDENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TeamMember).WithMany().HasForeignKey(t => t.TEAM_MEMBER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.INVESTIGATION_LOCATION).HasMaxLength(500);
builder.Property(t => t.INVESTIGATION_REASON).HasMaxLength(500);
builder.Property(t => t.SCENE_ENV_DESC).HasMaxLength(1000);
builder.Property(t => t.SCENE_DESC).HasMaxLength(1000);
builder.Property(t => t.SCENE_EVIDENCE_DESC).HasMaxLength(1000);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LeaderUser).WithMany().HasForeignKey(t => t.LEADER_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REVIEW_COMMENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  InvestigationRecordAccFiles
     public partial class AEInvestigationRecordAccFilesMap :APTEntityBaseMap<T_AE_INVESTIGATION_RECORD_ACC_FILES>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_INVESTIGATION_RECORD_ACC_FILES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_FilesAcc).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InvestigationRecordAskUsers
     public partial class AEInvestigationRecordAskUsersMap :APTEntityBaseMap<T_AE_INVESTIGATION_RECORD_ASK_USERS>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_INVESTIGATION_RECORD_ASK_USERS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_UsersAsk).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InvestigationRecordChartFiles
     public partial class AEInvestigationRecordChartFilesMap :APTEntityBaseMap<T_AE_INVESTIGATION_RECORD_CHART_FILES>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_INVESTIGATION_RECORD_CHART_FILES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_FilesChart).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InvestigationRecordInvestigationUsers
     public partial class AEInvestigationRecordInvestigationUsersMap :APTEntityBaseMap<T_AE_INVESTIGATION_RECORD_INVESTIGATION_USERS>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_INVESTIGATION_RECORD_INVESTIGATION_USERS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_UsersInvestigation).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InvestigationRecordNotesFiles
     public partial class AEInvestigationRecordNotesFilesMap :APTEntityBaseMap<T_AE_INVESTIGATION_RECORD_NOTES_FILES>
     {   
        public override void Configure(EntityTypeBuilder<T_AE_INVESTIGATION_RECORD_NOTES_FILES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_NotesFilesNotes).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetaskFinish
     public partial class BISafetaskFinishMap :APTEntityBaseMap<T_BI_SAFETASK_FINISH>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_SAFETASK_FINISH> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Team).WithMany().HasForeignKey(t => t.TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TEAM_NAME).HasMaxLength(50);
builder.Property(t => t.TEAM_CHARGE_USER).HasMaxLength(50);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.FORM_NAME).HasMaxLength(500);
builder.Property(t => t.FORM_STATUS).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ActiveUserRecord
     public partial class BIActiveUserRecordMap :APTEntityBaseMap<T_BI_ACTIVE_USER_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_ACTIVE_USER_RECORD> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  LoginRecord
     public partial class BILoginRecordMap :APTEntityBaseMap<T_BI_LOGIN_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_LOGIN_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.VERSION).HasMaxLength(1000);
builder.Property(t => t.FROM).HasMaxLength(10);
		} 
     }
	 #endregion
					#region  AreaTree
     public partial class BIAreaTreeMap :TreeEntityBaseMap<T_BI_AREA_TREE>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_AREA_TREE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Bschecktype
     public partial class BIBschecktypeMap :APTEntityBaseMap<T_BI_BSCHECKTYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_BSCHECKTYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.name).HasMaxLength(500);
builder.Property(t => t.value).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BschecktypeYear
     public partial class BIBschecktypeYearMap :APTEntityBaseMap<T_BI_BSCHECKTYPE_YEAR>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_BSCHECKTYPE_YEAR> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.YEARMONTH);
		} 
     }
	 #endregion
					#region  BsriskInfo
     public partial class BIBsriskInfoMap :APTEntityBaseMap<T_BI_BSRISK_INFO>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_BSRISK_INFO> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Bssafecheck
     public partial class BIBssafecheckMap :APTEntityBaseMap<T_BI_BSSAFECHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_BSSAFECHECK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TEAMNAME).HasMaxLength(500);
builder.Property(t => t.PERCENTCHECK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BssafechecktypeYear
     public partial class BIBssafechecktypeYearMap :APTEntityBaseMap<T_BI_BSSAFECHECKTYPE_YEAR>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_BSSAFECHECKTYPE_YEAR> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BssafecheckYear
     public partial class BIBssafecheckYearMap :APTEntityBaseMap<T_BI_BSSAFECHECK_YEAR>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_BSSAFECHECK_YEAR> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CloseTasks
     public partial class BICloseTasksMap :APTEntityBaseMap<T_BI_CLOSE_TASKS>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_CLOSE_TASKS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.USER_NAME).HasMaxLength(50);
builder.Property(t => t.TASK_IDS).HasMaxLength(5000);
builder.Property(t => t.TASK_NAMES).HasMaxLength(5000);
builder.Property(t => t.AUDIT_USER_NAME).HasMaxLength(50);
builder.Property(t => t.OPINION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DepartmentMonthRun
     public partial class BIDepartmentMonthRunMap :APTEntityBaseMap<T_BI_DEPARTMENT_MONTH_RUN>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_DEPARTMENT_MONTH_RUN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(500);
builder.Property(t => t.MONTHStr).HasMaxLength(500);
builder.Property(t => t.FINISH_RATE).HasMaxLength(500);
builder.Property(t => t.NORMAL_FINISH_RATE).HasMaxLength(500);
builder.Ignore(t => t.TOTAL_QTY);
		} 
     }
	 #endregion
					#region  FormCheckItem
     public partial class BIFormCheckItemMap :APTEntityBaseMap<T_BI_FORM_CHECK_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_FORM_CHECK_ITEM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FORM_NAME).HasMaxLength(500);
builder.Property(t => t.TABLE_NAME).HasMaxLength(500);
builder.Property(t => t.TITLE_NAME).HasMaxLength(500);
builder.Property(t => t.STATUS_FIELD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  FormRunAnalysis
     public partial class BIFormRunAnalysisMap :APTEntityBaseMap<T_BI_FORM_RUN_ANALYSIS>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_FORM_RUN_ANALYSIS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MOUDLE_NAME).HasMaxLength(500);
builder.Property(t => t.FORM_NAME).HasMaxLength(500);
builder.Property(t => t.FINISH_RATE).HasMaxLength(500);
builder.Property(t => t.NORMAL_FINISH_RATE).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  HomeBsriskreason
     public partial class BIHomeBsriskreasonMap :APTEntityBaseMap<T_BI_HOME_BSRISKREASON>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_HOME_BSRISKREASON> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.CODE);
builder.Ignore(t => t.DEPARTMENTNAME);
builder.Ignore(t => t.SOURCENAME);
		} 
     }
	 #endregion
					#region  HriskchangePec
     public partial class BIHriskchangePecMap :APTEntityBaseMap<T_BI_HRISKCHANGE_PEC>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_HRISKCHANGE_PEC> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.YEARMONTH).HasMaxLength(50);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(200);
builder.Property(t => t.CHANGE_PERCENT_SHOW).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  HriskCount
     public partial class BIHriskCountMap :APTEntityBaseMap<T_BI_HRISK_COUNT>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_HRISK_COUNT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HriskTop
     public partial class BIHriskTopMap :APTEntityBaseMap<T_BI_HRISK_TOP>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_HRISK_TOP> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(200);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  JobProfile
     public partial class BIJobProfileMap :APTEntityBaseMap<T_BI_JOB_PROFILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_JOB_PROFILE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DepName).HasMaxLength(500);
builder.Property(t => t.JobName).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MouldRunSummary
     public partial class BIMouldRunSummaryMap :APTEntityBaseMap<T_BI_MOULD_RUN_SUMMARY>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_MOULD_RUN_SUMMARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MOUDLE_NAME).HasMaxLength(500);
builder.Property(t => t.FINISH_RATE).HasMaxLength(500);
builder.Property(t => t.NORMAL_FINISH_RATE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  NotificationTask
     public partial class BINotificationTaskMap :APTEntityBaseMap<T_BI_NOTIFICATION_TASK>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_NOTIFICATION_TASK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MOUDLE_NAME).HasMaxLength(500);
builder.Property(t => t.SOURCE_FORMCODE).HasMaxLength(500);
builder.Property(t => t.NOTICE_TITLE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  NotificationTaskNew
     public partial class BINotificationTaskNewMap :APTEntityBaseMap<T_BI_NOTIFICATION_TASK_NEW>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_NOTIFICATION_TASK_NEW> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.NOTICE_TITLE).HasMaxLength(200);
builder.Property(t => t.USER_NAME).HasMaxLength(30);
builder.Property(t => t.SOURCE_FORMCODE).HasMaxLength(20);
builder.HasIndex("SOURCE_DATA_ID");
builder.Property(t => t.MOUDLE_NAME).HasMaxLength(500);
builder.Property(t => t.TABLE_NAME).HasMaxLength(500);
builder.Ignore(t => t.OVER_TIME);
builder.Ignore(t => t.DEPARTMENT_ID);
builder.Ignore(t => t.DEPARTMENT_NAME);
		} 
     }
	 #endregion
					#region  RiskLevel1
     public partial class BIRiskLevel1Map :APTEntityBaseMap<T_BI_RISK_LEVEL1>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_RISK_LEVEL1> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DepName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RiskLevel2
     public partial class BIRiskLevel2Map :APTEntityBaseMap<T_BI_RISK_LEVEL2>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_RISK_LEVEL2> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DepName).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ParentDepartment).WithMany().HasForeignKey(t => t.PARENT_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Runlog
     public partial class BIRunlogMap :APTEntityBaseMap<T_BI_RUNLOG>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_RUNLOG> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Summary
     public partial class BISummaryMap :APTEntityBaseMap<T_BI_SUMMARY>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_SUMMARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.Parameter1).HasMaxLength(500);
builder.Property(t => t.Parameter2).HasMaxLength(500);
builder.Property(t => t.Parameter3).HasMaxLength(500);
builder.Property(t => t.Parameter4).HasMaxLength(500);
builder.Property(t => t.Parameter5).HasMaxLength(500);
builder.Property(t => t.Parameter6).HasMaxLength(500);
builder.Property(t => t.Parameter7).HasMaxLength(500);
builder.Property(t => t.Parameter8).HasMaxLength(500);
builder.Property(t => t.Parameter9).HasMaxLength(500);
builder.Property(t => t.Parameter10).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SystemRunSummary
     public partial class BISystemRunSummaryMap :APTEntityBaseMap<T_BI_SYSTEM_RUN_SUMMARY>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_SYSTEM_RUN_SUMMARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(500);
builder.Property(t => t.FINISH_RATE).HasMaxLength(500);
builder.Property(t => t.NORMAL_FINISH_RATE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TrainPlanCount
     public partial class BITrainPlanCountMap :APTEntityBaseMap<T_BI_TRAIN_PLAN_COUNT>
     {   
        public override void Configure(EntityTypeBuilder<T_BI_TRAIN_PLAN_COUNT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DepName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  AbilityEvaluate
     public partial class CMAbilityEvaluateMap :APTEntityBaseMap<T_CM_ABILITY_EVALUATE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_ABILITY_EVALUATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.OVERALL_EVALUATE_CONCLUSION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AbilityEvaluateProject
     public partial class CMAbilityEvaluateProjectMap :APTEntityBaseMap<T_CM_ABILITY_EVALUATE_PROJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_ABILITY_EVALUATE_PROJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluate).WithMany(t=>t.Nav_ListProject).HasForeignKey(t => t.EVALUATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluateProject).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AbilityEvaluateUser
     public partial class CMAbilityEvaluateUserMap :APTEntityBaseMap<T_CM_ABILITY_EVALUATE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_ABILITY_EVALUATE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AbilityEvaluate).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.ABILITY_EVALUATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AbilityProject
     public partial class CMAbilityProjectMap :APTEntityBaseMap<T_CM_ABILITY_PROJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_ABILITY_PROJECT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.EVALUATE_CONTENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Config
     public partial class CMConfigMap :APTEntityBaseMap<T_CM_CONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_CONFIG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ContingencyType
     public partial class CMContingencyTypeMap :APTEntityBaseMap<T_CM_CONTINGENCY_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_CONTINGENCY_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  CoverageInfluence
     public partial class CMCoverageInfluenceMap :APTEntityBaseMap<T_CM_COVERAGE_INFLUENCE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_COVERAGE_INFLUENCE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  DrillEstimate
     public partial class CMDrillEstimateMap :APTEntityBaseMap<T_CM_DRILL_ESTIMATE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_ESTIMATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ADVISE).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  DrillEstimateItemType
     public partial class CMDrillEstimateItemTypeMap :APTEntityBaseMap<T_CM_DRILL_ESTIMATE_ITEM_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_ESTIMATE_ITEM_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  DrillEstimateRecord
     public partial class CMDrillEstimateRecordMap :APTEntityBaseMap<T_CM_DRILL_ESTIMATE_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_ESTIMATE_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Estimate).WithMany(t=>t.Nav_ListEstimateRecord).HasForeignKey(t => t.ESTIMEATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Item).WithMany().HasForeignKey(t => t.ITEM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ADVISE).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  DrillName
     public partial class CMDrillNameMap :APTEntityBaseMap<T_CM_DRILL_NAME>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_NAME> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  DrillPlan
     public partial class CMDrillPlanMap :APTEntityBaseMap<T_CM_DRILL_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_PLAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillPlanDetail
     public partial class CMDrillPlanDetailMap :APTEntityBaseMap<T_CM_DRILL_PLAN_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_PLAN_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PLAN).WithMany(t=>t.Nav_listPlanDetail).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Name).WithMany().HasForeignKey(t => t.NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillPlanStandardCreate
     public partial class CMDrillPlanStandardCreateMap :APTEntityBaseMap<T_CM_DRILL_PLAN_STANDARD_CREATE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_PLAN_STANDARD_CREATE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_ListStandard).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_StandardCreate).WithMany().HasForeignKey(t => t.STANDARD_CREATE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillRecord
     public partial class CMDrillRecordMap :APTEntityBaseMap<T_CM_DRILL_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_PlanDetail).WithMany().HasForeignKey(t => t.PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Name).WithMany().HasForeignKey(t => t.NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TIME).HasMaxLength(50);
builder.Property(t => t.PLACE).HasMaxLength(200);
builder.HasOne(t => t.Nav_UserRecord).WithMany().HasForeignKey(t => t.USER_ID_RECORD).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserManage).WithMany().HasForeignKey(t => t.USER_ID_MANAGE).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT).HasMaxLength(1000);
builder.Property(t => t.DEPARTMENT_OUT).HasMaxLength(800);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillRecordDepartment
     public partial class CMDrillRecordDepartmentMap :APTEntityBaseMap<T_CM_DRILL_RECORD_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_RECORD_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_ListDepartment).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillRecordFile
     public partial class CMDrillRecordFileMap :APTEntityBaseMap<T_CM_DRILL_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_FilesRecord).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillRecordSummaryFile
     public partial class CMDrillRecordSummaryFileMap :APTEntityBaseMap<T_CM_DRILL_RECORD_SUMMARY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_RECORD_SUMMARY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_FilesSummary).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillRecordUserEstimate
     public partial class CMDrillRecordUserEstimateMap :APTEntityBaseMap<T_CM_DRILL_RECORD_USER_ESTIMATE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_RECORD_USER_ESTIMATE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_ListUserEstimate).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillSummaryRequirement
     public partial class CMDrillSummaryRequirementMap :APTEntityBaseMap<T_CM_DRILL_SUMMARY_REQUIREMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_SUMMARY_REQUIREMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_ListSummaryRequirement).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TypeRequirement).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrillSummaryRequirementType
     public partial class CMDrillSummaryRequirementTypeMap :APTEntityBaseMap<T_CM_DRILL_SUMMARY_REQUIREMENT_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_DRILL_SUMMARY_REQUIREMENT_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  EquipmentDemandSurvey
     public partial class CMEquipmentDemandSurveyMap :APTEntityBaseMap<T_CM_EQUIPMENT_DEMAND_SURVEY>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_EQUIPMENT_DEMAND_SURVEY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.START_TIME).HasMaxLength(50);
builder.Property(t => t.END_TIME).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EquipmentDemandSurveyDetail
     public partial class CMEquipmentDemandSurveyDetailMap :APTEntityBaseMap<T_CM_EQUIPMENT_DEMAND_SURVEY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_EQUIPMENT_DEMAND_SURVEY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EQDSurvey).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.DEMAND_SURVEY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SurveyMaster).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.SURVEY_MASTER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MaterialType).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MaterialLibrary).WithMany().HasForeignKey(t => t.LIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MATERIAL_NAME).HasMaxLength(200);
builder.Property(t => t.MATERIAL_LOCATION).HasMaxLength(200);
builder.Property(t => t.SPECIFICATION).HasMaxLength(200);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.PURPOSE).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  EquipmentDemandSurveyFile
     public partial class CMEquipmentDemandSurveyFileMap :APTEntityBaseMap<T_CM_EQUIPMENT_DEMAND_SURVEY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_EQUIPMENT_DEMAND_SURVEY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EQDSurvey).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DEMAND_SURVEY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EquipmentDemandSurveyMaster
     public partial class CMEquipmentDemandSurveyMasterMap :APTEntityBaseMap<T_CM_EQUIPMENT_DEMAND_SURVEY_MASTER>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_EQUIPMENT_DEMAND_SURVEY_MASTER> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.START_TIME).HasMaxLength(50);
builder.Property(t => t.END_TIME).HasMaxLength(50);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EquipmentDemandSurveyMasterFile
     public partial class CMEquipmentDemandSurveyMasterFileMap :APTEntityBaseMap<T_CM_EQUIPMENT_DEMAND_SURVEY_MASTER_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_EQUIPMENT_DEMAND_SURVEY_MASTER_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SurveyMaster).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SURVEY_MASTER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EventType
     public partial class CMEventTypeMap :APTEntityBaseMap<T_CM_EVENT_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_EVENT_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  MaterialLibrary
     public partial class CMMaterialLibraryMap :APTEntityBaseMap<T_CM_MATERIAL_LIBRARY>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_MATERIAL_LIBRARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_MaterialType).WithMany().HasForeignKey(t => t.MATERIAL_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.INTERNAL_NO).HasMaxLength(50);
builder.Property(t => t.SPECIFICATION).HasMaxLength(100);
builder.Property(t => t.UNIT).HasMaxLength(50);
builder.Property(t => t.LOCATION).HasMaxLength(100);
builder.Property(t => t.PURPOSE).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARMTNET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MAIN_TEC_PARAMS).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  MaterialLibraryFile
     public partial class CMMaterialLibraryFileMap :APTEntityBaseMap<T_CM_MATERIAL_LIBRARY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_MATERIAL_LIBRARY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MaterialLibrary).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.MATERIAL_LIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MaterialOperateDetail
     public partial class CMMaterialOperateDetailMap :APTEntityBaseMap<T_CM_MATERIAL_OPERATE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_MATERIAL_OPERATE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_listDetail).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Material).WithMany().HasForeignKey(t => t.MATERIAL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON).HasMaxLength(300);
builder.Ignore(t => t.COUNT_RETURN);
builder.HasOne(t => t.Nav_Detail).WithMany().HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MaterialOperateRecord
     public partial class CMMaterialOperateRecordMap :APTEntityBaseMap<T_CM_MATERIAL_OPERATE_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_MATERIAL_OPERATE_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Material).WithMany().HasForeignKey(t => t.MATERIAL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(350);
builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Mastera).WithMany().HasForeignKey(t => t.MASTERA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.COUNT_OPERATE);
builder.Ignore(t => t.ISEND);
builder.Ignore(t => t.ISSEND);
builder.HasOne(t => t.Nav_UserOperate).WithMany().HasForeignKey(t => t.USER_ID_OPERATE).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MaterialType
     public partial class CMMaterialTypeMap :APTEntityBaseMap<T_CM_MATERIAL_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_MATERIAL_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  RspEstimate
     public partial class CMRspEstimateMap :APTEntityBaseMap<T_CM_RSP_ESTIMATE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_RSP_ESTIMATE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EVENT_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Event).WithMany().HasForeignKey(t => t.EVENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ACCIDENT_PLACE).HasMaxLength(200);
builder.HasOne(t => t.Nav_UserReport).WithMany().HasForeignKey(t => t.USER_ID_REPORT).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentReport).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_REPORT).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AccidentType).WithMany().HasForeignKey(t => t.ACCIDENT_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESC).HasMaxLength(1000);
builder.HasOne(t => t.Nav_UserManage).WithMany().HasForeignKey(t => t.USER_ID_MANAGE).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.JoinDepartment).HasMaxLength(400);
builder.Property(t => t.RUN_SITUATION).HasMaxLength(1000);
builder.Property(t => t.RESTORE_SITUATION).HasMaxLength(1000);
builder.Property(t => t.ADVISE).HasMaxLength(1000);
builder.Property(t => t.CONCLUSION).HasMaxLength(1000);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RspEstimateCondition
     public partial class CMRspEstimateConditionMap :APTEntityBaseMap<T_CM_RSP_ESTIMATE_CONDITION>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_RSP_ESTIMATE_CONDITION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  RspEstimateConditions
     public partial class CMRspEstimateConditionsMap :APTEntityBaseMap<T_CM_RSP_ESTIMATE_CONDITIONS>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_RSP_ESTIMATE_CONDITIONS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RspEstimate).WithMany(t=>t.Nav_ListRspConditions).HasForeignKey(t => t.ESTIMATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RspEstimateCondition).WithMany().HasForeignKey(t => t.CONDITION_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RspEstimateEstimateUser
     public partial class CMRspEstimateEstimateUserMap :APTEntityBaseMap<T_CM_RSP_ESTIMATE_ESTIMATE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_RSP_ESTIMATE_ESTIMATE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RspEstimate).WithMany(t=>t.Nav_ListEstimate).HasForeignKey(t => t.ESTIMATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RspEstimateEventKind
     public partial class CMRspEstimateEventKindMap :APTEntityBaseMap<T_CM_RSP_ESTIMATE_EVENT_KIND>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_RSP_ESTIMATE_EVENT_KIND> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RspEstimate).WithMany(t=>t.Nav_ListEventKind).HasForeignKey(t => t.ESTIMATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RspAccdentKind).WithMany().HasForeignKey(t => t.KIND_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RspEstimateJoinUser
     public partial class CMRspEstimateJoinUserMap :APTEntityBaseMap<T_CM_RSP_ESTIMATE_JOIN_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_RSP_ESTIMATE_JOIN_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RspEstimate).WithMany(t=>t.Nav_ListJoin).HasForeignKey(t => t.ESTIMATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  UrgentArearInfluence
     public partial class CMUrgentArearInfluenceMap :APTEntityBaseMap<T_CM_URGENT_AREAR_INFLUENCE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_URGENT_AREAR_INFLUENCE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_UrgentEvent).WithMany(t=>t.Nav_ListArearInfluence).HasForeignKey(t => t.URGENT_EVENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CoverageInfluence).WithMany().HasForeignKey(t => t.COVERAGE_INFLUENCE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  UrgentEvent
     public partial class CMUrgentEventMap :APTEntityBaseMap<T_CM_URGENT_EVENT>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_URGENT_EVENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EventType).WithMany().HasForeignKey(t => t.EVENT_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.AREARINFLUENCE);
builder.Property(t => t.AREAR_INFLUENCE).HasMaxLength(500);
builder.Property(t => t.ADDRESS_INFLUENCE).HasMaxLength(300);
builder.Property(t => t.ACCIDENT_CONSEQUENCE).HasMaxLength(500);
builder.Ignore(t => t.RISKTYPE);
		} 
     }
	 #endregion
					#region  UrgentEventContingencyPlan
     public partial class CMUrgentEventContingencyPlanMap :APTEntityBaseMap<T_CM_URGENT_EVENT_CONTINGENCY_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_URGENT_EVENT_CONTINGENCY_PLAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_UrgentEvent).WithMany(t=>t.Nav_ListEventContingencyPlan).HasForeignKey(t => t.URGENT_EVENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ContingencyType).WithMany().HasForeignKey(t => t.CONTINGENCY_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  UrgentEventRiskType
     public partial class CMUrgentEventRiskTypeMap :APTEntityBaseMap<T_CM_URGENT_EVENT_RISK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_CM_URGENT_EVENT_RISK_TYPE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_UrgentEvent).WithMany(t=>t.Nav_ListEventRiskType).HasForeignKey(t => t.URGENT_EVENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskType).WithMany().HasForeignKey(t => t.RISK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Colorset
     public partial class PCColorsetMap :APTEntityBaseMap<T_PC_COLORSET>
     {   
        public override void Configure(EntityTypeBuilder<T_PC_COLORSET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  Info
     public partial class PCInfoMap :APTEntityBaseMap<T_PC_INFO>
     {   
        public override void Configure(EntityTypeBuilder<T_PC_INFO> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.FILE_PATH).HasMaxLength(200);
builder.Property(t => t.DESCRIBE).HasMaxLength(350);
builder.Property(t => t.RGBCOLOR_TL).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  InfoColor
     public partial class PCInfoColorMap :APTEntityBaseMap<T_PC_INFO_COLOR>
     {   
        public override void Configure(EntityTypeBuilder<T_PC_INFO_COLOR> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Info).WithMany(t=>t.Nav_Colors).HasForeignKey(t => t.INFO_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RGBCOLOR).HasMaxLength(500);
builder.Property(t => t.DESCRIBE).HasMaxLength(350);
builder.Ignore(t => t.DESCRIBE_TITLE);
		} 
     }
	 #endregion
					#region  InfoColorArea
     public partial class PCInfoColorAreaMap :APTEntityBaseMap<T_PC_INFO_COLOR_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_PC_INFO_COLOR_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_InfoColor).WithMany(t=>t.Nav_Areas).HasForeignKey(t => t.COLOR_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InfoColorPoint
     public partial class PCInfoColorPointMap :APTEntityBaseMap<T_PC_INFO_COLOR_POINT>
     {   
        public override void Configure(EntityTypeBuilder<T_PC_INFO_COLOR_POINT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Info).WithMany().HasForeignKey(t => t.INFO_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_InfoColor).WithMany(t=>t.Nav_ColorPoints).HasForeignKey(t => t.INFO_COLOR_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InfoFile
     public partial class PCInfoFileMap :APTEntityBaseMap<T_PC_INFO_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PC_INFO_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Info).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.INFO_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Category
     public partial class DMCategoryMap :APTEntityBaseMap<T_DM_CATEGORY>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_CATEGORY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  DetectionInspectionRecord
     public partial class DMDetectionInspectionRecordMap :APTEntityBaseMap<T_DM_DETECTION_INSPECTION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DETECTION_INSPECTION_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.MACHINE_CODE).HasMaxLength(500);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.Property(t => t.MECHANISM).HasMaxLength(500);
builder.Property(t => t.QUALIFICATION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.NEXT_DATE);
		} 
     }
	 #endregion
					#region  DetectionInspectionRecordFile
     public partial class DMDetectionInspectionRecordFileMap :APTEntityBaseMap<T_DM_DETECTION_INSPECTION_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DETECTION_INSPECTION_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DEVICE_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Device
     public partial class DMDeviceMap :APTEntityBaseMap<T_DM_DEVICE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DeviceApply
     public partial class DMDeviceApplyMap :APTEntityBaseMap<T_DM_DEVICE_APPLY>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_APPLY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  DeviceApplyDetail
     public partial class DMDeviceApplyDetailMap :APTEntityBaseMap<T_DM_DEVICE_APPLY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_APPLY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Apply).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.DEVICE_APPLY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.USE).HasMaxLength(500);
builder.Property(t => t.DAY).HasMaxLength(500);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserPost).WithMany().HasForeignKey(t => t.USER_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceBase
     public partial class DMDeviceBaseMap :APTEntityBaseMap<T_DM_DEVICE_BASE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.MACHINE_CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Category).WithMany().HasForeignKey(t => t.CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.PURPOSE).HasMaxLength(500);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.HasOne(t => t.Nav_UseDepartment).WithMany().HasForeignKey(t => t.USE_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UseUser).WithMany().HasForeignKey(t => t.USE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UseUserPost).WithMany().HasForeignKey(t => t.USE_USER_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserPost).WithMany().HasForeignKey(t => t.USER_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PARAMETER).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.Nav_PurchaseDetails);
builder.Ignore(t => t.Nav_Check);
builder.Ignore(t => t.Nav_CheckCircuit);
builder.Ignore(t => t.Nav_Maintenance);
builder.Ignore(t => t.Nav_OverhaulNew);
builder.Ignore(t => t.Nav_InspectionNew);
builder.Ignore(t => t.Nav_Scrap);
		} 
     }
	 #endregion
					#region  DeviceBaseCheck
     public partial class DMDeviceBaseCheckMap :APTEntityBaseMap<T_DM_DEVICE_BASE_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_CHECK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DeviceBase).WithMany(t=>t.Nav_ListCheck).HasForeignKey(t => t.DEVICEBASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RUNDATA).HasMaxLength(500);
builder.Property(t => t.ITEM1).HasMaxLength(200);
builder.Property(t => t.ITEM2).HasMaxLength(500);
builder.Property(t => t.ITEM3).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  DeviceBaseCheckUser
     public partial class DMDeviceBaseCheckUserMap :APTEntityBaseMap<T_DM_DEVICE_BASE_CHECK_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_CHECK_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DeviceBaseCheck).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.BASECHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceBaseFile
     public partial class DMDeviceBaseFileMap :APTEntityBaseMap<T_DM_DEVICE_BASE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DeviceBase).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceBaseInspection
     public partial class DMDeviceBaseInspectionMap :APTEntityBaseMap<T_DM_DEVICE_BASE_INSPECTION>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_INSPECTION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DeviceBase).WithMany(t=>t.Nav_Inspection).HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MECHANISM).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DeviceBaseInspectionFile
     public partial class DMDeviceBaseInspectionFileMap :APTEntityBaseMap<T_DM_DEVICE_BASE_INSPECTION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_INSPECTION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceBaseOverhaul
     public partial class DMDeviceBaseOverhaulMap :APTEntityBaseMap<T_DM_DEVICE_BASE_OVERHAUL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_OVERHAUL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DeviceBase).WithMany(t=>t.Nav_Overhaul).HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MALFUCTION).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EXTERNAL_SUPPORT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DeviceBaseOverhaulFile
     public partial class DMDeviceBaseOverhaulFileMap :APTEntityBaseMap<T_DM_DEVICE_BASE_OVERHAUL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_OVERHAUL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_FileParent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.FILE_PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceBasePurchase
     public partial class DMDeviceBasePurchaseMap :APTEntityBaseMap<T_DM_DEVICE_BASE_PURCHASE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_PURCHASE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  DeviceBasePurchaseDetail
     public partial class DMDeviceBasePurchaseDetailMap :APTEntityBaseMap<T_DM_DEVICE_BASE_PURCHASE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_PURCHASE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DevicePurchase).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.DEVICE_PURCHASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Device).WithMany().HasForeignKey(t => t.DEVICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Category).WithMany().HasForeignKey(t => t.CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.SUPPLIER).HasMaxLength(500);
builder.Property(t => t.MANUFACTURER).HasMaxLength(500);
builder.Property(t => t.SERVICE_LIFE).HasMaxLength(500);
builder.Property(t => t.PARAMETER).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.HasOne(t => t.Nav_ManageUser).WithMany().HasForeignKey(t => t.MANAGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceBasePurchaseDetailFile
     public partial class DMDeviceBasePurchaseDetailFileMap :APTEntityBaseMap<T_DM_DEVICE_BASE_PURCHASE_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_PURCHASE_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PurchaseDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DEVICE_PURCHASE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceBasePurchaseDetailReceiptFile
     public partial class DMDeviceBasePurchaseDetailReceiptFileMap :APTEntityBaseMap<T_DM_DEVICE_BASE_PURCHASE_DETAIL_RECEIPT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_PURCHASE_DETAIL_RECEIPT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PurchaseDetail).WithMany(t=>t.Nav_ReceiptFiles).HasForeignKey(t => t.DEVICE_PURCHASE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceBaseReceiptFile
     public partial class DMDeviceBaseReceiptFileMap :APTEntityBaseMap<T_DM_DEVICE_BASE_RECEIPT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_BASE_RECEIPT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DeviceBase).WithMany(t=>t.Nav_ReceiptFiles).HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceCheck
     public partial class DMDeviceCheckMap :APTEntityBaseMap<T_DM_DEVICE_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_CHECK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(300);
builder.Property(t => t.TEAM_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Scheduling).WithMany().HasForeignKey(t => t.SCHEDULIN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICEBASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MACHINE_NAME).HasMaxLength(200);
builder.Property(t => t.SPEC).HasMaxLength(100);
builder.Property(t => t.MACHINE_CODE).HasMaxLength(100);
builder.Property(t => t.POSITION_NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  DeviceCheckDetail
     public partial class DMDeviceCheckDetailMap :APTEntityBaseMap<T_DM_DEVICE_CHECK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_CHECK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DeviceCheck).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.DEVICE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_BaseCheck).WithMany().HasForeignKey(t => t.BASECHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ITEM1).HasMaxLength(200);
builder.Property(t => t.ITEM2).HasMaxLength(500);
builder.Property(t => t.ITEM3).HasMaxLength(300);
builder.Property(t => t.DESCRIPTION).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  DeviceCheckDetailFile
     public partial class DMDeviceCheckDetailFileMap :APTEntityBaseMap<T_DM_DEVICE_CHECK_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_CHECK_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckDetail).WithMany(t=>t.Nav_DetailFiles).HasForeignKey(t => t.CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceCheckFile
     public partial class DMDeviceCheckFileMap :APTEntityBaseMap<T_DM_DEVICE_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Check).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceCheckType
     public partial class DMDeviceCheckTypeMap :APTEntityBaseMap<T_DM_DEVICE_CHECK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_CHECK_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DeviceCheckUser
     public partial class DMDeviceCheckUserMap :APTEntityBaseMap<T_DM_DEVICE_CHECK_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_CHECK_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Check).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceIssue
     public partial class DMDeviceIssueMap :APTEntityBaseMap<T_DM_DEVICE_ISSUE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_ISSUE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserPost).WithMany().HasForeignKey(t => t.USER_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Apply).WithMany().HasForeignKey(t => t.APPLY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  DeviceIssueDetail
     public partial class DMDeviceIssueDetailMap :APTEntityBaseMap<T_DM_DEVICE_ISSUE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_ISSUE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Issue).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.DEVICE_ISSUE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.USE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.HasOne(t => t.Nav_UseUserPost).WithMany().HasForeignKey(t => t.USE_USER_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceMaintenanceCheck
     public partial class DMDeviceMaintenanceCheckMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_CHECK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceMaintenanceCheckDetail
     public partial class DMDeviceMaintenanceCheckDetailMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_CHECK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_CHECK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLANID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Check).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICEBASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MACHINE_NAME).HasMaxLength(200);
builder.Property(t => t.SPEC).HasMaxLength(200);
builder.Property(t => t.POSITION).HasMaxLength(200);
builder.Property(t => t.CONTENT).HasMaxLength(500);
builder.Property(t => t.WORK_PLAN).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DeviceMaintenanceCheckDetailFile
     public partial class DMDeviceMaintenanceCheckDetailFileMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_CHECK_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_CHECK_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DEVICE_MAINTENANCE_CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceMaintenanceCheckFile
     public partial class DMDeviceMaintenanceCheckFileMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Check).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DEVICE_MAINTENANCE_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceMaintenanceCheckUser
     public partial class DMDeviceMaintenanceCheckUserMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_CHECK_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_CHECK_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Check).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceMaintenancePlan
     public partial class DMDeviceMaintenancePlanMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_PLAN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceMaintenancePlanDetail
     public partial class DMDeviceMaintenancePlanDetailMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_PLAN_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_PLAN_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_PlanDetails).HasForeignKey(t => t.DEVICE_MAINTENANCE_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICEBASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SPEC).HasMaxLength(200);
builder.Property(t => t.POSITION).HasMaxLength(200);
builder.Property(t => t.CONTENTS).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.NEXT_DATE);
		} 
     }
	 #endregion
					#region  DeviceMaintenancePplanFile
     public partial class DMDeviceMaintenancePplanFileMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_PPLAN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_PPLAN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceMaintenancePlanUser
     public partial class DMDeviceMaintenancePlanUserMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_PLAN_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_PLAN_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceMaintenancePlanFile
     public partial class DMDeviceMaintenancePlanFileMap :APTEntityBaseMap<T_DM_DEVICE_MAINTENANCE_PLAN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_MAINTENANCE_PLAN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceOverhaul
     public partial class DMDeviceOverhaulMap :APTEntityBaseMap<T_DM_DEVICE_OVERHAUL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_OVERHAUL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.EXTERNAL_SUPPORT).HasMaxLength(500);
builder.Property(t => t.PERSON_NAME).HasMaxLength(500);
builder.Property(t => t.PHONE).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Device).WithMany().HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MACHINE_NAME).HasMaxLength(500);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.MACHINE_CODE).HasMaxLength(500);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.Property(t => t.MALFUCTION).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Repair).WithMany().HasForeignKey(t => t.REPAIR_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_RepairFiles);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  DeviceOverhaulFile
     public partial class DMDeviceOverhaulFileMap :APTEntityBaseMap<T_DM_DEVICE_OVERHAUL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_OVERHAUL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Overhaul).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.OVERHAUL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DevicePurchase
     public partial class DMDevicePurchaseMap :APTEntityBaseMap<T_DM_DEVICE_PURCHASE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_PURCHASE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Purchase).WithMany().HasForeignKey(t => t.BASE_PURCHASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  DevicePurchaseDetail
     public partial class DMDevicePurchaseDetailMap :APTEntityBaseMap<T_DM_DEVICE_PURCHASE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_PURCHASE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DevicePurchase).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.DEVICE_PURCHASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Device).WithMany().HasForeignKey(t => t.DEVICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Category).WithMany().HasForeignKey(t => t.CATEGORY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.SUPPLIER).HasMaxLength(500);
builder.Property(t => t.MANUFACTURER).HasMaxLength(500);
builder.Property(t => t.SERVICE_LIFE).HasMaxLength(500);
builder.Property(t => t.PARAMETER).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.HasOne(t => t.Nav_ManageUser).WithMany().HasForeignKey(t => t.MANAGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DevicePurchaseDetailFile
     public partial class DMDevicePurchaseDetailFileMap :APTEntityBaseMap<T_DM_DEVICE_PURCHASE_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_PURCHASE_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PurchaseDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DEVICE_PURCHASE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DevicePurchaseDetailReceiptFile
     public partial class DMDevicePurchaseDetailReceiptFileMap :APTEntityBaseMap<T_DM_DEVICE_PURCHASE_DETAIL_RECEIPT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_PURCHASE_DETAIL_RECEIPT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PurchaseDetail).WithMany(t=>t.Nav_ReceiptFiles).HasForeignKey(t => t.DEVICE_PURCHASE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceRepair
     public partial class DMDeviceRepairMap :APTEntityBaseMap<T_DM_DEVICE_REPAIR>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_REPAIR> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Device).WithMany().HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MACHINE_NAME).HasMaxLength(500);
builder.Property(t => t.SPEC).HasMaxLength(500);
builder.Property(t => t.MACHINE_CODE).HasMaxLength(500);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.Property(t => t.DESCRPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Repair_Charge_User).WithMany().HasForeignKey(t => t.REPAIR_CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Repair_User).WithMany().HasForeignKey(t => t.REPAIR_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  DeviceRepairFile
     public partial class DMDeviceRepairFileMap :APTEntityBaseMap<T_DM_DEVICE_REPAIR_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_REPAIR_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Repair).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.REPAIR_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DeviceScrap
     public partial class DMDeviceScrapMap :APTEntityBaseMap<T_DM_DEVICE_SCRAP>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_DEVICE_SCRAP> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICEBASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  TimeRun
     public partial class DMTimeRunMap :APTEntityBaseMap<T_DM_TIME_RUN>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_TIME_RUN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.positons);
builder.Ignore(t => t.contents);
builder.Ignore(t => t.standards);
builder.HasOne(t => t.Nav_Device).WithMany().HasForeignKey(t => t.DEVICE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TimeRunContent
     public partial class DMTimeRunContentMap :APTEntityBaseMap<T_DM_TIME_RUN_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_TIME_RUN_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TimeSet).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.TIME_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.POSITION).HasMaxLength(500);
builder.Property(t => t.CONTENT).HasMaxLength(500);
builder.Property(t => t.STANDARD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Type
     public partial class DMTypeMap :APTEntityBaseMap<T_DM_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_DM_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Lrconfig
     public partial class LRLrconfigMap :APTEntityBaseMap<T_LR_LRCONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LRCONFIG> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  IntegrateUpdateTime
     public partial class LRIntegrateUpdateTimeMap :APTEntityBaseMap<T_LR_INTEGRATE_UPDATE_TIME>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_INTEGRATE_UPDATE_TIME> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  DemandDistinguish
     public partial class LRDemandDistinguishMap :APTEntityBaseMap<T_LR_DEMAND_DISTINGUISH>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_DEMAND_DISTINGUISH> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.demandTypeStr).HasMaxLength(200);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  DemandType
     public partial class LRDemandTypeMap :APTEntityBaseMap<T_LR_DEMAND_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_DEMAND_TYPE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DemandDistinguish).WithMany(t=>t.Nav_DemandTypes).HasForeignKey(t => t.DISTINGUISH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DemandType).WithMany().HasForeignKey(t => t.DEMANDTYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DemandLaw
     public partial class LRDemandLawMap :APTEntityBaseMap<T_LR_DEMAND_LAW>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_DEMAND_LAW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DemandDistinguish).WithMany(t=>t.Nav_DemandLaw).HasForeignKey(t => t.DISTINGUISH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  DemandOther
     public partial class LRDemandOtherMap :APTEntityBaseMap<T_LR_DEMAND_OTHER>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_DEMAND_OTHER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DemandDistinguish).WithMany(t=>t.Nav_DemandOther).HasForeignKey(t => t.DISTINGUISH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OtherDistinguish).WithMany().HasForeignKey(t => t.OTHER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(200);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DemandDistinguishReport
     public partial class LRDemandDistinguishReportMap :APTEntityBaseMap<T_LR_DEMAND_DISTINGUISH_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_DEMAND_DISTINGUISH_REPORT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FEEDBACK_RATE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  DemandDistinguishReportDetail
     public partial class LRDemandDistinguishReportDetailMap :APTEntityBaseMap<T_LR_DEMAND_DISTINGUISH_REPORT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_DEMAND_DISTINGUISH_REPORT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DemandReport).WithMany(t=>t.Nav_DemandReportDetail).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEMAND_NAME).HasMaxLength(500);
builder.Property(t => t.DEMAND_PERSON).HasMaxLength(500);
builder.Property(t => t.DEMAND_DEPARTMENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LegalList
     public partial class LRLegalListMap :APTEntityBaseMap<T_LR_LEGAL_LIST>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LEGAL_LIST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  LegalListDetail
     public partial class LRLegalListDetailMap :APTEntityBaseMap<T_LR_LEGAL_LIST_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LEGAL_LIST_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LegalList).WithMany(t=>t.Nav_LegalListDetail).HasForeignKey(t => t.LEGAL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OtherDistinguish).WithMany().HasForeignKey(t => t.OTHER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DemandType).WithMany().HasForeignKey(t => t.DEMANDTYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.FILE_NAME).HasMaxLength(500);
builder.Property(t => t.VERSION_NUM).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  LegalListDetailUser
     public partial class LRLegalListDetailUserMap :APTEntityBaseMap<T_LR_LEGAL_LIST_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LEGAL_LIST_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LegalListDetail).WithMany(t=>t.Nav_LegalListDetailUser).HasForeignKey(t => t.LEGAL_LIST_DETAIL).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LegalListDetailFile
     public partial class LRLegalListDetailFileMap :APTEntityBaseMap<T_LR_LEGAL_LIST_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LEGAL_LIST_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LegalListDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.LEGAL_LIST_DETAIL).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LawIntegrate
     public partial class LRLawIntegrateMap :APTEntityBaseMap<T_LR_LAW_INTEGRATE>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_INTEGRATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.RATE).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  LawIntegrateDetail
     public partial class LRLawIntegrateDetailMap :APTEntityBaseMap<T_LR_LAW_INTEGRATE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_INTEGRATE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LawIntegrate).WithMany(t=>t.Nav_IntegrateDetail).HasForeignKey(t => t.LAW_INTEGRATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCSystem).WithMany().HasForeignKey(t => t.SYSTEM_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LawIntegrateUpdate
     public partial class LRLawIntegrateUpdateMap :APTEntityBaseMap<T_LR_LAW_INTEGRATE_UPDATE>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_INTEGRATE_UPDATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.RATE).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  LawIntegrateUpdateDetail
     public partial class LRLawIntegrateUpdateDetailMap :APTEntityBaseMap<T_LR_LAW_INTEGRATE_UPDATE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_INTEGRATE_UPDATE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LawIntegrateUpdate).WithMany(t=>t.Nav_IntegrateUpdateDetail).HasForeignKey(t => t.INTEGRATE_UPDATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Law
     public partial class LRLawMap :APTEntityBaseMap<T_LR_LAW>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.VERSION_NUM).HasMaxLength(500);
builder.HasOne(t => t.Nav_LawType).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PREPARED_DEPARTMENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LawVersion
     public partial class LRLawVersionMap :APTEntityBaseMap<T_LR_LAW_VERSION>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_VERSION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Law).WithMany(t=>t.Nav_LawVersion).HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.VERSION_NUM).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LawVersionFile
     public partial class LRLawVersionFileMap :APTEntityBaseMap<T_LR_LAW_VERSION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_VERSION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Version).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.VERSION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LawScSystem
     public partial class LRLawScSystemMap :APTEntityBaseMap<T_LR_LAW_SC_SYSTEM>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_SC_SYSTEM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Law).WithMany(t=>t.Nav_LawSCSystem).HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCSystem).WithMany().HasForeignKey(t => t.SC_SYSTEM_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LawType
     public partial class LRLawTypeMap :APTEntityBaseMap<T_LR_LAW_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DemandUser
     public partial class LRDemandUserMap :APTEntityBaseMap<T_LR_DEMAND_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_DEMAND_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OtherDistinguish).WithMany(t=>t.Nav_DemandUser).HasForeignKey(t => t.OTHER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LawInstitution
     public partial class LRLawInstitutionMap :APTEntityBaseMap<T_LR_LAW_INSTITUTION>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_INSTITUTION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LawIntegrateUpdateDetail).WithMany(t=>t.Nav_LRLawInstitution).HasForeignKey(t => t.UPDATE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCSystem).WithMany().HasForeignKey(t => t.SC_SYSTEM_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LawUpdate
     public partial class LRLawUpdateMap :APTEntityBaseMap<T_LR_LAW_UPDATE>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_LAW_UPDATE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OtherDistinguish
     public partial class LROtherDistinguishMap :APTEntityBaseMap<T_LR_OTHER_DISTINGUISH>
     {   
        public override void Configure(EntityTypeBuilder<T_LR_OTHER_DISTINGUISH> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  MtConfig
     public partial class SCMtConfigMap :APTEntityBaseMap<T_SC_MT_CONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_CONFIG> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  MtContent
     public partial class SCMtContentMap :APTEntityBaseMap<T_SC_MT_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_CONTENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_ContentName).WithMany(t=>t.Nav_ListContent).HasForeignKey(t => t.CONTENTNAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TITLE).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  MtContentDeal
     public partial class SCMtContentDealMap :APTEntityBaseMap<T_SC_MT_CONTENT_DEAL>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_CONTENT_DEAL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Content).WithMany(t=>t.Nav_ListContentDeal).HasForeignKey(t => t.CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTDETAIL).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  MtContentName
     public partial class SCMtContentNameMap :APTEntityBaseMap<T_SC_MT_CONTENT_NAME>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_CONTENT_NAME> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  MtMeeting
     public partial class SCMtMeetingMap :APTEntityBaseMap<T_SC_MT_MEETING>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Ignore(t => t.MEETINGTYPESHOW);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User_Originator).WithMany().HasForeignKey(t => t.USER_ID_ORIGINATOR).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.THEME).HasMaxLength(500);
builder.Property(t => t.ADDRESS).HasMaxLength(200);
builder.HasOne(t => t.Nav_UserHost).WithMany().HasForeignKey(t => t.USER_ID_HOST).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserRecorder).WithMany().HasForeignKey(t => t.USER_ID_RECORDER).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT).HasMaxLength(2000);
builder.Property(t => t.RECORD).HasMaxLength(2000);
builder.Ignore(t => t.STATUSSHOW);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Enums).WithMany().HasForeignKey(t => t.CheckLevel_ENUMS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTENT32);
		} 
     }
	 #endregion
					#region  MtMeetingBegin
     public partial class SCMtMeetingBeginMap :APTEntityBaseMap<T_SC_MT_MEETING_BEGIN>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_BEGIN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TABLENAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  MtMeetingContent
     public partial class SCMtMeetingContentMap :APTEntityBaseMap<T_SC_MT_MEETING_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Meeting).WithMany(t=>t.Nav_ListMeetingContent).HasForeignKey(t => t.MEETING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ContentName).WithMany().HasForeignKey(t => t.CONTENTNAME_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingEnd
     public partial class SCMtMeetingEndMap :APTEntityBaseMap<T_SC_MT_MEETING_END>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_END> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MtMeetingFile
     public partial class SCMtMeetingFileMap :APTEntityBaseMap<T_SC_MT_MEETING_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Meeting).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.MEETING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingFileOfficialseal
     public partial class SCMtMeetingFileOfficialsealMap :APTEntityBaseMap<T_SC_MT_MEETING_FILE_OFFICIALSEAL>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_FILE_OFFICIALSEAL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Meeting).WithMany(t=>t.Nav_FilesOfficialseal).HasForeignKey(t => t.MEETING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingFileRecord
     public partial class SCMtMeetingFileRecordMap :APTEntityBaseMap<T_SC_MT_MEETING_FILE_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_FILE_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Meeting).WithMany(t=>t.Nav_FilesRecord).HasForeignKey(t => t.MEETING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingMinutes
     public partial class SCMtMeetingMinutesMap :APTEntityBaseMap<T_SC_MT_MEETING_MINUTES>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_MINUTES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Meeting).WithMany().HasForeignKey(t => t.MEETING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RESOLUTION).HasMaxLength(3000);
builder.Property(t => t.MEETINGRECORD).HasMaxLength(500);
builder.Ignore(t => t.STATUSSHOW);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingMinutesContent
     public partial class SCMtMeetingMinutesContentMap :APTEntityBaseMap<T_SC_MT_MEETING_MINUTES_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_MINUTES_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MeetingMinutes).WithMany(t=>t.Nav_ListContent).HasForeignKey(t => t.MEETING_MINUTES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Content).WithMany().HasForeignKey(t => t.CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingMinutesContentDeal
     public partial class SCMtMeetingMinutesContentDealMap :APTEntityBaseMap<T_SC_MT_MEETING_MINUTES_CONTENT_DEAL>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_MINUTES_CONTENT_DEAL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Content).WithMany(t=>t.Nav_ListContentDeal).HasForeignKey(t => t.CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ContentDeal).WithMany().HasForeignKey(t => t.CONTENT_DEAL_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingMinutesDetail
     public partial class SCMtMeetingMinutesDetailMap :APTEntityBaseMap<T_SC_MT_MEETING_MINUTES_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_MINUTES_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MeetingMinutes).WithMany(t=>t.Nav_ListMinutesDetail).HasForeignKey(t => t.MEETING_MINUTES_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RESOLUTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_DepartmentDeal).WithMany().HasForeignKey(t => t.DEAL_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserDeal).WithMany().HasForeignKey(t => t.DEAL_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.OPINION).HasMaxLength(500);
builder.Property(t => t.DEALBACK).HasMaxLength(500);
builder.Ignore(t => t.DEALEFFECTSHOW);
		} 
     }
	 #endregion
					#region  MtMeetingMinutesDetailFile
     public partial class SCMtMeetingMinutesDetailFileMap :APTEntityBaseMap<T_SC_MT_MEETING_MINUTES_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_MINUTES_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MeetingMinutesDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.MEETING_MINUTES_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingMinutesFile
     public partial class SCMtMeetingMinutesFileMap :APTEntityBaseMap<T_SC_MT_MEETING_MINUTES_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_MINUTES_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MeetingMinutes).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.MEETING_MINUTES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingPabsence
     public partial class SCMtMeetingPabsenceMap :APTEntityBaseMap<T_SC_MT_MEETING_PABSENCE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_PABSENCE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MeetingMinutes).WithMany(t=>t.Nav_ListPAbsence).HasForeignKey(t => t.MEETING_MINUTES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingPall
     public partial class SCMtMeetingPallMap :APTEntityBaseMap<T_SC_MT_MEETING_PALL>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_PALL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Meeting).WithMany(t=>t.Nav_ListPAll).HasForeignKey(t => t.MEETING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NOTJOINREASON).HasMaxLength(500);
builder.Ignore(t => t.NAME);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingPaskforleave
     public partial class SCMtMeetingPaskforleaveMap :APTEntityBaseMap<T_SC_MT_MEETING_PASKFORLEAVE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_PASKFORLEAVE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MeetingMinutes).WithMany(t=>t.Nav_ListPAskForLeave).HasForeignKey(t => t.MEETING_MINUTES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingPjoin
     public partial class SCMtMeetingPjoinMap :APTEntityBaseMap<T_SC_MT_MEETING_PJOIN>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_PJOIN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MeetingMinutes).WithMany(t=>t.Nav_ListPJoin).HasForeignKey(t => t.MEETING_MINUTES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMeetingPreview
     public partial class SCMtMeetingPreviewMap :APTEntityBaseMap<T_SC_MT_MEETING_PREVIEW>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_PREVIEW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Meeting).WithMany(t=>t.Nav_ListPReView).HasForeignKey(t => t.MEETING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NOTJOINREASON).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MtMeetingTheme
     public partial class SCMtMeetingThemeMap :APTEntityBaseMap<T_SC_MT_MEETING_THEME>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_THEME> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  MtMeetingThemes
     public partial class SCMtMeetingThemesMap :APTEntityBaseMap<T_SC_MT_MEETING_THEMES>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MEETING_THEMES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Meeting).WithMany(t=>t.Nav_ListThemes).HasForeignKey(t => t.MEETING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MeetingTheme).WithMany().HasForeignKey(t => t.THEME_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtMinutesPreview
     public partial class SCMtMinutesPreviewMap :APTEntityBaseMap<T_SC_MT_MINUTES_PREVIEW>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_MINUTES_PREVIEW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MeetingMinutes).WithMany(t=>t.Nav_ListPReview).HasForeignKey(t => t.MEETING_MINUTES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MtPlanSet
     public partial class SCMtPlanSetMap :APTEntityBaseMap<T_SC_MT_PLAN_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_PLAN_SET> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ContentName).WithMany().HasForeignKey(t => t.CONTENTNAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveRole).WithMany().HasForeignKey(t => t.APPROVE_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RUNDATA).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MtPlanSetDepartment
     public partial class SCMtPlanSetDepartmentMap :APTEntityBaseMap<T_SC_MT_PLAN_SET_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_MT_PLAN_SET_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListSetDepartment).HasForeignKey(t => t.PLAN_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafePdtSigned
     public partial class OGSafePdtSignedMap :APTEntityBaseMap<T_OG_SAFE_PDT_SIGNED>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_SIGNED> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_StandardCreate).WithMany().HasForeignKey(t => t.STANDARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.FILE_NAME).HasMaxLength(500);
builder.Property(t => t.FILE_CONTENT).HasMaxLength(5000);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafePdtSignedPost
     public partial class OGSafePdtSignedPostMap :APTEntityBaseMap<T_OG_SAFE_PDT_SIGNED_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_SIGNED_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafePdtSigned).WithMany(t=>t.Nav_SafePdtSignedPost).HasForeignKey(t => t.SAFE_PDT_SIGNED_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafePdtAssessPlanCheck
     public partial class OGSafePdtAssessPlanCheckMap :APTEntityBaseMap<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  SafePdtAssessPlanCheckDetail
     public partial class OGSafePdtAssessPlanCheckDetailMap :APTEntityBaseMap<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafePdtAssessPlanCheck).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.NAME);
		} 
     }
	 #endregion
					#region  SafePdtAssessPlanCheckDetailContent
     public partial class OGSafePdtAssessPlanCheckDetailContentMap :APTEntityBaseMap<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_DETAIL_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckDetail).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.CHECK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.METHOD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafePdtAssessPlanCheckFile
     public partial class OGSafePdtAssessPlanCheckFileMap :APTEntityBaseMap<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_PDT_ASSESS_PLAN_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafePdtAssessPlanCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeAssessPlanInput
     public partial class OGSafeAssessPlanInputMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_PLAN_INPUT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_PLAN_INPUT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEP_NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Check).WithMany().HasForeignKey(t => t.CHECK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeAssessItem
     public partial class OGSafeAssessItemMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_ITEM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeAssessPlanInput).WithMany(t=>t.Nav_SafeAssessItem).HasForeignKey(t => t.ASSESS_PLAN_INPUT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.METHOD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafeAssessRecord
     public partial class OGSafeAssessRecordMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CYCLE_NAME).HasMaxLength(50);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  SafeAssessRecordDetail
     public partial class OGSafeAssessRecordDetailMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeAssessRecord).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.SAFE_ASSESS_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REWARD_PUNISHMENT_MEASURES).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  SafeAssessRecordItem
     public partial class OGSafeAssessRecordItemMap :APTEntityBaseMap<T_OG_SAFE_ASSESS_RECORD_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_SAFE_ASSESS_RECORD_ITEM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafeAssessRecordDetail).WithMany(t=>t.Nav_SafeAssessRecordItem).HasForeignKey(t => t.RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SafeAssessItem).WithMany().HasForeignKey(t => t.ASSESS_ITEM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RESULT_INSTRUCTIONS).HasMaxLength(500);
builder.Property(t => t.CORRECT_MEASURES).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Agency
     public partial class OGAgencyMap :TreeEntityBaseMap<T_OG_AGENCY>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_AGENCY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AgencyUser
     public partial class OGAgencyUserMap :APTEntityBaseMap<T_OG_AGENCY_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_AGENCY_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Agency).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.AGENCY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Ogconfig
     public partial class OGOgconfigMap :APTEntityBaseMap<T_OG_OGCONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_OGCONFIG> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  PolicyDocument
     public partial class OGPolicyDocumentMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_AppointType).WithMany().HasForeignKey(t => t.APPOINT_TYPE).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AppointAgreeUser).WithMany().HasForeignKey(t => t.APPOINT_AGREEUSER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  PolicyDocumentDetail
     public partial class OGPolicyDocumentDetailMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PolicyDocument).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.POLICY_DOCUMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_AppointType).WithMany().HasForeignKey(t => t.APPOINT_TYPE).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AppointAgreeUser).WithMany().HasForeignKey(t => t.APPOINT_AGREEUSER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PolicyDocumentType
     public partial class OGPolicyDocumentTypeMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  PolicyDocumentDetailFile
     public partial class OGPolicyDocumentDetailFileMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PolicyDocumentDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.POLICY_DOCUMENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PolicyDocumentDetailAppointUser
     public partial class OGPolicyDocumentDetailAppointUserMap :APTEntityBaseMap<T_OG_POLICY_DOCUMENT_DETAIL_APPOINT_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_POLICY_DOCUMENT_DETAIL_APPOINT_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PolicyDocumentDetail).WithMany(t=>t.Nav_AppointUsers).HasForeignKey(t => t.POLICY_DOCUMENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EmployeeOpinionCollection
     public partial class OGEmployeeOpinionCollectionMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_COLLECTION>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_COLLECTION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AHChargeUser).WithMany().HasForeignKey(t => t.AH_CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  EmployeeOpinionCollectionUser
     public partial class OGEmployeeOpinionCollectionUserMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_COLLECTION_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_COLLECTION_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Collection).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.COLLECTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT).HasMaxLength(300);
builder.Property(t => t.REFUSE_DESCRIPTION).HasMaxLength(100);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  EmployeeOpinionCollectionUserFile
     public partial class OGEmployeeOpinionCollectionUserFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_COLLECTION_USER_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_COLLECTION_USER_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CollectionUser).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.COLLECTION_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EmployeeOpinion
     public partial class OGEmployeeOpinionMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CollectionUser).WithMany(t=>t.Nav_Opinions).HasForeignKey(t => t.COLLECTION_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.OPINION_CONTENT).HasMaxLength(200);
builder.Property(t => t.REFUSE_DESCRIPTION).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  EmployeeOpinionReport
     public partial class OGEmployeeOpinionReportMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_REPORT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_ItemEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Assignee).WithMany().HasForeignKey(t => t.ASSIGNEE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ASSIGNEE_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_DoDepartment).WithMany().HasForeignKey(t => t.DO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DoUser).WithMany().HasForeignKey(t => t.DO_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.IMPLEMENT_DESCRIPTION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  EmployeeOpinionSuggestionFile
     public partial class OGEmployeeOpinionSuggestionFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_SUGGESTION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_SUGGESTION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Opinion).WithMany(t=>t.Nav_FileList).HasForeignKey(t => t.EMPLOYEE_OPINION_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EmployeeOpinionImplementFile
     public partial class OGEmployeeOpinionImplementFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_OPINION_IMPLEMENT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_OPINION_IMPLEMENT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Opinion).WithMany(t=>t.Nav_ImpFileList).HasForeignKey(t => t.EMPLOYEE_OPINION_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EmployeeRefuseItemReport
     public partial class OGEmployeeRefuseItemReportMap :APTEntityBaseMap<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_ItemEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Assignee).WithMany().HasForeignKey(t => t.ASSIGNEE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ASSIGNEE_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_ImplementUser).WithMany().HasForeignKey(t => t.IMPLEMENT_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImplementDepartment).WithMany().HasForeignKey(t => t.IMPLEMENT_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.IMPLEMENT_DESCRIPTION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  EmployeeRefuseItemReportFile
     public partial class OGEmployeeRefuseItemReportFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_REFUSE_ITEM_REPORT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Opinion).WithMany(t=>t.Nav_FileList).HasForeignKey(t => t.EMPLOYEE_REFUSE_ITEM_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EmployeeRefuseItemInvestigationFile
     public partial class OGEmployeeRefuseItemInvestigationFileMap :APTEntityBaseMap<T_OG_EMPLOYEE_REFUSE_ITEM_INVESTIGATION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_REFUSE_ITEM_INVESTIGATION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Opinion).WithMany(t=>t.Nav_InvestigationFileList).HasForeignKey(t => t.EMPLOYEE_REFUSE_ITEM_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InnerContact
     public partial class OGInnerContactMap :APTEntityBaseMap<T_OG_INNER_CONTACT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_INNER_CONTACT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_FormDepartment).WithMany().HasForeignKey(t => t.FORM_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_FromUser).WithMany().HasForeignKey(t => t.FROM_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ToDepartment).WithMany().HasForeignKey(t => t.TO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ToUser).WithMany().HasForeignKey(t => t.TO_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PURPOSE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.DESC).HasMaxLength(500);
builder.HasOne(t => t.Nav_DoDepartment).WithMany().HasForeignKey(t => t.DO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DoUser).WithMany().HasForeignKey(t => t.DO_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DO_DESC).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  InnerContactItemFile
     public partial class OGInnerContactItemFileMap :APTEntityBaseMap<T_OG_INNER_CONTACT_ITEM_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_INNER_CONTACT_ITEM_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Contact).WithMany(t=>t.Nav_ItemFiles).HasForeignKey(t => t.CONTACT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InnerContactDoFile
     public partial class OGInnerContactDoFileMap :APTEntityBaseMap<T_OG_INNER_CONTACT_DO_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_INNER_CONTACT_DO_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Contact).WithMany(t=>t.Nav_DoFiles).HasForeignKey(t => t.CONTACT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Related
     public partial class OGRelatedMap :APTEntityBaseMap<T_OG_RELATED>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.CONTACT).HasMaxLength(50);
builder.Property(t => t.CONTACT_INFO).HasMaxLength(50);
builder.Property(t => t.ADDRESS).HasMaxLength(50);
builder.Property(t => t.SAFE_USER_NAME).HasMaxLength(50);
builder.Property(t => t.SAFE_USER_PHONE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT).HasMaxLength(50);
builder.Property(t => t.RISK).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RelatedAgreement
     public partial class OGRelatedAgreementMap :APTEntityBaseMap<T_OG_RELATED_AGREEMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_AGREEMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Related).WithMany(t=>t.Nav_Agreements).HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.AMOUNT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RelatedAgreementFile
     public partial class OGRelatedAgreementFileMap :APTEntityBaseMap<T_OG_RELATED_AGREEMENT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_AGREEMENT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Agreement).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.AGREEMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedQualification
     public partial class OGRelatedQualificationMap :APTEntityBaseMap<T_OG_RELATED_QUALIFICATION>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_QUALIFICATION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Related).WithMany(t=>t.Nav_Qualifications).HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Level).WithMany().HasForeignKey(t => t.LEVEL_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedQualificationDetail
     public partial class OGRelatedQualificationDetailMap :APTEntityBaseMap<T_OG_RELATED_QUALIFICATION_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_QUALIFICATION_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Qualification).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.QUALIFICATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Item).WithMany().HasForeignKey(t => t.ITEM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.BUSINESS_SCOPE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RelatedQualificationDetailFile
     public partial class OGRelatedQualificationDetailFileMap :APTEntityBaseMap<T_OG_RELATED_QUALIFICATION_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_QUALIFICATION_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedUser
     public partial class OGRelatedUserMap :APTEntityBaseMap<T_OG_RELATED_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Related).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CERTIFICATE_NAME).HasMaxLength(500);
builder.Property(t => t.CERTIFICATE_NUMBER).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RelatedUserHealth
     public partial class OGRelatedUserHealthMap :APTEntityBaseMap<T_OG_RELATED_USER_HEALTH>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_USER_HEALTH> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RelatedUser).WithMany(t=>t.Nav_Healths).HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedUserSign
     public partial class OGRelatedUserSignMap :APTEntityBaseMap<T_OG_RELATED_USER_SIGN>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_USER_SIGN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RelatedUser).WithMany(t=>t.Nav_Signs).HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedUserInsurance
     public partial class OGRelatedUserInsuranceMap :APTEntityBaseMap<T_OG_RELATED_USER_INSURANCE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_USER_INSURANCE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RelatedUser).WithMany(t=>t.Nav_Insurances).HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedEstimate
     public partial class OGRelatedEstimateMap :APTEntityBaseMap<T_OG_RELATED_ESTIMATE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_ESTIMATE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Related).WithMany().HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedEstimateDetail
     public partial class OGRelatedEstimateDetailMap :APTEntityBaseMap<T_OG_RELATED_ESTIMATE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_ESTIMATE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Estimate).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.ESTIMATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Item).WithMany().HasForeignKey(t => t.ITEM_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExternalContactDetail
     public partial class OGExternalContactDetailMap :APTEntityBaseMap<T_OG_EXTERNAL_CONTACT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_CONTACT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.ADDRESS).HasMaxLength(500);
builder.Property(t => t.PERSON).HasMaxLength(50);
builder.Property(t => t.PHONE).HasMaxLength(50);
builder.Property(t => t.CONTACT_MATTER).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ExternalContactCommunicate
     public partial class OGExternalContactCommunicateMap :APTEntityBaseMap<T_OG_EXTERNAL_CONTACT_COMMUNICATE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_CONTACT_COMMUNICATE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ExternalContactDetail).WithMany().HasForeignKey(t => t.EXTERNAL_COMPANY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EXTERNAL_COMMUNICATE_PERSON).HasMaxLength(50);
builder.Property(t => t.COMMUNICATE_PURPOSE).HasMaxLength(500);
builder.Property(t => t.COMMUNICATE_NAME).HasMaxLength(500);
builder.Property(t => t.COMMUNICATE_DES).HasMaxLength(500);
builder.HasOne(t => t.Nav_DoDepartment).WithMany().HasForeignKey(t => t.DO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DoUser).WithMany().HasForeignKey(t => t.DO_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.IMPLEMENT_DESCRIPTION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  ExternalContactCommunicateFile
     public partial class OGExternalContactCommunicateFileMap :APTEntityBaseMap<T_OG_EXTERNAL_CONTACT_COMMUNICATE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_CONTACT_COMMUNICATE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ExternalContactCommunicate).WithMany(t=>t.Nav_FileList).HasForeignKey(t => t.EXTERNAL_CONTACT_COMMUNICATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExternalContactCommunicateImplFile
     public partial class OGExternalContactCommunicateImplFileMap :APTEntityBaseMap<T_OG_EXTERNAL_CONTACT_COMMUNICATE_IMPL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_CONTACT_COMMUNICATE_IMPL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ExternalContactCommunicate).WithMany(t=>t.Nav_ImpFileList).HasForeignKey(t => t.EXTERNAL_CONTACT_COMMUNICATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExternalComplainAdvise
     public partial class OGExternalComplainAdviseMap :APTEntityBaseMap<T_OG_EXTERNAL_COMPLAIN_ADVISE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_COMPLAIN_ADVISE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ExternalContactDetail).WithMany().HasForeignKey(t => t.EXTERNAL_COMPANY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_ItemEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Assignee).WithMany().HasForeignKey(t => t.ASSIGNEE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ASSIGNEE_DESCRIPTION).HasMaxLength(100);
builder.HasOne(t => t.Nav_SurveyDepartment).WithMany().HasForeignKey(t => t.SURVEY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SurveyUser).WithMany().HasForeignKey(t => t.SURVEY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SURVEY_DESCRIPTION).HasMaxLength(100);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  ExternalComplainAdviseFile
     public partial class OGExternalComplainAdviseFileMap :APTEntityBaseMap<T_OG_EXTERNAL_COMPLAIN_ADVISE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_COMPLAIN_ADVISE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ExternalComplainAdvise).WithMany(t=>t.Nav_FileList).HasForeignKey(t => t.EXTERNAL_COMPLAIN_ADVISE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExternalComplainAdviseSurveyFile
     public partial class OGExternalComplainAdviseSurveyFileMap :APTEntityBaseMap<T_OG_EXTERNAL_COMPLAIN_ADVISE_SURVEY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EXTERNAL_COMPLAIN_ADVISE_SURVEY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ExternalComplainAdvise).WithMany(t=>t.Nav_SurveyFileList).HasForeignKey(t => t.EXTERNAL_COMPLAIN_ADVISE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ApproveRewardPunishmentReport
     public partial class OGApproveRewardPunishmentReportMap :APTEntityBaseMap<T_OG_APPROVE_REWARD_PUNISHMENT_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_APPROVE_REWARD_PUNISHMENT_REPORT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON_DESCRIBE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ApproveRewardPunishmentDetail
     public partial class OGApproveRewardPunishmentDetailMap :APTEntityBaseMap<T_OG_APPROVE_REWARD_PUNISHMENT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_APPROVE_REWARD_PUNISHMENT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApproveRewardPunishmentReport).WithMany(t=>t.Nav_ApproveRewardPunishmentDetail).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EventGet
     public partial class OGEventGetMap :APTEntityBaseMap<T_OG_EVENT_GET>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EVENT_GET> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  EventGetDetail
     public partial class OGEventGetDetailMap :APTEntityBaseMap<T_OG_EVENT_GET_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EVENT_GET_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Event).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.EVENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ReplyUser).WithMany().HasForeignKey(t => t.REPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  EventGetDetailItem
     public partial class OGEventGetDetailItemMap :APTEntityBaseMap<T_OG_EVENT_GET_DETAIL_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EVENT_GET_DETAIL_ITEM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_Items).HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESC).HasMaxLength(500);
builder.Property(t => t.REPLY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EventGetDetailFile
     public partial class OGEventGetDetailFileMap :APTEntityBaseMap<T_OG_EVENT_GET_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EVENT_GET_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EventReport
     public partial class OGEventReportMap :APTEntityBaseMap<T_OG_EVENT_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EVENT_REPORT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AHUser).WithMany().HasForeignKey(t => t.AH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PLACE).HasMaxLength(100);
builder.Property(t => t.DESC).HasMaxLength(500);
builder.HasOne(t => t.Nav_DoDepartment).WithMany().HasForeignKey(t => t.DO_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DoUser).WithMany().HasForeignKey(t => t.DO_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DO_DESC).HasMaxLength(500);
builder.Property(t => t.COMMENT).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  EventReportFile
     public partial class OGEventReportFileMap :APTEntityBaseMap<T_OG_EVENT_REPORT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EVENT_REPORT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EventReportSum
     public partial class OGEventReportSumMap :APTEntityBaseMap<T_OG_EVENT_REPORT_SUM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EVENT_REPORT_SUM> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  StandardizationSystemReview
     public partial class OGStandardizationSystemReviewMap :APTEntityBaseMap<T_OG_STANDARDIZATION_SYSTEM_REVIEW>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_SYSTEM_REVIEW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_HostUser).WithMany().HasForeignKey(t => t.HOST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  StandardizationReviewItemsRel
     public partial class OGStandardizationReviewItemsRelMap :APTEntityBaseMap<T_OG_STANDARDIZATION_REVIEW_ITEMS_REL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_REVIEW_ITEMS_REL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Review).WithMany(t=>t.Nav_ReviewItemsList).HasForeignKey(t => t.REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Item).WithMany().HasForeignKey(t => t.ITEM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PROBLEM).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  StandardizationPersonRel
     public partial class OGStandardizationPersonRelMap :APTEntityBaseMap<T_OG_STANDARDIZATION_PERSON_REL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_PERSON_REL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Review).WithMany(t=>t.Nav_ReviewUserList).HasForeignKey(t => t.REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  StandardizationReviewResultRel
     public partial class OGStandardizationReviewResultRelMap :APTEntityBaseMap<T_OG_STANDARDIZATION_REVIEW_RESULT_REL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_REVIEW_RESULT_REL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Review).WithMany(t=>t.Nav_ReviewResultList).HasForeignKey(t => t.REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Result).WithMany().HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RESULT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  StandardizationActionPlanRel
     public partial class OGStandardizationActionPlanRelMap :APTEntityBaseMap<T_OG_STANDARDIZATION_ACTION_PLAN_REL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_ACTION_PLAN_REL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Review).WithMany(t=>t.Nav_ActionPlanList).HasForeignKey(t => t.REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Plan).WithMany().HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PLAN_CONTENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  StandardizationReviewItemEnum
     public partial class OGStandardizationReviewItemEnumMap :APTEntityBaseMap<T_OG_STANDARDIZATION_REVIEW_ITEM_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_REVIEW_ITEM_ENUM> builder)
		{
			base.Configure(builder);
			builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  StandardizationActionPlanEnum
     public partial class OGStandardizationActionPlanEnumMap :APTEntityBaseMap<T_OG_STANDARDIZATION_ACTION_PLAN_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_ACTION_PLAN_ENUM> builder)
		{
			base.Configure(builder);
			builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EmployeeItemCategoryEnum
     public partial class OGEmployeeItemCategoryEnumMap :APTEntityBaseMap<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_EMPLOYEE_ITEM_CATEGORY_ENUM> builder)
		{
			base.Configure(builder);
			builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RelatedQualificationDetailItem
     public partial class OGRelatedQualificationDetailItemMap :APTEntityBaseMap<T_OG_RELATED_QUALIFICATION_DETAIL_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_QUALIFICATION_DETAIL_ITEM> builder)
		{
			base.Configure(builder);
			builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ApproveRewardPunishmentReason
     public partial class OGApproveRewardPunishmentReasonMap :APTEntityBaseMap<T_OG_APPROVE_REWARD_PUNISHMENT_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_APPROVE_REWARD_PUNISHMENT_REASON> builder)
		{
			base.Configure(builder);
			builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  PersonnelTypeEnum
     public partial class OGPersonnelTypeEnumMap :APTEntityBaseMap<T_OG_PERSONNEL_TYPE_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_PERSONNEL_TYPE_ENUM> builder)
		{
			base.Configure(builder);
			builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RelatedEstimateItem
     public partial class OGRelatedEstimateItemMap :APTEntityBaseMap<T_OG_RELATED_ESTIMATE_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_ESTIMATE_ITEM> builder)
		{
			base.Configure(builder);
			builder.HasIndex("NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RelatedQualificationLevel
     public partial class OGRelatedQualificationLevelMap :APTEntityBaseMap<T_OG_RELATED_QUALIFICATION_LEVEL>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_QUALIFICATION_LEVEL> builder)
		{
			base.Configure(builder);
			builder.HasIndex("TYPE", "NAME").IsUnique();
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RelatedUserType
     public partial class OGRelatedUserTypeMap :APTEntityBaseMap<T_OG_RELATED_USER_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_USER_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  StandardizationReviewResultEnum
     public partial class OGStandardizationReviewResultEnumMap :APTEntityBaseMap<T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_STANDARDIZATION_REVIEW_RESULT_ENUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  RelatedFireUser
     public partial class OGRelatedFireUserMap :APTEntityBaseMap<T_OG_RELATED_FIRE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_FIRE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Related).WithMany(t=>t.Nav_FireUser).HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedSafeUser
     public partial class OGRelatedSafeUserMap :APTEntityBaseMap<T_OG_RELATED_SAFE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_OG_RELATED_SAFE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Related).WithMany(t=>t.Nav_SafeUser).HasForeignKey(t => t.RELATED_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExamNoticeOccHazard
     public partial class OHExamNoticeOccHazardMap :APTEntityBaseMap<T_OH_EXAM_NOTICE_OCC_HAZARD>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_EXAM_NOTICE_OCC_HAZARD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Register).WithMany(t=>t.Nav_ListOccHazard).HasForeignKey(t => t.REGISTER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Hazard).WithMany().HasForeignKey(t => t.HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExamResultOccHazard
     public partial class OHExamResultOccHazardMap :APTEntityBaseMap<T_OH_EXAM_RESULT_OCC_HAZARD>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_EXAM_RESULT_OCC_HAZARD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Result).WithMany().HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Hazard).WithMany().HasForeignKey(t => t.HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardMonitorJob
     public partial class OHHazardMonitorJobMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_JOB>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_JOB> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEVICE_NAME).HasMaxLength(200);
builder.Property(t => t.DEVICE_SPEC).HasMaxLength(200);
builder.Property(t => t.MONITOR_METHOD).HasMaxLength(300);
builder.Property(t => t.SAMPLE_PEOPLE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  HazardMonitorJobDetail
     public partial class OHHazardMonitorJobDetailMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_JOB_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_JOB_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Job).WithMany(t=>t.Nav_Detail).HasForeignKey(t => t.JOB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Rule).WithMany().HasForeignKey(t => t.RULE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SAMPLE_SOURCE).HasMaxLength(300);
builder.Property(t => t.TEST_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.TESTER).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  HazardMonitorJobFile
     public partial class OHHazardMonitorJobFileMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_JOB_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_JOB_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MonitorJob).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardMonitorJobReport
     public partial class OHHazardMonitorJobReportMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_JOB_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_JOB_REPORT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.DEPARTMENTNAME_JOB).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  HazardMonitorJobReportFile
     public partial class OHHazardMonitorJobReportFileMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_JOB_REPORT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_JOB_REPORT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardMonitorResult
     public partial class OHHazardMonitorResultMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_RESULT>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_RESULT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rule).WithMany().HasForeignKey(t => t.RULE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany(t=>t.Nav_ListMonitorResult).HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TREND).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  HazardMonitorResultSum
     public partial class OHHazardMonitorResultSumMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_RESULT_SUM>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_RESULT_SUM> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.STR_RATIO);
builder.Ignore(t => t.EDITTYPE);
		} 
     }
	 #endregion
					#region  HazardMonitorRule
     public partial class OHHazardMonitorRuleMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_RULE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_RULE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentWorkshop).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_WORKSHOP).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.LOCATION).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RecordPost).WithMany().HasForeignKey(t => t.RECORD_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentWarn).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_WARN).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_WarnPost).WithMany().HasForeignKey(t => t.WARN_POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HazardMonitorType
     public partial class OHHazardMonitorTypeMap :APTEntityBaseMap<T_OH_HAZARD_MONITOR_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HAZARD_MONITOR_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.SMALL_TYPE).HasMaxLength(200);
builder.Property(t => t.MONITOR_TYPE).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HealthEaxmCycleOccHazardMid
     public partial class OHHealthEaxmCycleOccHazardMidMap :APTEntityBaseMap<T_OH_HEALTH_EAXM_CYCLE_OCC_HAZARD_MID>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EAXM_CYCLE_OCC_HAZARD_MID> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_ListOccHazard).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Hazard).WithMany().HasForeignKey(t => t.HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthEaxmCyclePostMid
     public partial class OHHealthEaxmCyclePostMidMap :APTEntityBaseMap<T_OH_HEALTH_EAXM_CYCLE_POST_MID>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EAXM_CYCLE_POST_MID> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCPost).WithMany().HasForeignKey(t => t.SC_POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthEaxmPlanDepartment
     public partial class OHHealthEaxmPlanDepartmentMap :APTEntityBaseMap<T_OH_HEALTH_EAXM_PLAN_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EAXM_PLAN_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_ListDepartment).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamBatch
     public partial class OHHealthExamBatchMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_BATCH>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_BATCH> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.BATCH).HasMaxLength(200);
builder.Ignore(t => t.TIME);
builder.Property(t => t.LOCATION).HasMaxLength(200);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamBatchDepartment
     public partial class OHHealthExamBatchDepartmentMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_BATCH_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_BATCH_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.BATCH_ID).HasMaxLength(200);
builder.HasOne(t => t.Nav_Batch).WithMany(t=>t.Nav_ListDepartment).HasForeignKey(t => t.BATCH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamCycle
     public partial class OHHealthExamCycleMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_CYCLE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_CYCLE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Ignore(t => t.OCCHAZARD);
builder.Property(t => t.HEALTH_EXAM_CONTENT).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HealthExamCycleDepartmentinfo
     public partial class OHHealthExamCycleDepartmentinfoMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ExamCycle).WithMany(t=>t.Nav_ListDepartmentInfo).HasForeignKey(t => t.EXAM_CYCLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamCycleDepartmentinfoPost
     public partial class OHHealthExamCycleDepartmentinfoPostMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_CYCLE_DEPARTMENTINFO_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DepartmentInfo).WithMany(t=>t.Nav_ListDepartmentInfoPost).HasForeignKey(t => t.DEPARTMENTINFO_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamNotice
     public partial class OHHealthExamNoticeMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_NOTICE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_NOTICE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.OTHER_STUFF).HasMaxLength(1000);
builder.HasOne(t => t.Nav_ExamBatch).WithMany().HasForeignKey(t => t.EXAM_BATCH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamNoticeFile
     public partial class OHHealthExamNoticeFileMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_NOTICE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_NOTICE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notice).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamNoticeRegister
     public partial class OHHealthExamNoticeRegisterMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_NOTICE_REGISTER>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_NOTICE_REGISTER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notice).WithMany(t=>t.Nav_ListNoticeRegister).HasForeignKey(t => t.NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentWorkshop).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_WORKSHOP).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Cycle).WithMany().HasForeignKey(t => t.CYCLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ExamBatch).WithMany().HasForeignKey(t => t.EXAM_BATCH_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamOccDisease
     public partial class OHHealthExamOccDiseaseMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_OCC_DISEASE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_OCC_DISEASE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HealthExamOccDiseaseSeverityLevel
     public partial class OHHealthExamOccDiseaseSeverityLevelMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_OCC_DISEASE_SEVERITY_LEVEL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HealthExamPlan
     public partial class OHHealthExamPlanMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_PLAN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CONTENT).HasMaxLength(500);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamPlanRegister
     public partial class OHHealthExamPlanRegisterMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_PLAN_REGISTER>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_PLAN_REGISTER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_ListPlanRegister).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PlanDEP).WithMany().HasForeignKey(t => t.PLAN_ID_DEP).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentWorkshop).WithMany().HasForeignKey(t => t.DEPARTMENT_ID_WORKSHOP).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ExamCycle).WithMany().HasForeignKey(t => t.EXAM_CYCLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HEALTH_EXAM_CONTENT).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HealthExamPlanRegisterHazard
     public partial class OHHealthExamPlanRegisterHazardMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_PLAN_REGISTER_HAZARD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Register).WithMany(t=>t.Nav_ListHazard).HasForeignKey(t => t.REGISTER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Hazard).WithMany().HasForeignKey(t => t.HAZARD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HealthExamResult
     public partial class OHHealthExamResultMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_RESULT>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_RESULT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_NoticeRegister).WithMany().HasForeignKey(t => t.NOTICE_REGISTER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.SUGGESTION).HasMaxLength(800);
		} 
     }
	 #endregion
					#region  HealthExamResultImport
     public partial class OHHealthExamResultImportMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_RESULT_IMPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_RESULT_IMPORT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ExamNotice).WithMany().HasForeignKey(t => t.NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_ListResult);
		} 
     }
	 #endregion
					#region  HealthExamResultOccDisease
     public partial class OHHealthExamResultOccDiseaseMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Result).WithMany(t=>t.Nav_OccDiseaseList).HasForeignKey(t => t.RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OccDisease).WithMany().HasForeignKey(t => t.OCC_DISEASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DIAGNOSE_AGENCY).HasMaxLength(200);
builder.Property(t => t.DIAGNOSE_METHOD).HasMaxLength(200);
builder.HasOne(t => t.Nav_OccDiseaseSeverity).WithMany().HasForeignKey(t => t.OCC_DISEASE_SEVERITY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(600);
builder.Property(t => t.OCC_HISTORY).HasMaxLength(1000);
		} 
     }
	 #endregion
					#region  HealthExamResultOccDiseaseFile
     public partial class OHHealthExamResultOccDiseaseFileMap :APTEntityBaseMap<T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_HEALTH_EXAM_RESULT_OCC_DISEASE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Disease).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DISEASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Runconfig
     public partial class OHRunconfigMap :APTEntityBaseMap<T_OH_RUNCONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_OH_RUNCONFIG> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.STRDATE);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AssessmentItem
     public partial class PEAssessmentItemMap :APTEntityBaseMap<T_PE_ASSESSMENT_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_ASSESSMENT_ITEM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CorrectivePreventive
     public partial class PECorrectivePreventiveMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveDetail
     public partial class PECorrectivePreventiveDetailMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Corrective).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_StandardName).WithMany().HasForeignKey(t => t.STANDARDIZED_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveEvaluation
     public partial class PECorrectivePreventiveEvaluationMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.COMMENTS).HasMaxLength(500);
builder.HasOne(t => t.Nav_CorrectiveProcess).WithMany().HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_PROCESS_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveEvaluationConsider
     public partial class PECorrectivePreventiveEvaluationConsiderMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION_CONSIDER>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION_CONSIDER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_MeasureConsider).HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Consider).WithMany().HasForeignKey(t => t.CONSIDER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveEvaluationDetail
     public partial class PECorrectivePreventiveEvaluationDetailMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Property(t => t.CORRECTIVE_PREVENTIVE).HasMaxLength(500);
builder.Property(t => t.NOT_CARRY_OUT).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.COMMENTS).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveEvaluationDetailConsider
     public partial class PECorrectivePreventiveEvaluationDetailConsiderMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION_DETAIL_CONSIDER>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION_DETAIL_CONSIDER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_MeasureConsider).HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_EVALUATION_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Consider).WithMany().HasForeignKey(t => t.CONSIDER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveEvaluationDetailFile
     public partial class PECorrectivePreventiveEvaluationDetailFileMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_EVALUATION_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_EVALUATION_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveProcess
     public partial class PECorrectivePreventiveProcessMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_PROCESS>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_PROCESS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Corrective).WithMany().HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveProcessDetail
     public partial class PECorrectivePreventiveProcessDetailMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_PROCESS_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_PROCESS_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Process).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_PROCESS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_StandardName).WithMany().HasForeignKey(t => t.STANDARDIZED_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.Property(t => t.CORRECTIVE_PREVENTIVE).HasMaxLength(500);
builder.Property(t => t.NOT_CARRY_OUT).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CorrectivePreventiveProcessDetailFile
     public partial class PECorrectivePreventiveProcessDetailFileMap :APTEntityBaseMap<T_PE_CORRECTIVE_PREVENTIVE_PROCESS_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_CORRECTIVE_PREVENTIVE_PROCESS_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProcessDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CORRECTIVE_PREVENTIVE_PROCESS_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EvaluationMethod
     public partial class PEEvaluationMethodMap :APTEntityBaseMap<T_PE_EVALUATION_METHOD>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_EVALUATION_METHOD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MeasureConsider
     public partial class PEMeasureConsiderMap :APTEntityBaseMap<T_PE_MEASURE_CONSIDER>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_MEASURE_CONSIDER> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MonitorProject
     public partial class PEMonitorProjectMap :APTEntityBaseMap<T_PE_MONITOR_PROJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_MONITOR_PROJECT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafetyEvaluationPlan
     public partial class PESafetyEvaluationPlanMap :APTEntityBaseMap<T_PE_SAFETY_EVALUATION_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_EVALUATION_PLAN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.YEAR).HasMaxLength(500);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  SafetyEvaluationPlanDetail
     public partial class PESafetyEvaluationPlanDetailMap :APTEntityBaseMap<T_PE_SAFETY_EVALUATION_PLAN_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_EVALUATION_PLAN_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationPlan).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.SAFETY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_StandardName).WithMany().HasForeignKey(t => t.STANDARDIZED_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EVALUATION_TECHNOLOGY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafetyEvaluationPlanMethod
     public partial class PESafetyEvaluationPlanMethodMap :APTEntityBaseMap<T_PE_SAFETY_EVALUATION_PLAN_METHOD>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_EVALUATION_PLAN_METHOD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_EvaluationMethod).HasForeignKey(t => t.EVALUATION_PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Method).WithMany().HasForeignKey(t => t.METHOD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetyEvaluationPlanUser
     public partial class PESafetyEvaluationPlanUserMap :APTEntityBaseMap<T_PE_SAFETY_EVALUATION_PLAN_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_EVALUATION_PLAN_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_EvaluationUser).HasForeignKey(t => t.EVALUATION_PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetyEvaluationRecord
     public partial class PESafetyEvaluationRecordMap :APTEntityBaseMap<T_PE_SAFETY_EVALUATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_EVALUATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_EvaluationPlan).WithMany().HasForeignKey(t => t.EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_EvaluationPlanDetail).WithMany().HasForeignKey(t => t.EVALUATION_PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.STAND_TOTAL);
builder.Ignore(t => t.RESULT_TOTAL);
builder.Ignore(t => t.NON_STANDARDIZED_SCORE);
builder.Ignore(t => t.STANDARDIZED_RESULT);
builder.Ignore(t => t.Nav_IngoreUser);
builder.Ignore(t => t.Nav_IngoreDetails);
builder.Ignore(t => t.YEAR);
builder.Ignore(t => t.PRODUCTION_UNIT);
		} 
     }
	 #endregion
					#region  SafetyEvaluationRecordDetail
     public partial class PESafetyEvaluationRecordDetailMap :APTEntityBaseMap<T_PE_SAFETY_EVALUATION_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_EVALUATION_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRecord).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.SAFETY_EVALUATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Primary).WithMany().HasForeignKey(t => t.PRIMARY_ELEMENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Second).WithMany().HasForeignKey(t => t.SECOND_ELEMENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Three).WithMany().HasForeignKey(t => t.THREE_ELEMENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Property(t => t.NON_CONFORMANCE).HasMaxLength(500);
builder.Property(t => t.GROUP_NO).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafetyEvaluationRecordMethod
     public partial class PESafetyEvaluationRecordMethodMap :APTEntityBaseMap<T_PE_SAFETY_EVALUATION_RECORD_METHOD>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_EVALUATION_RECORD_METHOD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RecordDetail).WithMany(t=>t.Nav_EvaluationMethod).HasForeignKey(t => t.SAFETY_EVALUATION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Method).WithMany().HasForeignKey(t => t.METHOD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetyEvaluationRecordUser
     public partial class PESafetyEvaluationRecordUserMap :APTEntityBaseMap<T_PE_SAFETY_EVALUATION_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_EVALUATION_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationRecord).WithMany(t=>t.Nav_RecordUser).HasForeignKey(t => t.SAFETY_EVALUATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetyMonitorPlan
     public partial class PESafetyMonitorPlanMap :APTEntityBaseMap<T_PE_SAFETY_MONITOR_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_MONITOR_PLAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Property(t => t.MONITOR_PROGRAM).HasMaxLength(500);
builder.Property(t => t.MONITOR_RANGE).HasMaxLength(500);
builder.Property(t => t.RESOURCES).HasMaxLength(500);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  SafetyMonitorPlanDetail
     public partial class PESafetyMonitorPlanDetailMap :APTEntityBaseMap<T_PE_SAFETY_MONITOR_PLAN_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_MONITOR_PLAN_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MonitorPlan).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.SAFETY_MONITOR_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Property(t => t.STANDARD).HasMaxLength(500);
builder.Property(t => t.METHOD).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.MONITOR_LIVE);
builder.Ignore(t => t.RESULT_DISCUSS);
builder.Ignore(t => t.Nav_MonitorUser);
		} 
     }
	 #endregion
					#region  SafetyMonitorRecord
     public partial class PESafetyMonitorRecordMap :APTEntityBaseMap<T_PE_SAFETY_MONITOR_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_MONITOR_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_MonitorPlan).WithMany().HasForeignKey(t => t.SAFETY_MONITOR_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetyMonitorRecordDetail
     public partial class PESafetyMonitorRecordDetailMap :APTEntityBaseMap<T_PE_SAFETY_MONITOR_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_MONITOR_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MonitorRecord).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.SAFETY_MONITOR_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Property(t => t.STANDARD).HasMaxLength(500);
builder.Property(t => t.METHOD).HasMaxLength(500);
builder.Property(t => t.MONITOR_LIVE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafetyMonitorRecordDetailFile
     public partial class PESafetyMonitorRecordDetailFileMap :APTEntityBaseMap<T_PE_SAFETY_MONITOR_RECORD_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_MONITOR_RECORD_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MonitorDetails).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SAFETY_MONITOR_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetyMonitorRecordUser
     public partial class PESafetyMonitorRecordUserMap :APTEntityBaseMap<T_PE_SAFETY_MONITOR_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_SAFETY_MONITOR_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MonitorRecord).WithMany(t=>t.Nav_MonitorUser).HasForeignKey(t => t.SAFETY_MONITOR_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  StandardizedScoreAutoDetail
     public partial class PEStandardizedScoreAutoDetailMap :APTEntityBaseMap<T_PE_STANDARDIZED_SCORE_AUTO_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_STANDARDIZED_SCORE_AUTO_DETAIL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Property(t => t.PRODUCTION_UNIT).HasMaxLength(500);
builder.Property(t => t.Primary).HasMaxLength(500);
builder.Property(t => t.Second).HasMaxLength(500);
builder.Property(t => t.Three).HasMaxLength(500);
builder.Property(t => t.EVALUATION_ITEM).HasMaxLength(500);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Property(t => t.STANDARDIZED_SCORE).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RESULT_SCORE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  StandardizedScoreImport
     public partial class PEStandardizedScoreImportMap :TreeEntityBaseMap<T_PE_STANDARDIZED_SCORE_IMPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_STANDARDIZED_SCORE_IMPORT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.SCORE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  StandardizedScoreImportDetail
     public partial class PEStandardizedScoreImportDetailMap :APTEntityBaseMap<T_PE_STANDARDIZED_SCORE_IMPORT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_STANDARDIZED_SCORE_IMPORT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Primary).WithMany().HasForeignKey(t => t.PRIMARY_ELEMENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Second).WithMany().HasForeignKey(t => t.SECOND_ELEMENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Three).WithMany().HasForeignKey(t => t.THREE_ELEMENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Property(t => t.GROUP_NO).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  StandardizedScoreImportItem
     public partial class PEStandardizedScoreImportItemMap :APTEntityBaseMap<T_PE_STANDARDIZED_SCORE_IMPORT_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_PE_STANDARDIZED_SCORE_IMPORT_ITEM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Standardized).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.STANDARDIZED_SCORE_IMPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Property(t => t.GROUP_NO).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AuditRequirement
     public partial class PRAuditRequirementMap :APTEntityBaseMap<T_PR_AUDIT_REQUIREMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_AUDIT_REQUIREMENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ChangeAcceptance
     public partial class PRChangeAcceptanceMap :APTEntityBaseMap<T_PR_CHANGE_ACCEPTANCE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CHANGE_ACCEPTANCE> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.CODE);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_Types);
builder.Ignore(t => t.DESCRIPTION);
builder.Ignore(t => t.Nav_Tasks);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Change).WithMany().HasForeignKey(t => t.CHANGE_IDENTIFY_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_SafeUser);
		} 
     }
	 #endregion
					#region  ChangeIdentifyEvaluation
     public partial class PRChangeIdentifyEvaluationMap :APTEntityBaseMap<T_PR_CHANGE_IDENTIFY_EVALUATION>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CHANGE_IDENTIFY_EVALUATION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RISK).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  ChangeIdentifyEvaluationTask
     public partial class PRChangeIdentifyEvaluationTaskMap :APTEntityBaseMap<T_PR_CHANGE_IDENTIFY_EVALUATION_TASK>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CHANGE_IDENTIFY_EVALUATION_TASK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Change).WithMany(t=>t.Nav_Tasks).HasForeignKey(t => t.CHANGE_IDENTIFY_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Task).WithMany().HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NOTHROUGH_REASON).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ChangeIdentifyEvaluationType
     public partial class PRChangeIdentifyEvaluationTypeMap :APTEntityBaseMap<T_PR_CHANGE_IDENTIFY_EVALUATION_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CHANGE_IDENTIFY_EVALUATION_TYPE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Change).WithMany(t=>t.Nav_Types).HasForeignKey(t => t.CHANGE_IDENTIFY_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ChangeTaskImplement
     public partial class PRChangeTaskImplementMap :APTEntityBaseMap<T_PR_CHANGE_TASK_IMPLEMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CHANGE_TASK_IMPLEMENT> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.CODE);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_Types);
builder.Ignore(t => t.DESCRIPTION);
builder.Property(t => t.PERFORM_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Change).WithMany().HasForeignKey(t => t.CHANGE_IDENTIFY_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Task).WithMany().HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NOTHROUGH_REASON).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ChangeTaskImplementFile
     public partial class PRChangeTaskImplementFileMap :APTEntityBaseMap<T_PR_CHANGE_TASK_IMPLEMENT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CHANGE_TASK_IMPLEMENT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Implement).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CHANGE_TASK_IMPLEMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ChangeTaskImplementUser
     public partial class PRChangeTaskImplementUserMap :APTEntityBaseMap<T_PR_CHANGE_TASK_IMPLEMENT_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CHANGE_TASK_IMPLEMENT_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Implement).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.CHANGE_TASK_IMPLEMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ChangeType
     public partial class PRChangeTypeMap :APTEntityBaseMap<T_PR_CHANGE_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CHANGE_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ControlroomOperationRecord
     public partial class PRControlroomOperationRecordMap :APTEntityBaseMap<T_PR_CONTROLROOM_OPERATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CONTROLROOM_OPERATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  ControlroomOperationRecordAir
     public partial class PRControlroomOperationRecordAirMap :APTEntityBaseMap<T_PR_CONTROLROOM_OPERATION_RECORD_AIR>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CONTROLROOM_OPERATION_RECORD_AIR> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Airs).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TIME).HasMaxLength(500);
builder.Property(t => t.PRESS).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ControlroomOperationRecordDeal
     public partial class PRControlroomOperationRecordDealMap :APTEntityBaseMap<T_PR_CONTROLROOM_OPERATION_RECORD_DEAL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CONTROLROOM_OPERATION_RECORD_DEAL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Deals).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.HOUR).HasMaxLength(500);
builder.Property(t => t.COUNT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ControlroomOperationRecordDrug
     public partial class PRControlroomOperationRecordDrugMap :APTEntityBaseMap<T_PR_CONTROLROOM_OPERATION_RECORD_DRUG>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CONTROLROOM_OPERATION_RECORD_DRUG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Drugs).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.QTY).HasMaxLength(500);
builder.Property(t => t.ACERAGE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ControlroomOperationRecordSeri
     public partial class PRControlroomOperationRecordSeriMap :APTEntityBaseMap<T_PR_CONTROLROOM_OPERATION_RECORD_SERI>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_CONTROLROOM_OPERATION_RECORD_SERI> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Seris).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.TIME).HasMaxLength(500);
builder.Property(t => t.SODA_START).HasMaxLength(500);
builder.Property(t => t.SODA_TRAFFIC).HasMaxLength(500);
builder.Property(t => t.INHI_START).HasMaxLength(500);
builder.Property(t => t.INHI_TRAFFIC).HasMaxLength(500);
builder.Property(t => t.SAPO_START).HasMaxLength(500);
builder.Property(t => t.SAPO_TRAFFIC).HasMaxLength(500);
builder.Property(t => t.SAPO_SCAVENG).HasMaxLength(500);
builder.Property(t => t.BUBBLE_ROUGH).HasMaxLength(500);
builder.Property(t => t.BUBBLE_SCAVENG1).HasMaxLength(500);
builder.Property(t => t.BUBBLE_SCAVENG2).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DepartmentStepLink
     public partial class PRDepartmentStepLinkMap :APTEntityBaseMap<T_PR_DEPARTMENT_STEP_LINK>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DEPARTMENT_STEP_LINK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DesignDocumentPictureFile
     public partial class PRDesignDocumentPictureFileMap :APTEntityBaseMap<T_PR_DESIGN_DOCUMENT_PICTURE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DESIGN_DOCUMENT_PICTURE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Design).WithMany(t=>t.Nav_Pictures).HasForeignKey(t => t.DESIGN_DOCUMENT_REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DesignDocumentReview
     public partial class PRDesignDocumentReviewMap :APTEntityBaseMap<T_PR_DESIGN_DOCUMENT_REVIEW>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DESIGN_DOCUMENT_REVIEW> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.POTENTIAL_RISK).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  DesignDocumentReviewFile
     public partial class PRDesignDocumentReviewFileMap :APTEntityBaseMap<T_PR_DESIGN_DOCUMENT_REVIEW_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DESIGN_DOCUMENT_REVIEW_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Design).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DESIGN_DOCUMENT_REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DesignDocumentReviewRequirement
     public partial class PRDesignDocumentReviewRequirementMap :APTEntityBaseMap<T_PR_DESIGN_DOCUMENT_REVIEW_REQUIREMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DESIGN_DOCUMENT_REVIEW_REQUIREMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Design).WithMany(t=>t.Nav_Requirements).HasForeignKey(t => t.DESIGN_DOCUMENT_REVIEW_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Requirement).WithMany().HasForeignKey(t => t.REQUIREMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrugCarryRecord
     public partial class PRDrugCarryRecordMap :APTEntityBaseMap<T_PR_DRUG_CARRY_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_CARRY_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.OUTBOUND_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrugCarryRecordDetail
     public partial class PRDrugCarryRecordDetailMap :APTEntityBaseMap<T_PR_DRUG_CARRY_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_CARRY_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.CARRY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Drug).WithMany().HasForeignKey(t => t.DRUG_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Specify).WithMany().HasForeignKey(t => t.SPECIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.HasOne(t => t.Nav_Place).WithMany().HasForeignKey(t => t.PLACE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEPARTMENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugCarryRecordDetailAccept
     public partial class PRDrugCarryRecordDetailAcceptMap :APTEntityBaseMap<T_PR_DRUG_CARRY_RECORD_DETAIL_ACCEPT>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_CARRY_RECORD_DETAIL_ACCEPT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RecordDetail).WithMany(t=>t.Nav_Accepts).HasForeignKey(t => t.CARRY_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrugCarryRecordDetailUser
     public partial class PRDrugCarryRecordDetailUserMap :APTEntityBaseMap<T_PR_DRUG_CARRY_RECORD_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_CARRY_RECORD_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RecordDetail).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.CARRY_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrugCarrySafeConfirm
     public partial class PRDrugCarrySafeConfirmMap :APTEntityBaseMap<T_PR_DRUG_CARRY_SAFE_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_CARRY_SAFE_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Carry).WithMany(t=>t.Nav_Confirms).HasForeignKey(t => t.CARRY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugOutboundRecord
     public partial class PRDrugOutboundRecordMap :APTEntityBaseMap<T_PR_DRUG_OUTBOUND_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_OUTBOUND_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  DrugOutboundRecordDetail
     public partial class PRDrugOutboundRecordDetailMap :APTEntityBaseMap<T_PR_DRUG_OUTBOUND_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_OUTBOUND_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.OUTBOUND_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Drug).WithMany().HasForeignKey(t => t.DRUG_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Specify).WithMany().HasForeignKey(t => t.SPECIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.HasOne(t => t.Nav_Place).WithMany().HasForeignKey(t => t.PLACE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEPARTMENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugOutboundRecordDetailAccept
     public partial class PRDrugOutboundRecordDetailAcceptMap :APTEntityBaseMap<T_PR_DRUG_OUTBOUND_RECORD_DETAIL_ACCEPT>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_OUTBOUND_RECORD_DETAIL_ACCEPT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RecordDetail).WithMany(t=>t.Nav_Accepts).HasForeignKey(t => t.OUTBOUND_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrugOutboundRecordDetailUser
     public partial class PRDrugOutboundRecordDetailUserMap :APTEntityBaseMap<T_PR_DRUG_OUTBOUND_RECORD_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_OUTBOUND_RECORD_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RecordDetail).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.OUTBOUND_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrugPlace
     public partial class PRDrugPlaceMap :APTEntityBaseMap<T_PR_DRUG_PLACE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_PLACE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugSet
     public partial class PRDrugSetMap :APTEntityBaseMap<T_PR_DRUG_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrugSetSafeConfirm
     public partial class PRDrugSetSafeConfirmMap :APTEntityBaseMap<T_PR_DRUG_SET_SAFE_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_SET_SAFE_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Drug).WithMany(t=>t.Nav_Confirms).HasForeignKey(t => t.DRUG_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugSetSpecify
     public partial class PRDrugSetSpecifyMap :APTEntityBaseMap<T_PR_DRUG_SET_SPECIFY>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_SET_SPECIFY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Drug).WithMany(t=>t.Nav_Specifys).HasForeignKey(t => t.DRUG_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugType
     public partial class PRDrugTypeMap :APTEntityBaseMap<T_PR_DRUG_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugTypeSafeConfirm
     public partial class PRDrugTypeSafeConfirmMap :APTEntityBaseMap<T_PR_DRUG_TYPE_SAFE_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_TYPE_SAFE_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Type).WithMany(t=>t.Nav_Confirms).HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugUseRecord
     public partial class PRDrugUseRecordMap :APTEntityBaseMap<T_PR_DRUG_USE_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_USE_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Carry).WithMany().HasForeignKey(t => t.CARRY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Drug).WithMany().HasForeignKey(t => t.DRUG_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Specify).WithMany().HasForeignKey(t => t.SPECIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugUseRecordConfirm
     public partial class PRDrugUseRecordConfirmMap :APTEntityBaseMap<T_PR_DRUG_USE_RECORD_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_USE_RECORD_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_UseRecord).WithMany(t=>t.Nav_Confirms).HasForeignKey(t => t.USE_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugUseRecordDetail
     public partial class PRDrugUseRecordDetailMap :APTEntityBaseMap<T_PR_DRUG_USE_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_USE_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Use).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.USE_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Drug).WithMany().HasForeignKey(t => t.DRUG_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Specify).WithMany().HasForeignKey(t => t.SPECIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.UNIT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugUseRecordDetailConfirm
     public partial class PRDrugUseRecordDetailConfirmMap :APTEntityBaseMap<T_PR_DRUG_USE_RECORD_DETAIL_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_USE_RECORD_DETAIL_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_UseRecordDetail).WithMany(t=>t.Nav_Confirms).HasForeignKey(t => t.USE_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DrugUseRecordPrint
     public partial class PRDrugUseRecordPrintMap :APTEntityBaseMap<T_PR_DRUG_USE_RECORD_PRINT>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_USE_RECORD_PRINT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Drug).WithMany().HasForeignKey(t => t.DRUG_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Specify).WithMany().HasForeignKey(t => t.SPECIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Ignore(t => t.Nav_Confirms);
builder.HasOne(t => t.Nav_Use).WithMany().HasForeignKey(t => t.USE_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DrugUseRecordUser
     public partial class PRDrugUseRecordUserMap :APTEntityBaseMap<T_PR_DRUG_USE_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DRUG_USE_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_UseRecord).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.USE_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DutyOperationRecord
     public partial class PRDutyOperationRecordMap :APTEntityBaseMap<T_PR_DUTY_OPERATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DUTY_OPERATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  DutyOperationRecordDeal
     public partial class PRDutyOperationRecordDealMap :APTEntityBaseMap<T_PR_DUTY_OPERATION_RECORD_DEAL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DUTY_OPERATION_RECORD_DEAL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Deals).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.HOUR).HasMaxLength(500);
builder.Property(t => t.COUNT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DutyOperationRecordDrug
     public partial class PRDutyOperationRecordDrugMap :APTEntityBaseMap<T_PR_DUTY_OPERATION_RECORD_DRUG>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DUTY_OPERATION_RECORD_DRUG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Drugs).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.QTY).HasMaxLength(500);
builder.Property(t => t.ACERAGE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DutyOperationRecordInve
     public partial class PRDutyOperationRecordInveMap :APTEntityBaseMap<T_PR_DUTY_OPERATION_RECORD_INVE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DUTY_OPERATION_RECORD_INVE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Inves).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ACCEPT_QTY).HasMaxLength(500);
builder.Property(t => t.INPUT_QTY).HasMaxLength(500);
builder.Property(t => t.USE_QTY).HasMaxLength(500);
builder.Property(t => t.SEND_QTY).HasMaxLength(500);
builder.Property(t => t.HEIGHT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DutyOperationRecordMach
     public partial class PRDutyOperationRecordMachMap :APTEntityBaseMap<T_PR_DUTY_OPERATION_RECORD_MACH>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DUTY_OPERATION_RECORD_MACH> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Machs).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PRESS).HasMaxLength(500);
builder.Property(t => t.QTY).HasMaxLength(500);
builder.Property(t => t.HEAT_QTY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DutyOperationRecordTung
     public partial class PRDutyOperationRecordTungMap :APTEntityBaseMap<T_PR_DUTY_OPERATION_RECORD_TUNG>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_DUTY_OPERATION_RECORD_TUNG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Tungs).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.UNDRESS_ORE).HasMaxLength(500);
builder.Property(t => t.COARSE_FINE).HasMaxLength(500);
builder.Property(t => t.TAILING).HasMaxLength(500);
builder.Property(t => t.RECOVERY_RATE).HasMaxLength(500);
builder.Property(t => t.ENRICHMENT).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ExperimentalOperationRecord
     public partial class PRExperimentalOperationRecordMap :APTEntityBaseMap<T_PR_EXPERIMENTAL_OPERATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_EXPERIMENTAL_OPERATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.SAMPLE).HasMaxLength(500);
builder.Property(t => t.PURPOSE).HasMaxLength(500);
builder.Property(t => t.REQUIREMENTS).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  ExperimentalOperationRecordDetail
     public partial class PRExperimentalOperationRecordDetailMap :APTEntityBaseMap<T_PR_EXPERIMENTAL_OPERATION_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_EXPERIMENTAL_OPERATION_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.WEIGHT).HasMaxLength(500);
builder.Property(t => t.RATE).HasMaxLength(500);
builder.Property(t => t.GRADE).HasMaxLength(500);
builder.Property(t => t.METAL).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ExternalAcceptanceRecord
     public partial class PRExternalAcceptanceRecordMap :APTEntityBaseMap<T_PR_EXTERNAL_ACCEPTANCE_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_EXTERNAL_ACCEPTANCE_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_RECORD).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Application).WithMany().HasForeignKey(t => t.APPLICATION_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExternalAcceptanceRecordAcceptance
     public partial class PRExternalAcceptanceRecordAcceptanceMap :APTEntityBaseMap<T_PR_EXTERNAL_ACCEPTANCE_RECORD_ACCEPTANCE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_EXTERNAL_ACCEPTANCE_RECORD_ACCEPTANCE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Acceptances).HasForeignKey(t => t.EXTERNAL_ACCEPTANCE_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExternalAcceptanceRecordFile
     public partial class PRExternalAcceptanceRecordFileMap :APTEntityBaseMap<T_PR_EXTERNAL_ACCEPTANCE_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_EXTERNAL_ACCEPTANCE_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.EXTERNAL_ACCEPTANCE_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ExternalAssistanceApplication
     public partial class PRExternalAssistanceApplicationMap :APTEntityBaseMap<T_PR_EXTERNAL_ASSISTANCE_APPLICATION>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_EXTERNAL_ASSISTANCE_APPLICATION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.PHONE).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Monitor).WithMany().HasForeignKey(t => t.MONITOR_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ExternalContactDetail).WithMany().HasForeignKey(t => t.EXTERNAL_COMPANY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LaboratoryOperationRecord
     public partial class PRLaboratoryOperationRecordMap :APTEntityBaseMap<T_PR_LABORATORY_OPERATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_LABORATORY_OPERATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  LaboratoryOperationRecordDet
     public partial class PRLaboratoryOperationRecordDetMap :APTEntityBaseMap<T_PR_LABORATORY_OPERATION_RECORD_DET>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_LABORATORY_OPERATION_RECORD_DET> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Dets).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.UNDRESS_ORE).HasMaxLength(500);
builder.Property(t => t.COARSE_FINE).HasMaxLength(500);
builder.Property(t => t.TAILING).HasMaxLength(500);
builder.Property(t => t.RECOVERY_RATE).HasMaxLength(500);
builder.Property(t => t.ENRICHMENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LaboratoryOperationRecordOre
     public partial class PRLaboratoryOperationRecordOreMap :APTEntityBaseMap<T_PR_LABORATORY_OPERATION_RECORD_ORE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_LABORATORY_OPERATION_RECORD_ORE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Ores).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PH).HasMaxLength(500);
builder.Property(t => t.STRINGNESS).HasMaxLength(500);
builder.Property(t => t.FINENESS).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LaboratoryOperationRecordPre
     public partial class PRLaboratoryOperationRecordPreMap :APTEntityBaseMap<T_PR_LABORATORY_OPERATION_RECORD_PRE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_LABORATORY_OPERATION_RECORD_PRE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Pres).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.UNDRESS_ORE).HasMaxLength(500);
builder.Property(t => t.COARSE_FINE).HasMaxLength(500);
builder.Property(t => t.TAILING).HasMaxLength(500);
builder.Property(t => t.RECOVERY_RATE).HasMaxLength(500);
builder.Property(t => t.ENRICHMENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LaboratoryOperationRecordSam
     public partial class PRLaboratoryOperationRecordSamMap :APTEntityBaseMap<T_PR_LABORATORY_OPERATION_RECORD_SAM>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_LABORATORY_OPERATION_RECORD_SAM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Sams).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.BATCH_NO).HasMaxLength(500);
builder.Property(t => t.WO3).HasMaxLength(500);
builder.Property(t => t.H2O).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LandslideRollstoneMonitor
     public partial class PRLandslideRollstoneMonitorMap :APTEntityBaseMap<T_PR_LANDSLIDE_ROLLSTONE_MONITOR>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_LANDSLIDE_ROLLSTONE_MONITOR> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PLACE).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.Property(t => t.MEASURES).HasMaxLength(500);
builder.Property(t => t.OPINION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  LandslideRollstoneMonitorFile
     public partial class PRLandslideRollstoneMonitorFileMap :APTEntityBaseMap<T_PR_LANDSLIDE_ROLLSTONE_MONITOR_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_LANDSLIDE_ROLLSTONE_MONITOR_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RollStone).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.LANDSLIDE_ROLLSTONE_MONITOR_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MapProcessRecord
     public partial class PRMapProcessRecordMap :APTEntityBaseMap<T_PR_MAP_PROCESS_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_MAP_PROCESS_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  MapProcessRecordFile
     public partial class PRMapProcessRecordFileMap :APTEntityBaseMap<T_PR_MAP_PROCESS_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_MAP_PROCESS_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Map).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.MAP_PROCESS_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PerformTaskSet
     public partial class PRPerformTaskSetMap :APTEntityBaseMap<T_PR_PERFORM_TASK_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_PERFORM_TASK_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  PostFormLink
     public partial class PRPostFormLinkMap :APTEntityBaseMap<T_PR_POST_FORM_LINK>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_POST_FORM_LINK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PostFormLinkCode
     public partial class PRPostFormLinkCodeMap :APTEntityBaseMap<T_PR_POST_FORM_LINK_CODE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_POST_FORM_LINK_CODE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PostForm).WithMany(t=>t.Nav_Codes).HasForeignKey(t => t.POST_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Form).WithMany().HasForeignKey(t => t.PF_FORM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  PostFormLinkDepartment
     public partial class PRPostFormLinkDepartmentMap :APTEntityBaseMap<T_PR_POST_FORM_LINK_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_POST_FORM_LINK_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PostForm).WithMany(t=>t.Nav_Departments).HasForeignKey(t => t.POST_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PostFormLinkXk
     public partial class PRPostFormLinkXkMap :APTEntityBaseMap<T_PR_POST_FORM_LINK_XK>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_POST_FORM_LINK_XK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PostFormLinkXkParam
     public partial class PRPostFormLinkXkParamMap :APTEntityBaseMap<T_PR_POST_FORM_LINK_XK_PARAM>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_POST_FORM_LINK_XK_PARAM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PostForm).WithMany(t=>t.Nav_Params).HasForeignKey(t => t.POST_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.PARAM).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ProcessFormXk
     public partial class PRProcessFormXkMap :APTEntityBaseMap<T_PR_PROCESS_FORM_XK>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_PROCESS_FORM_XK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CLASS).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  ProcessFormXkDetail
     public partial class PRProcessFormXkDetailMap :APTEntityBaseMap<T_PR_PROCESS_FORM_XK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_PROCESS_FORM_XK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProcessForm).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.POST_PROCESS_FORM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.PARAM).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ProductionOperationRecord
     public partial class PRProductionOperationRecordMap :APTEntityBaseMap<T_PR_PRODUCTION_OPERATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_PRODUCTION_OPERATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_OperationStep).WithMany().HasForeignKey(t => t.OPERATION_STEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PLACE).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  ProductionOperationRecordFile
     public partial class PRProductionOperationRecordFileMap :APTEntityBaseMap<T_PR_PRODUCTION_OPERATION_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_PRODUCTION_OPERATION_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PRODUCTION_OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProductionOperationRecordUser
     public partial class PRProductionOperationRecordUserMap :APTEntityBaseMap<T_PR_PRODUCTION_OPERATION_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_PRODUCTION_OPERATION_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.PRODUCTION_OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SandpumpOperationRecord
     public partial class PRSandpumpOperationRecordMap :APTEntityBaseMap<T_PR_SANDPUMP_OPERATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_SANDPUMP_OPERATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  SandpumpOperationRecordDetail
     public partial class PRSandpumpOperationRecordDetailMap :APTEntityBaseMap<T_PR_SANDPUMP_OPERATION_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_SANDPUMP_OPERATION_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SurveyRecord
     public partial class PRSurveyRecordMap :APTEntityBaseMap<T_PR_SURVEY_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_SURVEY_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.PLACE).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  SurveyRecordDetail
     public partial class PRSurveyRecordDetailMap :APTEntityBaseMap<T_PR_SURVEY_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_SURVEY_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.SURVEY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TYPE).HasMaxLength(500);
builder.Property(t => t.PARAMETER).HasMaxLength(500);
builder.Property(t => t.VALUE).HasMaxLength(500);
builder.Property(t => t.ACTUAL_VALUE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SurveyRecordFile
     public partial class PRSurveyRecordFileMap :APTEntityBaseMap<T_PR_SURVEY_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_SURVEY_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SURVEY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SurveyRecordSet
     public partial class PRSurveyRecordSetMap :APTEntityBaseMap<T_PR_SURVEY_RECORD_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_SURVEY_RECORD_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TYPE).HasMaxLength(500);
builder.Property(t => t.PARAMETER).HasMaxLength(500);
builder.Property(t => t.VALUE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SurveyRecordUser
     public partial class PRSurveyRecordUserMap :APTEntityBaseMap<T_PR_SURVEY_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_SURVEY_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.SURVEY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ThousandpumpOperationRecord
     public partial class PRThousandpumpOperationRecordMap :APTEntityBaseMap<T_PR_THOUSANDPUMP_OPERATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_THOUSANDPUMP_OPERATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  ThousandpumpOperationRecordDetail
     public partial class PRThousandpumpOperationRecordDetailMap :APTEntityBaseMap<T_PR_THOUSANDPUMP_OPERATION_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_THOUSANDPUMP_OPERATION_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.DESCRIPTION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TungpreOperationRecord
     public partial class PRTungpreOperationRecordMap :APTEntityBaseMap<T_PR_TUNGPRE_OPERATION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_TUNGPRE_OPERATION_RECORD> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  TungpreOperationRecordDrug
     public partial class PRTungpreOperationRecordDrugMap :APTEntityBaseMap<T_PR_TUNGPRE_OPERATION_RECORD_DRUG>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_TUNGPRE_OPERATION_RECORD_DRUG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Drugs).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.QTY).HasMaxLength(500);
builder.Property(t => t.ACERAGE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TungpreOperationRecordMeas
     public partial class PRTungpreOperationRecordMeasMap :APTEntityBaseMap<T_PR_TUNGPRE_OPERATION_RECORD_MEAS>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_TUNGPRE_OPERATION_RECORD_MEAS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Meas).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TIME).HasMaxLength(500);
builder.Property(t => t.TEMP).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TungpreOperationRecordSeri
     public partial class PRTungpreOperationRecordSeriMap :APTEntityBaseMap<T_PR_TUNGPRE_OPERATION_RECORD_SERI>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_TUNGPRE_OPERATION_RECORD_SERI> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Seris).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.TIME).HasMaxLength(500);
builder.Property(t => t.STRONG).HasMaxLength(500);
builder.Property(t => t.DETAIL).HasMaxLength(500);
builder.Property(t => t.RATE).HasMaxLength(500);
builder.Property(t => t.SODA_START).HasMaxLength(500);
builder.Property(t => t.SODA_TRAFFIC).HasMaxLength(500);
builder.Property(t => t.INHI_START).HasMaxLength(500);
builder.Property(t => t.INHI_TRAFFIC).HasMaxLength(500);
builder.Property(t => t.SAPO_START).HasMaxLength(500);
builder.Property(t => t.SAPO_TRAFFIC).HasMaxLength(500);
builder.Property(t => t.SAPO_SCAVENG).HasMaxLength(500);
builder.Property(t => t.BUBBLE_ROUGH).HasMaxLength(500);
builder.Property(t => t.BUBBLE_SCAVENG1).HasMaxLength(500);
builder.Property(t => t.BUBBLE_SCAVENG2).HasMaxLength(500);
builder.Property(t => t.PUMP_ROUGH).HasMaxLength(500);
builder.Property(t => t.PUMP_SCAVENG1).HasMaxLength(500);
builder.Property(t => t.PUMP_SCAVENG2).HasMaxLength(500);
builder.Property(t => t.AIRPRESS_ROUGH).HasMaxLength(500);
builder.Property(t => t.AIRPRESS_SCAVENG1).HasMaxLength(500);
builder.Property(t => t.AIRPRESS_SCAVENG2).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TungpreOperationRecordTarg
     public partial class PRTungpreOperationRecordTargMap :APTEntityBaseMap<T_PR_TUNGPRE_OPERATION_RECORD_TARG>
     {   
        public override void Configure(EntityTypeBuilder<T_PR_TUNGPRE_OPERATION_RECORD_TARG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Targs).HasForeignKey(t => t.OPERATION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NO).HasMaxLength(500);
builder.Property(t => t.UNDRESS_ORE).HasMaxLength(500);
builder.Property(t => t.COARSE_FINE).HasMaxLength(500);
builder.Property(t => t.TAILING).HasMaxLength(500);
builder.Property(t => t.RECOVERY_RATE).HasMaxLength(500);
builder.Property(t => t.ENRICHMENT).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AnnualMonotorSummary
     public partial class PTAnnualMonotorSummaryMap :APTEntityBaseMap<T_PT_ANNUAL_MONOTOR_SUMMARY>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ANNUAL_MONOTOR_SUMMARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.YEAR).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AnnualMonotorSummaryDetail
     public partial class PTAnnualMonotorSummaryDetailMap :APTEntityBaseMap<T_PT_ANNUAL_MONOTOR_SUMMARY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ANNUAL_MONOTOR_SUMMARY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MonitorSummary).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.MONITOR_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AnnualMonotorSummaryDetailContent
     public partial class PTAnnualMonotorSummaryDetailContentMap :APTEntityBaseMap<T_PT_ANNUAL_MONOTOR_SUMMARY_DETAIL_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ANNUAL_MONOTOR_SUMMARY_DETAIL_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SummaryDetail).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.MONOTOR_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.METHOD).HasMaxLength(500);
builder.Property(t => t.CONTENT).HasMaxLength(500);
builder.Property(t => t.MEASURES).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AssessmentPlanAudit
     public partial class PTAssessmentPlanAuditMap :APTEntityBaseMap<T_PT_ASSESSMENT_PLAN_AUDIT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ASSESSMENT_PLAN_AUDIT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Indeicator).WithMany().HasForeignKey(t => t.INDICATOR_FORMULATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  AssessmentPlanAuditDetail
     public partial class PTAssessmentPlanAuditDetailMap :APTEntityBaseMap<T_PT_ASSESSMENT_PLAN_AUDIT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ASSESSMENT_PLAN_AUDIT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AssessmentPlan).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.ASSESSMENT_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Ignore(t => t.NAME);
builder.Property(t => t.CHARGE_NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AssessmentPlanAuditDetailContent
     public partial class PTAssessmentPlanAuditDetailContentMap :APTEntityBaseMap<T_PT_ASSESSMENT_PLAN_AUDIT_DETAIL_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ASSESSMENT_PLAN_AUDIT_DETAIL_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AuditDetail).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.PLAN_AUDIT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.METHOD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AssessmentPlanAuditFile
     public partial class PTAssessmentPlanAuditFileMap :APTEntityBaseMap<T_PT_ASSESSMENT_PLAN_AUDIT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ASSESSMENT_PLAN_AUDIT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AssessmentPlan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.ASSESSMENT_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AssessmentPlanAuditTempDetail
     public partial class PTAssessmentPlanAuditTempDetailMap :APTEntityBaseMap<T_PT_ASSESSMENT_PLAN_AUDIT_TEMP_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ASSESSMENT_PLAN_AUDIT_TEMP_DETAIL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Property(t => t.CHARGE_NAME).HasMaxLength(500);
builder.Ignore(t => t.NAME);
builder.Ignore(t => t.SCORE);
builder.Ignore(t => t.METHOD);
		} 
     }
	 #endregion
					#region  AssessmentPlanAuditTempDetailContent
     public partial class PTAssessmentPlanAuditTempDetailContentMap :APTEntityBaseMap<T_PT_ASSESSMENT_PLAN_AUDIT_TEMP_DETAIL_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_ASSESSMENT_PLAN_AUDIT_TEMP_DETAIL_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AuditTempDetail).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.PLAN_AUDIT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.METHOD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CollectRequirements
     public partial class PTCollectRequirementsMap :APTEntityBaseMap<T_PT_COLLECT_REQUIREMENTS>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_COLLECT_REQUIREMENTS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  FileType
     public partial class PTFileTypeMap :APTEntityBaseMap<T_PT_FILE_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_FILE_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  FormulateRequirements
     public partial class PTFormulateRequirementsMap :APTEntityBaseMap<T_PT_FORMULATE_REQUIREMENTS>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_FORMULATE_REQUIREMENTS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  GoalsAndTarget
     public partial class PTGoalsAndTargetMap :APTEntityBaseMap<T_PT_GOALS_AND_TARGET>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_GOALS_AND_TARGET> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Indeicator).WithMany(t=>t.Nav_Goals).HasForeignKey(t => t.INDICATOR_FORMULATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  IndicatorFormulation
     public partial class PTIndicatorFormulationMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.Property(t => t.PROFILE).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  IndicatorFormulationDepartment
     public partial class PTIndicatorFormulationDepartmentMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.HasOne(t => t.Nav_Indeicator).WithMany().HasForeignKey(t => t.INDICATOR_FORMULATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  IndicatorFormulationDepartmentDetail
     public partial class PTIndicatorFormulationDepartmentDetailMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_DEPARTMENT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_DEPARTMENT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IndeicatorDepartment).WithMany(t=>t.Nav_DepartmentDetail).HasForeignKey(t => t.INDICATOR_FORMULATION_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IndicatorFormulationDepartmentDetailContent
     public partial class PTIndicatorFormulationDepartmentDetailContentMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_DEPARTMENT_DETAIL_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_DEPARTMENT_DETAIL_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DepartmentDetail).WithMany(t=>t.Nav_DetailContent).HasForeignKey(t => t.INDICATOR_FORMULATION_DEPARTMENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  IndicatorFormulationDepartmentFile
     public partial class PTIndicatorFormulationDepartmentFileMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_DEPARTMENT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_DEPARTMENT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IndeicatorDepartment).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.INDICATOR_FORMULATION_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IndicatorFormulationDepartmentTeam
     public partial class PTIndicatorFormulationDepartmentTeamMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_DEPARTMENT_TEAM>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_DEPARTMENT_TEAM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IndeicatorDepartment).WithMany(t=>t.Nav_TeamDetail).HasForeignKey(t => t.INDICATOR_FORMULATION_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IndicatorFormulationDepartmentTeamContent
     public partial class PTIndicatorFormulationDepartmentTeamContentMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_DEPARTMENT_TEAM_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_DEPARTMENT_TEAM_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TeamDetail).WithMany(t=>t.Nav_DetailContent).HasForeignKey(t => t.INDICATOR_FORMULATION_DEPARTMENT_TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  IndicatorFormulationFile
     public partial class PTIndicatorFormulationFileMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Indeicator).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.INDICATOR_FORMULATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IndicatorFormulationPlanFile
     public partial class PTIndicatorFormulationPlanFileMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_PLAN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_PLAN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Indeicator).WithMany(t=>t.Nav_PlanFiles).HasForeignKey(t => t.INDICATOR_FORMULATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IndicatorFormulationPlanResources
     public partial class PTIndicatorFormulationPlanResourcesMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_PLAN_RESOURCES>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_PLAN_RESOURCES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Indeicator).WithMany(t=>t.Nav_PlanResources).HasForeignKey(t => t.INDICATOR_FORMULATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Resources).WithMany().HasForeignKey(t => t.RESOURCES_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IndicatorFormulationRequirements
     public partial class PTIndicatorFormulationRequirementsMap :APTEntityBaseMap<T_PT_INDICATOR_FORMULATION_REQUIREMENTS>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INDICATOR_FORMULATION_REQUIREMENTS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Indeicator).WithMany(t=>t.Nav_Formulates).HasForeignKey(t => t.INDICATOR_FORMULATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Formulate).WithMany().HasForeignKey(t => t.FORMULATE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IntentionalGuidelines
     public partial class PTIntentionalGuidelinesMap :APTEntityBaseMap<T_PT_INTENTIONAL_GUIDELINES>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_INTENTIONAL_GUIDELINES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MonitorAssessment
     public partial class PTMonitorAssessmentMap :APTEntityBaseMap<T_PT_MONITOR_ASSESSMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_MONITOR_ASSESSMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.CONTEXT);
		} 
     }
	 #endregion
					#region  MonitorAssessmentDetail
     public partial class PTMonitorAssessmentDetailMap :APTEntityBaseMap<T_PT_MONITOR_ASSESSMENT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_MONITOR_ASSESSMENT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MonitorAssessment).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.MONITOR_ASSESSMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.SCORE);
		} 
     }
	 #endregion
					#region  MonitorAssessmentDetailContent
     public partial class PTMonitorAssessmentDetailContentMap :APTEntityBaseMap<T_PT_MONITOR_ASSESSMENT_DETAIL_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_MONITOR_ASSESSMENT_DETAIL_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MonitorDetail).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.MONITOR_ASSESSMENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.METHOD).HasMaxLength(500);
builder.Property(t => t.CONTENT).HasMaxLength(500);
builder.Property(t => t.MEASURES).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MonitorAssessmentUser
     public partial class PTMonitorAssessmentUserMap :APTEntityBaseMap<T_PT_MONITOR_ASSESSMENT_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_MONITOR_ASSESSMENT_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Monitor).WithMany(t=>t.Nav_MonitorUser).HasForeignKey(t => t.MONITOR_ASSESSMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanResources
     public partial class PTPlanResourcesMap :APTEntityBaseMap<T_PT_PLAN_RESOURCES>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_PLAN_RESOURCES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafetyPolicySurvey
     public partial class PTSafetyPolicySurveyMap :APTEntityBaseMap<T_PT_SAFETY_POLICY_SURVEY>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_SAFETY_POLICY_SURVEY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Guidelines).WithMany().HasForeignKey(t => t.GUIDELINES_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.IS_AGREE);
builder.Ignore(t => t.OTHER_SUGGESTIONS);
builder.Ignore(t => t.IntentionalGuids);
builder.Ignore(t => t.RATE);
builder.Ignore(t => t.ALL_USER_COUNT);
builder.Ignore(t => t.USER_COUNT);
builder.Ignore(t => t.USER_RATE);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  SafetyPolicySurveyCollect
     public partial class PTSafetyPolicySurveyCollectMap :APTEntityBaseMap<T_PT_SAFETY_POLICY_SURVEY_COLLECT>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_SAFETY_POLICY_SURVEY_COLLECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafetyPolicy).WithMany(t=>t.Nav_Collects).HasForeignKey(t => t.SAFETY_POLICY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Collect).WithMany().HasForeignKey(t => t.COLLECT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetyPolicySurveyFeedback
     public partial class PTSafetyPolicySurveyFeedbackMap :APTEntityBaseMap<T_PT_SAFETY_POLICY_SURVEY_FEEDBACK>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_SAFETY_POLICY_SURVEY_FEEDBACK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafetyPolicy).WithMany(t=>t.Nav_Feedbacks).HasForeignKey(t => t.SAFETY_POLICY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Guidelines).WithMany().HasForeignKey(t => t.GUIDELINES_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.OTHER_SUGGESTIONS).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafetyPolicySurveyRange
     public partial class PTSafetyPolicySurveyRangeMap :APTEntityBaseMap<T_PT_SAFETY_POLICY_SURVEY_RANGE>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_SAFETY_POLICY_SURVEY_RANGE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafetyPolicy).WithMany(t=>t.Nav_Ranges).HasForeignKey(t => t.SAFETY_POLICY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TimeSet
     public partial class PTTimeSetMap :APTEntityBaseMap<T_PT_TIME_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_PT_TIME_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DeviceBase).WithMany().HasForeignKey(t => t.DEVICE_BASE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Device).WithMany().HasForeignKey(t => t.DEVICE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Post
     public partial class SCPostMap :APTEntityBaseMap<T_SC_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_POST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Depost).WithMany().HasForeignKey(t => t.DEPOST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PostDepost
     public partial class SCPostDepostMap :APTEntityBaseMap<T_SC_POST_DEPOST>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_POST_DEPOST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Post).WithMany(t=>t.Nav_Posts).HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Depost).WithMany().HasForeignKey(t => t.DEPOST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PostSafePdtTemplateFile
     public partial class SCPostSafePdtTemplateFileMap :APTEntityBaseMap<T_SC_POST_SAFE_PDT_TEMPLATE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_POST_SAFE_PDT_TEMPLATE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Post).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_File).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Department
     public partial class SCDepartmentMap :APTEntityBaseMap<T_SC_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Post).WithMany(t=>t.Nav_Depts).HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentPost
     public partial class SCDepartmentPostMap :APTEntityBaseMap<T_SC_DEPARTMENT_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_DEPARTMENT_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Dept).WithMany(t=>t.Nav_Posts).HasForeignKey(t => t.DEPT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Depost).WithMany().HasForeignKey(t => t.DEPOST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DocumentLibrary
     public partial class SCDocumentLibraryMap :APTEntityBaseMap<T_SC_DOCUMENT_LIBRARY>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_DOCUMENT_LIBRARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MODULE).HasMaxLength(200);
builder.Property(t => t.FORM).HasMaxLength(200);
builder.Property(t => t.FILE_NAME).HasMaxLength(200);
builder.Property(t => t.VALUE_FIELD).HasMaxLength(200);
builder.Property(t => t.FILE_TYPE).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  DocumentLibraryDetail
     public partial class SCDocumentLibraryDetailMap :APTEntityBaseMap<T_SC_DOCUMENT_LIBRARY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_DOCUMENT_LIBRARY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.DOCUMENT_LIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DocumentLibraryDetailFile
     public partial class SCDocumentLibraryDetailFileMap :APTEntityBaseMap<T_SC_DOCUMENT_LIBRARY_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_DOCUMENT_LIBRARY_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DOCUMENT_LIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  StandardCreate
     public partial class SCStandardCreateMap :APTEntityBaseMap<T_SC_STANDARD_CREATE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_STANDARD_CREATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REASON).HasMaxLength(500);
builder.Property(t => t.PROFILE).HasMaxLength(500);
builder.Property(t => t.FORMULATE).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.NOTE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_Details);
builder.Ignore(t => t.VERSION_NAME);
builder.Property(t => t.FILE_NAME).HasMaxLength(500);
builder.Property(t => t.FILE_CONTENT).HasMaxLength(5000);
builder.Property(t => t.LAW_NAME).HasMaxLength(500);
builder.Ignore(t => t.IS_OVERTIME);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  StandardCreateFile
     public partial class SCStandardCreateFileMap :APTEntityBaseMap<T_SC_STANDARD_CREATE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SC_STANDARD_CREATE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Standard).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.STANDARD_CREATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  NewUsers
     public partial class SENewUsersMap :APTEntityBaseMap<T_SE_NEW_USERS>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_NEW_USERS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAINNING_ADDR).HasMaxLength(100);
builder.Property(t => t.TRAINNING_TIME).HasMaxLength(10);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Content).WithMany().HasForeignKey(t => t.CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  NewUsersFile
     public partial class SENewUsersFileMap :APTEntityBaseMap<T_SE_NEW_USERS_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_NEW_USERS_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_NewUser).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.NEW_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  NewUserDetail
     public partial class SENewUserDetailMap :APTEntityBaseMap<T_SE_NEW_USER_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_NEW_USER_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_NewUser).WithMany(t=>t.Nav_NewUserDetail).HasForeignKey(t => t.EDU_CARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(30);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ID_CARD_NUMBER).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.USER_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.USER_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SCORE).HasMaxLength(10);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.HasOne(t => t.Nav_DepartmentNext).WithMany().HasForeignKey(t => t.NEXT_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  NewUserDetailFile
     public partial class SENewUserDetailFileMap :APTEntityBaseMap<T_SE_NEW_USER_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_NEW_USER_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_UserDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.USER_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  NewUserDetailPaper
     public partial class SENewUserDetailPaperMap :APTEntityBaseMap<T_SE_NEW_USER_DETAIL_PAPER>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_NEW_USER_DETAIL_PAPER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Papers).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Text).WithMany(t=>t.Nav_ListPaper).HasForeignKey(t => t.TEXT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Test).WithMany().HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeSurvey
     public partial class SESafeSurveyMap :APTEntityBaseMap<T_SE_SAFE_SURVEY>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_SAFE_SURVEY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(300);
builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LaunchUser).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SAFE_USER_IDS).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.IS_DOWN);
		} 
     }
	 #endregion
					#region  SafeSurveyListDepartment
     public partial class SESafeSurveyListDepartmentMap :APTEntityBaseMap<T_SE_SAFE_SURVEY_LIST_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_SAFE_SURVEY_LIST_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Safe).WithMany(t=>t.Nav_JoinDepartment).HasForeignKey(t => t.SAFE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeSurveyListFile
     public partial class SESafeSurveyListFileMap :APTEntityBaseMap<T_SE_SAFE_SURVEY_LIST_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_SAFE_SURVEY_LIST_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Safe).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SAFE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeSurveyListPaper
     public partial class SESafeSurveyListPaperMap :APTEntityBaseMap<T_SE_SAFE_SURVEY_LIST_PAPER>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_SAFE_SURVEY_LIST_PAPER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Safe).WithMany(t=>t.Nav_Papers).HasForeignKey(t => t.SAFE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Test).WithMany().HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeSurveyListPoint
     public partial class SESafeSurveyListPointMap :APTEntityBaseMap<T_SE_SAFE_SURVEY_LIST_POINT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_SAFE_SURVEY_LIST_POINT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Safe).WithMany(t=>t.Nav_Points).HasForeignKey(t => t.SAFE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Point).WithMany().HasForeignKey(t => t.POINT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainSurvey
     public partial class SETrainSurveyMap :APTEntityBaseMap<T_SE_TRAIN_SURVEY>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_SURVEY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LaunchUser).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SAFE_USER_IDS).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.Ignore(t => t.IS_DOWN);
		} 
     }
	 #endregion
					#region  TrainSurveyListDemand
     public partial class SETrainSurveyListDemandMap :APTEntityBaseMap<T_SE_TRAIN_SURVEY_LIST_DEMAND>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_SURVEY_LIST_DEMAND> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Survey).WithMany(t=>t.Nav_Demands).HasForeignKey(t => t.SURVEY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.OTHER).HasMaxLength(200);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  TrainSurveyListDemandItem
     public partial class SETrainSurveyListDemandItemMap :APTEntityBaseMap<T_SE_TRAIN_SURVEY_LIST_DEMAND_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_SURVEY_LIST_DEMAND_ITEM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_List).WithMany(t=>t.Nav_Items).HasForeignKey(t => t.LIST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DEMAND).WithMany().HasForeignKey(t => t.DEMAND_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainSurveyListDepartment
     public partial class SETrainSurveyListDepartmentMap :APTEntityBaseMap<T_SE_TRAIN_SURVEY_LIST_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_SURVEY_LIST_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Survey).WithMany(t=>t.Nav_JoinDepartment).HasForeignKey(t => t.SURVEY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainSurveyListPoint
     public partial class SETrainSurveyListPointMap :APTEntityBaseMap<T_SE_TRAIN_SURVEY_LIST_POINT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_SURVEY_LIST_POINT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Survey).WithMany(t=>t.Nav_Points).HasForeignKey(t => t.SURVEY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Point).WithMany().HasForeignKey(t => t.POINT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  YearTrainPlan
     public partial class SEYearTrainPlanMap :APTEntityBaseMap<T_SE_YEAR_TRAIN_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_YEAR_TRAIN_PLAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LaunchUser).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PLAN_NAME).HasMaxLength(100);
builder.Property(t => t.IMPLEMENT_REQUIREMENT).HasMaxLength(300);
builder.Property(t => t.TRAIN_GOAL).HasMaxLength(200);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  YearTrainPlanDetail
     public partial class SEYearTrainPlanDetailMap :APTEntityBaseMap<T_SE_YEAR_TRAIN_PLAN_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_YEAR_TRAIN_PLAN_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_YearTrainPlan).WithMany(t=>t.Nav_YearTrainPlanDetail).HasForeignKey(t => t.YEAR_TRAIN_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TrainTypeEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.OBJECT).HasMaxLength(100);
builder.Property(t => t.ADDRESS).HasMaxLength(100);
builder.Property(t => t.TRAIN_MODEL).HasMaxLength(50);
builder.Property(t => t.TEACHING_MATERIAL).HasMaxLength(300);
builder.Property(t => t.TEACHER).HasMaxLength(100);
builder.HasOne(t => t.Nav_TrainCheckTypeEnum).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ResponsibilityDep).WithMany().HasForeignKey(t => t.RESPONSIBILITY_DEP_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ResponsibilityUser).WithMany().HasForeignKey(t => t.RESPONSIBILITY_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  YearTrainPlanContent
     public partial class SEYearTrainPlanContentMap :APTEntityBaseMap<T_SE_YEAR_TRAIN_PLAN_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_YEAR_TRAIN_PLAN_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_YearTrainPlanDetail).WithMany(t=>t.Nav_YearTrainPlanContent).HasForeignKey(t => t.YEAR_TRAIN_PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TestEnumPoint).WithMany().HasForeignKey(t => t.CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  YearTrainPlanFile
     public partial class SEYearTrainPlanFileMap :APTEntityBaseMap<T_SE_YEAR_TRAIN_PLAN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_YEAR_TRAIN_PLAN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_YearTrainPlan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.YEAR_TRAIN_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  YearTrainPlanDepartment
     public partial class SEYearTrainPlanDepartmentMap :APTEntityBaseMap<T_SE_YEAR_TRAIN_PLAN_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_YEAR_TRAIN_PLAN_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_YearTrainPlan).WithMany(t=>t.Nav_YearTrainPlanDepartment).HasForeignKey(t => t.YEAR_TRAIN_PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepTrainPlan
     public partial class SEDepTrainPlanMap :APTEntityBaseMap<T_SE_DEP_TRAIN_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_DEP_TRAIN_PLAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LaunchUser).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SAFE_USER_IDS).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  DepTrainPlanDetail
     public partial class SEDepTrainPlanDetailMap :APTEntityBaseMap<T_SE_DEP_TRAIN_PLAN_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_DEP_TRAIN_PLAN_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DepTrainPlan).WithMany(t=>t.Nav_DepTrainPlanDetail).HasForeignKey(t => t.DEP_TRAIN_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TrainTypeEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(300);
builder.Property(t => t.OBJECT).HasMaxLength(200);
builder.Property(t => t.ADDRESS).HasMaxLength(100);
builder.Property(t => t.TRAIN_MODEL).HasMaxLength(50);
builder.Property(t => t.TEACHING_MATERIAL).HasMaxLength(300);
builder.Property(t => t.TEACHER).HasMaxLength(100);
builder.HasOne(t => t.Nav_TrainCheckTypeEnum).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepTrainPlanContent
     public partial class SEDepTrainPlanContentMap :APTEntityBaseMap<T_SE_DEP_TRAIN_PLAN_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_DEP_TRAIN_PLAN_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DepTrainPlanDetail).WithMany(t=>t.Nav_DepTrainPlanContent).HasForeignKey(t => t.DEP_TRAIN_PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TestEnumPoint).WithMany().HasForeignKey(t => t.CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainNotify
     public partial class SETrainNotifyMap :APTEntityBaseMap<T_SE_TRAIN_NOTIFY>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_NOTIFY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LaunchUser).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_TrainType).WithMany().HasForeignKey(t => t.TRAIN_TYPE).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TRAIN_ADDR).HasMaxLength(100);
builder.Property(t => t.TRAIN_TEACHER).HasMaxLength(100);
builder.HasOne(t => t.Nav_UserTeacher).WithMany().HasForeignKey(t => t.USER_ID_TEACHER).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TRAIN_MODEL).HasMaxLength(50);
builder.Property(t => t.TRAIN_PLAN).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.HasOne(t => t.Nav_RecordUser).WithMany().HasForeignKey(t => t.RECORD_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TrainDepartment).WithMany().HasForeignKey(t => t.TRAIN_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainNotifyFile
     public partial class SETrainNotifyFileMap :APTEntityBaseMap<T_SE_TRAIN_NOTIFY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_NOTIFY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notify).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.NOTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainNotifyContentRel
     public partial class SETrainNotifyContentRelMap :APTEntityBaseMap<T_SE_TRAIN_NOTIFY_CONTENT_REL>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_NOTIFY_CONTENT_REL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notify).WithMany(t=>t.Nav_TrainContentList).HasForeignKey(t => t.NOTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Point).WithMany().HasForeignKey(t => t.POINT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainNotifyPersons
     public partial class SETrainNotifyPersonsMap :APTEntityBaseMap<T_SE_TRAIN_NOTIFY_PERSONS>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_NOTIFY_PERSONS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notify).WithMany(t=>t.Nav_TrainUserList).HasForeignKey(t => t.NOTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.LEAVE_REASON).HasMaxLength(200);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.POST_NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  TrainRecord
     public partial class SETrainRecordMap :APTEntityBaseMap<T_SE_TRAIN_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notify).WithMany().HasForeignKey(t => t.NOTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
builder.Property(t => t.REASONCANCLE).HasMaxLength(200);
builder.HasOne(t => t.Nav_UserApro).WithMany().HasForeignKey(t => t.USER_ID_APPROVE).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainRecordFile
     public partial class SETrainRecordFileMap :APTEntityBaseMap<T_SE_TRAIN_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainRecordPaper
     public partial class SETrainRecordPaperMap :APTEntityBaseMap<T_SE_TRAIN_RECORD_PAPER>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_PAPER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Text).WithMany(t=>t.Nav_ListPaper).HasForeignKey(t => t.TEXT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RecordUser).WithMany().HasForeignKey(t => t.RECORD_UUSER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Papers).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Test).WithMany().HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.FILE_PATH).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  TrainRecordUser
     public partial class SETrainRecordUserMap :APTEntityBaseMap<T_SE_TRAIN_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.POST_NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  TrainRecordUserFile
     public partial class SETrainRecordUserFileMap :APTEntityBaseMap<T_SE_TRAIN_RECORD_USER_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_USER_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RecordUser).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainingEffectEvaluation
     public partial class SETrainingEffectEvaluationMap :APTEntityBaseMap<T_SE_TRAINING_EFFECT_EVALUATION>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAINING_EFFECT_EVALUATION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.FEEDBACK_RATIO).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  TrainingEffectEvaluationOpinion
     public partial class SETrainingEffectEvaluationOpinionMap :APTEntityBaseMap<T_SE_TRAINING_EFFECT_EVALUATION_OPINION>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAINING_EFFECT_EVALUATION_OPINION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TrainingEffect).WithMany(t=>t.Nav_OpinionList).HasForeignKey(t => t.TRAINING_EFFECT_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.OPINION_CONTENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TrainingEffectEvaluationEnd
     public partial class SETrainingEffectEvaluationEndMap :APTEntityBaseMap<T_SE_TRAINING_EFFECT_EVALUATION_END>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAINING_EFFECT_EVALUATION_END> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TrainingEffect).WithMany(t=>t.Nav_ResultList).HasForeignKey(t => t.TRAINING_EFFECT_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.GOOD_RATION).HasMaxLength(100);
builder.Property(t => t.BETTER_RATION).HasMaxLength(100);
builder.Property(t => t.NORMAL_RATION).HasMaxLength(100);
builder.Property(t => t.BAD_RATION).HasMaxLength(100);
builder.HasOne(t => t.Nav_Subject).WithMany().HasForeignKey(t => t.SUBJECT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainingEffectEvaluationSurvey
     public partial class SETrainingEffectEvaluationSurveyMap :APTEntityBaseMap<T_SE_TRAINING_EFFECT_EVALUATION_SURVEY>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAINING_EFFECT_EVALUATION_SURVEY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.OPINION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  TrainingEffectEvaluationSurveyResults
     public partial class SETrainingEffectEvaluationSurveyResultsMap :APTEntityBaseMap<T_SE_TRAINING_EFFECT_EVALUATION_SURVEY_RESULTS>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAINING_EFFECT_EVALUATION_SURVEY_RESULTS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TrainingEffectSurvey).WithMany(t=>t.Nav_ResultList).HasForeignKey(t => t.TRAINING_EFFECT_EVALUATION_SURVEY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Subject).WithMany().HasForeignKey(t => t.SUBJECT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ThreeLevelSafeEduCard
     public partial class SEThreeLevelSafeEduCardMap :APTEntityBaseMap<T_SE_THREE_LEVEL_SAFE_EDU_CARD>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_THREE_LEVEL_SAFE_EDU_CARD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_LaunchUser).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ID_CARD_NUMBER).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.IS_OVERTIME);
		} 
     }
	 #endregion
					#region  ThreeLevelSafeTrainRecord
     public partial class SEThreeLevelSafeTrainRecordMap :APTEntityBaseMap<T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EDUCard).WithMany(t=>t.Nav_TrainRecordList).HasForeignKey(t => t.EDU_CARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TAINNING_ADDR).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TRAINNING_TIME).HasMaxLength(10);
builder.Property(t => t.TEACHER).HasMaxLength(50);
builder.Property(t => t.TRAIN_MODEL).HasMaxLength(50);
builder.HasOne(t => t.Nav_Content).WithMany().HasForeignKey(t => t.CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SCORE).HasMaxLength(10);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  ThreeLevelSafeTrainRecordFile
     public partial class SEThreeLevelSafeTrainRecordFileMap :APTEntityBaseMap<T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TrainRecord).WithMany(t=>t.Nav_TrainRecordFile).HasForeignKey(t => t.TRAIN_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ThreeLevelSafeTrainRecordSignatureFile
     public partial class SEThreeLevelSafeTrainRecordSignatureFileMap :APTEntityBaseMap<T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD_SIGNATURE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_THREE_LEVEL_SAFE_TRAIN_RECORD_SIGNATURE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TrainRecord).WithMany(t=>t.Nav_TrainSignatureFile).HasForeignKey(t => t.TRAIN_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CertificateType
     public partial class SECertificateTypeMap :APTEntityBaseMap<T_SE_CERTIFICATE_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_CERTIFICATE_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  Seconfig
     public partial class SESeconfigMap :APTEntityBaseMap<T_SE_SECONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_SECONFIG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApproveRole).WithMany().HasForeignKey(t => t.APPROVAL_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Coursewearlibrary
     public partial class SECoursewearlibraryMap :APTEntityBaseMap<T_SE_COURSEWEARLIBRARY>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_COURSEWEARLIBRARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.CODE).HasMaxLength(30);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENTID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_FileDB).WithMany().HasForeignKey(t => t.FILE_DB_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.FILE_PATH).HasMaxLength(200);
builder.Property(t => t.FILENAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  CoursewearlibraryDetail
     public partial class SECoursewearlibraryDetailMap :APTEntityBaseMap<T_SE_COURSEWEARLIBRARY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_COURSEWEARLIBRARY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Cour).WithMany(t=>t.Nav_Detail).HasForeignKey(t => t.EDU_CARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Test).WithMany().HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.NAME);
builder.Ignore(t => t.TYPE);
builder.Ignore(t => t.OPTION_A);
builder.Ignore(t => t.OPTION_B);
builder.Ignore(t => t.OPTION_C);
builder.Ignore(t => t.OPTION_D);
builder.Ignore(t => t.OPTION_E);
builder.Ignore(t => t.ANSWER);
builder.Ignore(t => t.ANSWERSHOW);
		} 
     }
	 #endregion
					#region  CoursewearlibraryFile
     public partial class SECoursewearlibraryFileMap :APTEntityBaseMap<T_SE_COURSEWEARLIBRARY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_COURSEWEARLIBRARY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Cour).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.COURSEWEARLIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  NewUsersTeacher
     public partial class SENewUsersTeacherMap :APTEntityBaseMap<T_SE_NEW_USERS_TEACHER>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_NEW_USERS_TEACHER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Users).WithMany(t=>t.Nav_Teachers).HasForeignKey(t => t.NEW_USERS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  NewUserDetailText
     public partial class SENewUserDetailTextMap :APTEntityBaseMap<T_SE_NEW_USER_DETAIL_TEXT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_NEW_USER_DETAIL_TEXT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RenewalTrain
     public partial class SERenewalTrainMap :APTEntityBaseMap<T_SE_RENEWAL_TRAIN>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_RENEWAL_TRAIN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CertificateType).WithMany().HasForeignKey(t => t.CERTIFICATE_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CERTIFICATE_NAME).HasMaxLength(200);
builder.Property(t => t.CERTIFICATE_CODE).HasMaxLength(100);
builder.Property(t => t.CERTIFICATE_AUTHORITY).HasMaxLength(100);
builder.Ignore(t => t.EXPIRY_DATE_EDIT);
		} 
     }
	 #endregion
					#region  RenewalTrainFile
     public partial class SERenewalTrainFileMap :APTEntityBaseMap<T_SE_RENEWAL_TRAIN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_RENEWAL_TRAIN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Renewal).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RENEWALD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeSurveyUser
     public partial class SESafeSurveyUserMap :APTEntityBaseMap<T_SE_SAFE_SURVEY_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_SAFE_SURVEY_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Survey).WithMany(t=>t.Nav_ListUsers).HasForeignKey(t => t.SURVEY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Test
     public partial class SETestMap :APTEntityBaseMap<T_SE_TEST>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TEST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.OPTION_A).HasMaxLength(500);
builder.Property(t => t.OPTION_B).HasMaxLength(500);
builder.Property(t => t.OPTION_C).HasMaxLength(500);
builder.Property(t => t.OPTION_D).HasMaxLength(500);
builder.Property(t => t.OPTION_E).HasMaxLength(500);
builder.Ignore(t => t.ANSWERSHOW);
builder.Ignore(t => t.STRPOINT);
builder.Property(t => t.TRAINNAME).HasMaxLength(500);
builder.Property(t => t.MineType).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  TestEnumPoint
     public partial class SETestEnumPointMap :APTEntityBaseMap<T_SE_TEST_ENUM_POINT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TEST_ENUM_POINT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  TestListPoint
     public partial class SETestListPointMap :APTEntityBaseMap<T_SE_TEST_LIST_POINT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TEST_LIST_POINT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Test).WithMany(t=>t.Nav_Points).HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Point).WithMany().HasForeignKey(t => t.POINT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TestListPost
     public partial class SETestListPostMap :APTEntityBaseMap<T_SE_TEST_LIST_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TEST_LIST_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Test).WithMany(t=>t.Nav_Posts).HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ThreeLevelSafeContent
     public partial class SEThreeLevelSafeContentMap :APTEntityBaseMap<T_SE_THREE_LEVEL_SAFE_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_THREE_LEVEL_SAFE_CONTENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  TrainingSurveySubject
     public partial class SETrainingSurveySubjectMap :APTEntityBaseMap<T_SE_TRAINING_SURVEY_SUBJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAINING_SURVEY_SUBJECT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  TrainCheckTypeEnum
     public partial class SETrainCheckTypeEnumMap :APTEntityBaseMap<T_SE_TRAIN_CHECK_TYPE_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_CHECK_TYPE_ENUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(300);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  TrainDemandEnum
     public partial class SETrainDemandEnumMap :APTEntityBaseMap<T_SE_TRAIN_DEMAND_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_DEMAND_ENUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  TrainNotifyCoursewearlibrary
     public partial class SETrainNotifyCoursewearlibraryMap :APTEntityBaseMap<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_NOTIFY_COURSEWEARLIBRARY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notify).WithMany(t=>t.Nav_ListCour).HasForeignKey(t => t.NOTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Cour).WithMany().HasForeignKey(t => t.COURSEWEARLIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainPlan
     public partial class SETrainPlanMap :APTEntityBaseMap<T_SE_TRAIN_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_PLAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PLAN_NAME).HasMaxLength(200);
builder.Property(t => t.GUIDE_PRINCIPLE).HasMaxLength(500);
builder.Property(t => t.TRAIN_REQUIREMENT).HasMaxLength(500);
builder.Ignore(t => t.Nav_Approve);
		} 
     }
	 #endregion
					#region  TrainPlanDetail
     public partial class SETrainPlanDetailMap :APTEntityBaseMap<T_SE_TRAIN_PLAN_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_PLAN_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_ListPlanDetail).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.MONTH);
builder.HasOne(t => t.Nav_TrainTypeEnum).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.OBJECT).HasMaxLength(100);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveRole).WithMany().HasForeignKey(t => t.APPROVAL_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainPlanDetailDepartment
     public partial class SETrainPlanDetailDepartmentMap :APTEntityBaseMap<T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_PLAN_DETAIL_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanDetail).WithMany(t=>t.Nav_ListDetailDepartment).HasForeignKey(t => t.PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainPlanFile
     public partial class SETrainPlanFileMap :APTEntityBaseMap<T_SE_TRAIN_PLAN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_PLAN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainRecordReport
     public partial class SETrainRecordReportMap :APTEntityBaseMap<T_SE_TRAIN_RECORD_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_REPORT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.UNIT).HasMaxLength(100);
builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.LEVEL).HasMaxLength(100);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(100);
builder.Property(t => t.CLASS_NAME).HasMaxLength(100);
builder.Property(t => t.TRAIN_TYPE).HasMaxLength(100);
builder.Property(t => t.TRAIN_MODEL).HasMaxLength(100);
builder.Property(t => t.TRAIN_TEACHER).HasMaxLength(100);
builder.Ignore(t => t.START_TIME_S);
builder.Ignore(t => t.START_TIME_E);
		} 
     }
	 #endregion
					#region  TrainRecordText
     public partial class SETrainRecordTextMap :APTEntityBaseMap<T_SE_TRAIN_RECORD_TEXT>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_TEXT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TrainRecordView
     public partial class SETrainRecordViewMap :APTEntityBaseMap<T_SE_TRAIN_RECORD_VIEW>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_RECORD_VIEW> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  TrainTypeEnum
     public partial class SETrainTypeEnumMap :APTEntityBaseMap<T_SE_TRAIN_TYPE_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_TRAIN_TYPE_ENUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  UserTemp
     public partial class SEUserTempMap :APTEntityBaseMap<T_SE_USER_TEMP>
     {   
        public override void Configure(EntityTypeBuilder<T_SE_USER_TEMP> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CostType
     public partial class TICostTypeMap :APTEntityBaseMap<T_TI_COST_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_COST_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  InsuranceClaimRecord
     public partial class TIInsuranceClaimRecordMap :APTEntityBaseMap<T_TI_INSURANCE_CLAIM_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_INSURANCE_CLAIM_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Accident).WithMany().HasForeignKey(t => t.ACCIDENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.INJURE_DETAIL).HasMaxLength(200);
builder.Property(t => t.HOSPITAL).HasMaxLength(200);
builder.Property(t => t.INJURE_AFFIRM_AGENCY).HasMaxLength(200);
builder.Property(t => t.DISABILITY_AFFIRM_AGENCY).HasMaxLength(200);
builder.Property(t => t.REMARK).HasMaxLength(1000);
		} 
     }
	 #endregion
					#region  InsuranceClaimRecordFile
     public partial class TIInsuranceClaimRecordFileMap :APTEntityBaseMap<T_TI_INSURANCE_CLAIM_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_INSURANCE_CLAIM_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InsuranceRecord
     public partial class TIInsuranceRecordMap :APTEntityBaseMap<T_TI_INSURANCE_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_INSURANCE_RECORD> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  InsuranceRecordFile
     public partial class TIInsuranceRecordFileMap :APTEntityBaseMap<T_TI_INSURANCE_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_INSURANCE_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  InsuranceUserRecord
     public partial class TIInsuranceUserRecordMap :APTEntityBaseMap<T_TI_INSURANCE_USER_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_INSURANCE_USER_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_UserList).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEPARTMENTNAME).HasMaxLength(500);
builder.Property(t => t.USERPOSTNAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Plan
     public partial class TIPlanMap :APTEntityBaseMap<T_TI_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PLAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanFile
     public partial class TIPlanFileMap :APTEntityBaseMap<T_TI_PLAN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PLAN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanRange
     public partial class TIPlanRangeMap :APTEntityBaseMap<T_TI_PLAN_RANGE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PLAN_RANGE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Ranges).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Range).WithMany().HasForeignKey(t => t.RANGE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanRangeType
     public partial class TIPlanRangeTypeMap :APTEntityBaseMap<T_TI_PLAN_RANGE_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PLAN_RANGE_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  PlanSource
     public partial class TIPlanSourceMap :APTEntityBaseMap<T_TI_PLAN_SOURCE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PLAN_SOURCE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Sources).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Source).WithMany().HasForeignKey(t => t.SOURCE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanSourceType
     public partial class TIPlanSourceTypeMap :APTEntityBaseMap<T_TI_PLAN_SOURCE_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PLAN_SOURCE_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Project
     public partial class TIProjectMap :APTEntityBaseMap<T_TI_PROJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_ListProject).HasForeignKey(t => t.PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Manger).WithMany().HasForeignKey(t => t.MANAGER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectCheck
     public partial class TIProjectCheckMap :APTEntityBaseMap<T_TI_PROJECT_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_CHECK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectCheckFile
     public partial class TIProjectCheckFileMap :APTEntityBaseMap<T_TI_PROJECT_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProjectCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PROJECT_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectCheckWffile
     public partial class TIProjectCheckWffileMap :APTEntityBaseMap<T_TI_PROJECT_CHECK_WFFILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_CHECK_WFFILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProjectCheck).WithMany(t=>t.Nav_WFFiles).HasForeignKey(t => t.PROJECT_CHECK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectFile
     public partial class TIProjectFileMap :APTEntityBaseMap<T_TI_PROJECT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectMoney
     public partial class TIProjectMoneyMap :APTEntityBaseMap<T_TI_PROJECT_MONEY>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_MONEY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectMoneyDetail
     public partial class TIProjectMoneyDetailMap :APTEntityBaseMap<T_TI_PROJECT_MONEY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_MONEY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Money).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.MONEY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(150);
		} 
     }
	 #endregion
					#region  ProjectMoneyDetailFile
     public partial class TIProjectMoneyDetailFileMap :APTEntityBaseMap<T_TI_PROJECT_MONEY_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_MONEY_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Detail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectRange
     public partial class TIProjectRangeMap :APTEntityBaseMap<T_TI_PROJECT_RANGE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_RANGE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_Ranges).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Range).WithMany().HasForeignKey(t => t.RANGE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectSource
     public partial class TIProjectSourceMap :APTEntityBaseMap<T_TI_PROJECT_SOURCE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_SOURCE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_Sources).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Source).WithMany().HasForeignKey(t => t.SOURCE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectWffile
     public partial class TIProjectWffileMap :APTEntityBaseMap<T_TI_PROJECT_WFFILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_PROJECT_WFFILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_WFFiles).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafePdtCostRecord
     public partial class TISafePdtCostRecordMap :APTEntityBaseMap<T_TI_SAFE_PDT_COST_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_SAFE_PDT_COST_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PROJECT).HasMaxLength(500);
builder.Property(t => t.PROCTNAME).HasMaxLength(200);
builder.Property(t => t.PURPOSE).HasMaxLength(500);
builder.Property(t => t.UNIT).HasMaxLength(200);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafePdtCostRecordFile
     public partial class TISafePdtCostRecordFileMap :APTEntityBaseMap<T_TI_SAFE_PDT_COST_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_SAFE_PDT_COST_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafePdtCostRecord).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafePdtCostRecordType
     public partial class TISafePdtCostRecordTypeMap :APTEntityBaseMap<T_TI_SAFE_PDT_COST_RECORD_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_TI_SAFE_PDT_COST_RECORD_TYPE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SafePdtCostRecord).WithMany(t=>t.Nav_SafePdtCostRecordType).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CostType).WithMany().HasForeignKey(t => t.COST_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Back
     public partial class TLBackMap :APTEntityBaseMap<T_TL_BACK>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_BACK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BackDetail
     public partial class TLBackDetailMap :APTEntityBaseMap<T_TL_BACK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_BACK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Back).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.BACK_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BackDetailUser
     public partial class TLBackDetailUserMap :APTEntityBaseMap<T_TL_BACK_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_BACK_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Back).WithMany().HasForeignKey(t => t.BACK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_BackDetail).WithMany(t=>t.Nav_ListDetailUser).HasForeignKey(t => t.BACK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BackFile
     public partial class TLBackFileMap :APTEntityBaseMap<T_TL_BACK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_BACK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Back).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.BACK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BackRecord
     public partial class TLBackRecordMap :APTEntityBaseMap<T_TL_BACK_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_BACK_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.BACK_DIREACT).HasMaxLength(200);
builder.Property(t => t.BACK_SCALE).HasMaxLength(100);
builder.HasOne(t => t.Nav_Approve).WithMany().HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  BackRecordUser
     public partial class TLBackRecordUserMap :APTEntityBaseMap<T_TL_BACK_RECORD_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_BACK_RECORD_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_BackRecord).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.BACK_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BackRequire
     public partial class TLBackRequireMap :APTEntityBaseMap<T_TL_BACK_REQUIRE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_BACK_REQUIRE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Back).WithMany(t=>t.Nav_ListBackRequire).HasForeignKey(t => t.BACK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Caculate
     public partial class TLCaculateMap :APTEntityBaseMap<T_TL_CACULATE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_CACULATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CaculateFile
     public partial class TLCaculateFileMap :APTEntityBaseMap<T_TL_CACULATE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_CACULATE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Caculate).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.CACULATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FileSum
     public partial class TLFileSumMap :APTEntityBaseMap<T_TL_FILE_SUM>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_FILE_SUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT).HasMaxLength(300);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FileSumFile
     public partial class TLFileSumFileMap :APTEntityBaseMap<T_TL_FILE_SUM_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_FILE_SUM_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Sum).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HighCheck
     public partial class TLHighCheckMap :APTEntityBaseMap<T_TL_HIGH_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_HIGH_CHECK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HighCheckFile
     public partial class TLHighCheckFileMap :APTEntityBaseMap<T_TL_HIGH_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_HIGH_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_HighCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.HIGH_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Out
     public partial class TLOutMap :APTEntityBaseMap<T_TL_OUT>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_OUT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutFile
     public partial class TLOutFileMap :APTEntityBaseMap<T_TL_OUT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_OUT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Out).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.OUT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanSet
     public partial class TLPlanSetMap :APTEntityBaseMap<T_TL_PLAN_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PLAN_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_User);
builder.Property(t => t.RUNDATA).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ProjectFinish
     public partial class TLProjectFinishMap :APTEntityBaseMap<T_TL_PROJECT_FINISH>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_FINISH> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RESULT_REASON).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ProjectFinishFile
     public partial class TLProjectFinishFileMap :APTEntityBaseMap<T_TL_PROJECT_FINISH_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_FINISH_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Hight).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.HIGHT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectHight
     public partial class TLProjectHightMap :APTEntityBaseMap<T_TL_PROJECT_HIGHT>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_HIGHT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RESULT_REASON).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ProjectHightFile
     public partial class TLProjectHightFileMap :APTEntityBaseMap<T_TL_PROJECT_HIGHT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_HIGHT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Hight).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.HIGHT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectIntroduce
     public partial class TLProjectIntroduceMap :APTEntityBaseMap<T_TL_PROJECT_INTRODUCE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_INTRODUCE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectIntroduceFile
     public partial class TLProjectIntroduceFileMap :APTEntityBaseMap<T_TL_PROJECT_INTRODUCE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_INTRODUCE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProjectIntroduce).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.INTRODUCE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectRecord
     public partial class TLProjectRecordMap :APTEntityBaseMap<T_TL_PROJECT_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RESULT_REASON).HasMaxLength(500);
builder.Property(t => t.RESULT_CHECK_REASON).HasMaxLength(500);
builder.Property(t => t.RESULT_WATCH_REASON).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ProjectRecordCheckFile
     public partial class TLProjectRecordCheckFileMap :APTEntityBaseMap<T_TL_PROJECT_RECORD_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_RECORD_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_FilesWatch).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectRecordFile
     public partial class TLProjectRecordFileMap :APTEntityBaseMap<T_TL_PROJECT_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectRecordWatchFile
     public partial class TLProjectRecordWatchFileMap :APTEntityBaseMap<T_TL_PROJECT_RECORD_WATCH_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_RECORD_WATCH_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany(t=>t.Nav_FilesCheck).HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectSlopebank
     public partial class TLProjectSlopebankMap :APTEntityBaseMap<T_TL_PROJECT_SLOPEBANK>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_SLOPEBANK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAMESUB).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectSlopebankFile
     public partial class TLProjectSlopebankFileMap :APTEntityBaseMap<T_TL_PROJECT_SLOPEBANK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_SLOPEBANK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SlopeBank).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SLOPEBANK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectSlopebankProjFile
     public partial class TLProjectSlopebankProjFileMap :APTEntityBaseMap<T_TL_PROJECT_SLOPEBANK_PROJ_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_SLOPEBANK_PROJ_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SlopeBank).WithMany(t=>t.Nav_Files_Proj).HasForeignKey(t => t.SLOPEBANK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ProjectSlopebankSubFile
     public partial class TLProjectSlopebankSubFileMap :APTEntityBaseMap<T_TL_PROJECT_SLOPEBANK_SUB_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_PROJECT_SLOPEBANK_SUB_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SlopeBank).WithMany(t=>t.Nav_Files_Sub).HasForeignKey(t => t.SLOPEBANK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  QualityCheck
     public partial class TLQualityCheckMap :APTEntityBaseMap<T_TL_QUALITY_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_QUALITY_CHECK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  QualityCheckFile
     public partial class TLQualityCheckFileMap :APTEntityBaseMap<T_TL_QUALITY_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_QUALITY_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_QualityCheck).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.QUALITY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Require
     public partial class TLRequireMap :APTEntityBaseMap<T_TL_REQUIRE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_REQUIRE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  SetWatchDaylyItem
     public partial class TLSetWatchDaylyItemMap :APTEntityBaseMap<T_TL_SET_WATCH_DAYLY_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_SET_WATCH_DAYLY_ITEM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.UNITE).HasMaxLength(30);
		} 
     }
	 #endregion
					#region  Tailing
     public partial class TLTailingMap :APTEntityBaseMap<T_TL_TAILING>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_TAILING> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.LOCATION).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  WatchDayly
     public partial class TLWatchDaylyMap :APTEntityBaseMap<T_TL_WATCH_DAYLY>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_DAYLY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchDaylyDetail
     public partial class TLWatchDaylyDetailMap :APTEntityBaseMap<T_TL_WATCH_DAYLY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_DAYLY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Dayly).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.DAYLY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Item).WithMany().HasForeignKey(t => t.ITEM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.REMIND);
		} 
     }
	 #endregion
					#region  WatchDaylyDetailUser
     public partial class TLWatchDaylyDetailUserMap :APTEntityBaseMap<T_TL_WATCH_DAYLY_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_DAYLY_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DaylyDetail).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.DAYLY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchDaylyUser
     public partial class TLWatchDaylyUserMap :APTEntityBaseMap<T_TL_WATCH_DAYLY_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_DAYLY_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Dayly).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.DAYLY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchLine
     public partial class TLWatchLineMap :APTEntityBaseMap<T_TL_WATCH_LINE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_LINE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchLineDetail
     public partial class TLWatchLineDetailMap :APTEntityBaseMap<T_TL_WATCH_LINE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_LINE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Line).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.LINE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_WatchLinePoint).WithMany().HasForeignKey(t => t.WATCH_LINE_POINT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchLineDetailFile
     public partial class TLWatchLineDetailFileMap :APTEntityBaseMap<T_TL_WATCH_LINE_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_LINE_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LineDetail).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.LINE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchLineDetailUser
     public partial class TLWatchLineDetailUserMap :APTEntityBaseMap<T_TL_WATCH_LINE_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_LINE_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LineDetail).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.LINE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchLinePoint
     public partial class TLWatchLinePointMap :APTEntityBaseMap<T_TL_WATCH_LINE_POINT>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_LINE_POINT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.LOCATION).HasMaxLength(200);
builder.Property(t => t.POINT_NO).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  WatchMove
     public partial class TLWatchMoveMap :APTEntityBaseMap<T_TL_WATCH_MOVE>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_MOVE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchMoveDetail
     public partial class TLWatchMoveDetailMap :APTEntityBaseMap<T_TL_WATCH_MOVE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_MOVE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Move).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.MOVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_WatchMovePoint).WithMany().HasForeignKey(t => t.WATCH_MOVE_POINT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.LOOKPOINT).HasMaxLength(500);
builder.Property(t => t.CHANGELOOKPOINT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  WatchMoveDetailUser
     public partial class TLWatchMoveDetailUserMap :APTEntityBaseMap<T_TL_WATCH_MOVE_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_MOVE_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MoveDetail).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.MOVE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchMovePoint
     public partial class TLWatchMovePointMap :APTEntityBaseMap<T_TL_WATCH_MOVE_POINT>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_MOVE_POINT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME_BASE).HasMaxLength(200);
builder.Property(t => t.POINT_BASE).HasMaxLength(200);
builder.Property(t => t.NAME_WATCH).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  WatchPercent
     public partial class TLWatchPercentMap :APTEntityBaseMap<T_TL_WATCH_PERCENT>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_PERCENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchPercentDetail
     public partial class TLWatchPercentDetailMap :APTEntityBaseMap<T_TL_WATCH_PERCENT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_PERCENT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Percent).WithMany(t=>t.Nav_ListDetail).HasForeignKey(t => t.PERCENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Sum).WithMany().HasForeignKey(t => t.SUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.INT_PERCENT).HasMaxLength(500);
builder.Property(t => t.OUT_PERCENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  WatchPercentDetailUser
     public partial class TLWatchPercentDetailUserMap :APTEntityBaseMap<T_TL_WATCH_PERCENT_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_PERCENT_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PercentDetail).WithMany(t=>t.Nav_ListUser).HasForeignKey(t => t.PERCENT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WatchPlanSet
     public partial class TLWatchPlanSetMap :APTEntityBaseMap<T_TL_WATCH_PLAN_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_PLAN_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_ListUser);
builder.Property(t => t.RUNDATA).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  WatchSum
     public partial class TLWatchSumMap :APTEntityBaseMap<T_TL_WATCH_SUM>
     {   
        public override void Configure(EntityTypeBuilder<T_TL_WATCH_SUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TAILING_NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tailing).WithMany().HasForeignKey(t => t.TAILING_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_ListDetailDayly);
builder.Ignore(t => t.Nav_ListSignDayly);
builder.Ignore(t => t.Nav_ListDetailMovd);
builder.Ignore(t => t.Nav_ListSignMovd);
builder.Ignore(t => t.Nav_ListDetailLine);
builder.Ignore(t => t.Nav_ListSignLine);
builder.Ignore(t => t.Nav_ListDetailPercent);
builder.Ignore(t => t.Nav_ListSignPercent);
		} 
     }
	 #endregion
					#region  ProjectInput
     public partial class WBProjectInputMap :APTEntityBaseMap<T_WB_PROJECT_INPUT>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_PROJECT_INPUT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_LaunchUser).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(300);
builder.Property(t => t.UNIT_NAME).HasMaxLength(300);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserSafe).WithMany().HasForeignKey(t => t.USER_ID_SAFE).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.WB_USER_NAME).HasMaxLength(50);
builder.Property(t => t.WB_USER_PHONE).HasMaxLength(50);
builder.Property(t => t.WB_USER_CODE).HasMaxLength(50);
builder.Property(t => t.WB_USER_PASSWORD).HasMaxLength(50);
builder.Property(t => t.MAJOR_WORK_CONTENT).HasMaxLength(500);
builder.Property(t => t.MAJOR_RISK).HasMaxLength(500);
builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.CONSTRUCTION_NAME).HasMaxLength(300);
builder.HasOne(t => t.Nav_LaunchDepartment).WithMany().HasForeignKey(t => t.LAUNCH_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SceneUser).WithMany().HasForeignKey(t => t.SCENE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.RISKCOUNTPER);
builder.Ignore(t => t.RISKCOUNT);
		} 
     }
	 #endregion
					#region  ProjectInputFile
     public partial class WBProjectInputFileMap :APTEntityBaseMap<T_WB_PROJECT_INPUT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_PROJECT_INPUT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Register
     public partial class WBRegisterMap :APTEntityBaseMap<T_WB_REGISTER>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(300);
builder.Property(t => t.UNIT_NAME).HasMaxLength(300);
builder.Property(t => t.WB_USER_NAME).HasMaxLength(50);
builder.Property(t => t.WB_USER_PHONE).HasMaxLength(50);
builder.Property(t => t.CONSTRUCTION_NAME).HasMaxLength(300);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  Register1
     public partial class WBRegister1Map :APTEntityBaseMap<T_WB_REGISTER_1>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_1> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Item1).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.AGREEMENT_NAME).HasMaxLength(100);
builder.Property(t => t.PROJECT_NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  Register1File
     public partial class WBRegister1FileMap :APTEntityBaseMap<T_WB_REGISTER_1_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_1_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Register2
     public partial class WBRegister2Map :APTEntityBaseMap<T_WB_REGISTER_2>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_2> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Item2).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.SEX).HasMaxLength(100);
builder.Property(t => t.ID_CARD).HasMaxLength(100);
builder.Property(t => t.ADRESS).HasMaxLength(500);
builder.Property(t => t.CURRENT_ADRESS).HasMaxLength(500);
builder.Property(t => t.WORKTYPE).HasMaxLength(100);
builder.HasOne(t => t.Nav_WorkType).WithMany().HasForeignKey(t => t.WORKTYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CERTIFICATE_NAME).HasMaxLength(100);
builder.Property(t => t.VALID_DATE).HasMaxLength(100);
builder.Property(t => t.JOBTYPE).HasMaxLength(100);
builder.Property(t => t.PHONE).HasMaxLength(100);
builder.Property(t => t.EMERGENCY_NAME).HasMaxLength(100);
builder.Property(t => t.EMERGENCY_PHONE).HasMaxLength(100);
builder.Property(t => t.IS_LOGIN).HasMaxLength(100);
builder.Ignore(t => t.PROJECT_ID);
		} 
     }
	 #endregion
					#region  Register2File1
     public partial class WBRegister2File1Map :APTEntityBaseMap<T_WB_REGISTER_2_FILE1>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_2_FILE1> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files1).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Register2File2
     public partial class WBRegister2File2Map :APTEntityBaseMap<T_WB_REGISTER_2_FILE2>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_2_FILE2> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files2).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Register2File3
     public partial class WBRegister2File3Map :APTEntityBaseMap<T_WB_REGISTER_2_FILE3>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_2_FILE3> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files3).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Register2File4
     public partial class WBRegister2File4Map :APTEntityBaseMap<T_WB_REGISTER_2_FILE4>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_2_FILE4> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files4).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Register3
     public partial class WBRegister3Map :APTEntityBaseMap<T_WB_REGISTER_3>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_3> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Item3).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Level).WithMany().HasForeignKey(t => t.LEVEL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CERTIFICATE_NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  Register3File
     public partial class WBRegister3FileMap :APTEntityBaseMap<T_WB_REGISTER_3_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_3_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Register4
     public partial class WBRegister4Map :APTEntityBaseMap<T_WB_REGISTER_4>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_4> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Item4).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(300);
builder.Property(t => t.MODEL).HasMaxLength(300);
builder.Property(t => t.MAIN_SAFE_DEVICE).HasMaxLength(300);
builder.Property(t => t.NUMBER).HasMaxLength(300);
builder.Property(t => t.UNIT).HasMaxLength(100);
builder.Property(t => t.USETO).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  Register4File
     public partial class WBRegister4FileMap :APTEntityBaseMap<T_WB_REGISTER_4_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_4_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Worktype
     public partial class WBWorktypeMap :APTEntityBaseMap<T_WB_WORKTYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_WORKTYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(100);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.WORKTYPE).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  TrainSelect
     public partial class WBTrainSelectMap :APTEntityBaseMap<T_WB_TRAIN_SELECT>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_TRAIN_SELECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(300);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecord
     public partial class WBOutsourceTrainRecordMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany().HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TRAIN_TYPE).HasMaxLength(500);
builder.Property(t => t.TRAIN_CONTENT).HasMaxLength(500);
builder.Property(t => t.TRAIN_ADDR).HasMaxLength(100);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecordFile
     public partial class WBOutsourceTrainRecordFileMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecordPhoto
     public partial class WBOutsourceTrainRecordPhotoMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD_PHOTO>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD_PHOTO> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Photos).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecordSourceOff
     public partial class WBOutsourceTrainRecordSourceOffMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD_SOURCE_OFF>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD_SOURCE_OFF> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_ListSourceOff).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Outsource).WithMany().HasForeignKey(t => t.OUTSOURCE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecordSourceOn
     public partial class WBOutsourceTrainRecordSourceOnMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD_SOURCE_ON>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD_SOURCE_ON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_ListSourceOn).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Outsource).WithMany().HasForeignKey(t => t.OUTSOURCE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecordUsers
     public partial class WBOutsourceTrainRecordUsersMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD_USERS>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD_USERS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecordUsersFiles
     public partial class WBOutsourceTrainRecordUsersFilesMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD_USERS_FILES>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD_USERS_FILES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecordPaper
     public partial class WBOutsourceTrainRecordPaperMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD_PAPER>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD_PAPER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany().HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Order).WithMany(t=>t.Nav_ListUserPaper).HasForeignKey(t => t.ORDER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Source).WithMany().HasForeignKey(t => t.SOURCE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Test).WithMany().HasForeignKey(t => t.TEST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.FILE_PATH).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  OutsourceTrainRecordPaperOrder
     public partial class WBOutsourceTrainRecordPaperOrderMap :APTEntityBaseMap<T_WB_OUTSOURCE_TRAIN_RECORD_PAPER_ORDER>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TRAIN_RECORD_PAPER_ORDER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_ListPaperOrder).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DangerousJob
     public partial class WBDangerousJobMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DANGEROUS_JOB_NAME).HasMaxLength(200);
builder.Property(t => t.DANGEROUS_JOB_ITEM).HasMaxLength(500);
builder.Property(t => t.JOB_RISK_IDENTIFY).HasMaxLength(500);
builder.Property(t => t.JOB_ADDRESS).HasMaxLength(100);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_DisCloseUser).WithMany().HasForeignKey(t => t.DISCLOSE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MointerDepartment).WithMany().HasForeignKey(t => t.MOINTER_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MointerUser).WithMany().HasForeignKey(t => t.MOINTER_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_Approve);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DangerousJobFile
     public partial class WBDangerousJobFileMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DangerousJobUser
     public partial class WBDangerousJobUserMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DangerousJobDetail
     public partial class WBDangerousJobDetailMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Detail).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DangerousJobAudit
     public partial class WBDangerousJobAuditMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_AUDIT>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_AUDIT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Audit).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.AUDIT_OPINION).HasMaxLength(2000);
		} 
     }
	 #endregion
					#region  DangerousJobDiscloseFile
     public partial class WBDangerousJobDiscloseFileMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_DISCLOSE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_DISCLOSE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_DisCloseFiles).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DangerousJobDiscloseUser
     public partial class WBDangerousJobDiscloseUserMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_DISCLOSE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_DISCLOSE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_DisCloseUsers).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DangerousJobDiscloseDetail
     public partial class WBDangerousJobDiscloseDetailMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_DISCLOSE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_DISCLOSE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_DisCloseDetails).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DangerousJobMointerRecordDetail
     public partial class WBDangerousJobMointerRecordDetailMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_MOINTER_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_MOINTER_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_MointerRecordDetails).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MointerDepartment).WithMany().HasForeignKey(t => t.MOINTER_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_MointerUser).WithMany().HasForeignKey(t => t.MOINTER_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DangerousJobMointerRecordDetailFile
     public partial class WBDangerousJobMointerRecordDetailFileMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_MOINTER_RECORD_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_MOINTER_RECORD_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DangerousJobRecordDetail
     public partial class WBDangerousJobRecordDetailMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_RecordDetails).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DangerousJobRecordDetailFile
     public partial class WBDangerousJobRecordDetailFileMap :APTEntityBaseMap<T_WB_DANGEROUS_JOB_RECORD_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_DANGEROUS_JOB_RECORD_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheck
     public partial class WBSafeCheckMap :APTEntityBaseMap<T_WB_SAFE_CHECK>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckFile
     public partial class WBSafeCheckFileMap :APTEntityBaseMap<T_WB_SAFE_CHECK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckPhoto
     public partial class WBSafeCheckPhotoMap :APTEntityBaseMap<T_WB_SAFE_CHECK_PHOTO>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_PHOTO> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Photos).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckTask
     public partial class WBSafeCheckTaskMap :APTEntityBaseMap<T_WB_SAFE_CHECK_TASK>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_TASK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Task).WithMany().HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.MineTypeShow).HasMaxLength(200);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.REMARK_CANCEL).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckTaskDetail
     public partial class WBSafeCheckTaskDetailMap :APTEntityBaseMap<T_WB_SAFE_CHECK_TASK_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_TASK_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Main).WithMany().HasForeignKey(t => t.MAIN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIS).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SafeCheckTaskDetailUser
     public partial class WBSafeCheckTaskDetailUserMap :APTEntityBaseMap<T_WB_SAFE_CHECK_TASK_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_TASK_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany().HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Record).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckRecord
     public partial class WBSafeCheckRecordMap :APTEntityBaseMap<T_WB_SAFE_CHECK_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany().HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TaskDetail).WithMany().HasForeignKey(t => t.TASK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.AUDIT_OPINION).HasMaxLength(500);
builder.Ignore(t => t.CHECKUSERS);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckRecordDetail
     public partial class WBSafeCheckRecordDetailMap :APTEntityBaseMap<T_WB_SAFE_CHECK_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIS).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.Property(t => t.ADRESS).HasMaxLength(100);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_TaskDetail).WithMany().HasForeignKey(t => t.TASK_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.MineTypeSHOW);
builder.Ignore(t => t.AREANAME);
builder.Ignore(t => t.RISKCOUNTPER);
builder.Ignore(t => t.RISKCOUNT);
		} 
     }
	 #endregion
					#region  SafeCheckRecordDetailFile
     public partial class WBSafeCheckRecordDetailFileMap :APTEntityBaseMap<T_WB_SAFE_CHECK_RECORD_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_RECORD_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SafeCheckRecordFile
     public partial class WBSafeCheckRecordFileMap :APTEntityBaseMap<T_WB_SAFE_CHECK_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerNotify
     public partial class WBHiddenDangerNotifyMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_NOTIFY>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_NOTIFY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LaunchUser).WithMany().HasForeignKey(t => t.LAUNCH_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Project).WithMany().HasForeignKey(t => t.PROJECT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MineType).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.AUDIT_OPINION).HasMaxLength(500);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Record).WithMany().HasForeignKey(t => t.RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerNotifyDetail
     public partial class WBHiddenDangerNotifyDetailMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_NOTIFY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_NOTIFY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Detail).WithMany().HasForeignKey(t => t.DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIS).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.Property(t => t.ADRESS).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  HiddenDangerNotifyDetailFile
     public partial class WBHiddenDangerNotifyDetailFileMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_NOTIFY_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_NOTIFY_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerNotifyFile
     public partial class WBHiddenDangerNotifyFileMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_NOTIFY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_NOTIFY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRecord
     public partial class WBHiddenDangerRecordMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notify).WithMany().HasForeignKey(t => t.NOTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Task).WithMany().HasForeignKey(t => t.TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.AUDIT_OPINION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRecordDetail
     public partial class WBHiddenDangerRecordDetailMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIS).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.Property(t => t.ADRESS).HasMaxLength(100);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CHECK_TIME);
builder.Ignore(t => t.CHECK_TYPE);
		} 
     }
	 #endregion
					#region  HiddenDangerRecordDetailAfterFile
     public partial class WBHiddenDangerRecordDetailAfterFileMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_RECORD_DETAIL_AFTER_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_RECORD_DETAIL_AFTER_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files2).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRecordDetailBeforeFile
     public partial class WBHiddenDangerRecordDetailBeforeFileMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_RECORD_DETAIL_BEFORE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_RECORD_DETAIL_BEFORE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files1).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRecordFile
     public partial class WBHiddenDangerRecordFileMap :APTEntityBaseMap<T_WB_HIDDEN_DANGER_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_HIDDEN_DANGER_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckAreaEnum
     public partial class WBCheckAreaEnumMap :APTEntityBaseMap<T_WB_CHECK_AREA_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_CHECK_AREA_ENUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.AREA).HasMaxLength(100);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIS).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CheckMain
     public partial class WBCheckMainMap :APTEntityBaseMap<T_WB_CHECK_MAIN>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_CHECK_MAIN> builder)
		{
			base.Configure(builder);
			builder.Ignore(t => t.MineTypeSet);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckArea).WithMany().HasForeignKey(t => t.CHECK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(300);
builder.Property(t => t.CHECKPROOF).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  CheckType
     public partial class WBCheckTypeMap :APTEntityBaseMap<T_WB_CHECK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_CHECK_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  CheckTypeEnum
     public partial class WBCheckTypeEnumMap :APTEntityBaseMap<T_WB_CHECK_TYPE_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_CHECK_TYPE_ENUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.MineType).HasMaxLength(500);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RUNDATA).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  JobSafeMeasureEnum
     public partial class WBJobSafeMeasureEnumMap :APTEntityBaseMap<T_WB_JOB_SAFE_MEASURE_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_JOB_SAFE_MEASURE_ENUM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  JobSafeMeasureEnumDetail
     public partial class WBJobSafeMeasureEnumDetailMap :APTEntityBaseMap<T_WB_JOB_SAFE_MEASURE_ENUM_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_JOB_SAFE_MEASURE_ENUM_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Parent).WithMany(t=>t.Nav_Detail).HasForeignKey(t => t.PARENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SAFE_MEASURE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  JobTypeEnum
     public partial class WBJobTypeEnumMap :APTEntityBaseMap<T_WB_JOB_TYPE_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_JOB_TYPE_ENUM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  Outsource
     public partial class WBOutsourceMap :APTEntityBaseMap<T_WB_OUTSOURCE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceFile
     public partial class WBOutsourceFileMap :APTEntityBaseMap<T_WB_OUTSOURCE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Source).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SOURCE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  OutsourceTest
     public partial class WBOutsourceTestMap :APTEntityBaseMap<T_WB_OUTSOURCE_TEST>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TEST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Source).WithMany(t=>t.Nav_Tests).HasForeignKey(t => t.SOURCE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.TRAINNAME).HasMaxLength(500);
builder.Property(t => t.OPTION_A).HasMaxLength(500);
builder.Property(t => t.OPTION_B).HasMaxLength(500);
builder.Property(t => t.OPTION_C).HasMaxLength(500);
builder.Property(t => t.OPTION_D).HasMaxLength(500);
builder.Property(t => t.OPTION_E).HasMaxLength(500);
builder.Ignore(t => t.ANSWER_SHOW);
		} 
     }
	 #endregion
					#region  OutsourceType
     public partial class WBOutsourceTypeMap :APTEntityBaseMap<T_WB_OUTSOURCE_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  OutsourceVideo
     public partial class WBOutsourceVideoMap :APTEntityBaseMap<T_WB_OUTSOURCE_VIDEO>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_OUTSOURCE_VIDEO> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Source).WithMany(t=>t.Nav_Videos).HasForeignKey(t => t.SOURCE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Video).WithMany().HasForeignKey(t => t.VIDEO_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Register2JobTypeEnum
     public partial class WBRegister2JobTypeEnumMap :APTEntityBaseMap<T_WB_REGISTER_2_JOB_TYPE_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_REGISTER_2_JOB_TYPE_ENUM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Register).WithMany(t=>t.Nav_JobTypes).HasForeignKey(t => t.REGISTERT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_JobType).WithMany().HasForeignKey(t => t.JOBTYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RelatedLevel
     public partial class WBRelatedLevelMap :APTEntityBaseMap<T_WB_RELATED_LEVEL>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_RELATED_LEVEL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  SafeCheckTaskArea
     public partial class WBSafeCheckTaskAreaMap :APTEntityBaseMap<T_WB_SAFE_CHECK_TASK_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_WB_SAFE_CHECK_TASK_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Task).WithMany(t=>t.Nav_ListArea).HasForeignKey(t => t.CHECK_TASK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckArea).WithMany().HasForeignKey(t => t.CHECK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BasicLibrary
     public partial class SKBasicLibraryMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEPARTMENT_TYPE).HasMaxLength(50);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MINE_NAME).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.MEASURE);
builder.Ignore(t => t.CHECKCONTENTS);
builder.Ignore(t => t.CHECKBASICS);
builder.Ignore(t => t.CHECKSTANDARDS);
builder.Ignore(t => t.HIDDENSCRIPTION);
builder.Ignore(t => t.HIDDENLEVEL);
builder.Ignore(t => t.RECIFYMEASURE);
builder.HasOne(t => t.Nav_SCOREL).WithMany().HasForeignKey(t => t.SCOREL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREE).WithMany().HasForeignKey(t => t.SCOREE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREC).WithMany().HasForeignKey(t => t.SCOREC_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BasicLibraryDetail
     public partial class SKBasicLibraryDetailMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.BASIC_LIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BasicLibraryDetailContent
     public partial class SKBasicLibraryDetailContentMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_DETAIL_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_DETAIL_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LibraryDetail).WithMany(t=>t.Nav_DetailContents).HasForeignKey(t => t.BASIC_LIBRARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIC).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BasicLibraryDetailContentBasic
     public partial class SKBasicLibraryDetailContentBasicMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_DETAIL_CONTENT_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_DETAIL_CONTENT_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailContent).WithMany(t=>t.Nav_DetailBasics).HasForeignKey(t => t.BASIC_LIBRARY_DETAIL_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CHECK_CONTENTS_ID);
		} 
     }
	 #endregion
					#region  BasicLibraryDetailContentHidden
     public partial class SKBasicLibraryDetailContentHiddenMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_DETAIL_CONTENT_HIDDEN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_DETAIL_CONTENT_HIDDEN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailContent).WithMany(t=>t.Nav_DetailHiddens).HasForeignKey(t => t.BASIC_LIBRARY_DETAIL_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
builder.Ignore(t => t.CHECK_CONTENTS_ID);
		} 
     }
	 #endregion
					#region  BasicLibraryTemp
     public partial class SKBasicLibraryTempMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_TEMP>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_TEMP> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MINE_NAME).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BasicLibraryTempContent
     public partial class SKBasicLibraryTempContentMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_TEMP_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_TEMP_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.BASIC_LIBRARY_TEMP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.MEASURE_CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIC).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BasicLibraryTempHidden
     public partial class SKBasicLibraryTempHiddenMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_TEMP_HIDDEN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_TEMP_HIDDEN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Hiddens).HasForeignKey(t => t.BASIC_LIBRARY_TEMP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.MEASURE_CODE).HasMaxLength(500);
builder.Property(t => t.CONTENT_CODE).HasMaxLength(500);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BasicLibraryTempMeasure
     public partial class SKBasicLibraryTempMeasureMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_TEMP_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_TEMP_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Measures).HasForeignKey(t => t.BASIC_LIBRARY_TEMP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BasicLibraryTempMeasureLevel
     public partial class SKBasicLibraryTempMeasureLevelMap :APTEntityBaseMap<T_SK_BASIC_LIBRARY_TEMP_MEASURE_LEVEL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_BASIC_LIBRARY_TEMP_MEASURE_LEVEL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Measure).WithMany(t=>t.Nav_Levels).HasForeignKey(t => t.BASIC_LIBRARY_TEMP_MEASURE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.MEASURE_CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CheckContents
     public partial class SKCheckContentsMap :APTEntityBaseMap<T_SK_CHECK_CONTENTS>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_CONTENTS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
builder.Ignore(t => t.CHECK_BASICS);
builder.Ignore(t => t.DESCREPTION);
builder.Ignore(t => t.QUESTION_LEVEL_SHOW);
builder.Ignore(t => t.DEMAND);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckContentsBasic
     public partial class SKCheckContentsBasicMap :APTEntityBaseMap<T_SK_CHECK_CONTENTS_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_CONTENTS_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Contents).WithMany(t=>t.Nav_ContentsBasics).HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckCycle
     public partial class SKCheckCycleMap :APTEntityBaseMap<T_SK_CHECK_CYCLE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_CYCLE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Types).WithMany(t=>t.Nav_CheckCycle).HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckQuestion
     public partial class SKCheckQuestionMap :APTEntityBaseMap<T_SK_CHECK_QUESTION>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_QUESTION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Contents).WithMany(t=>t.Nav_ListCheckQuestion).HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DESCREPTION).HasMaxLength(500);
builder.Property(t => t.DEMAND).HasMaxLength(500);
builder.Ignore(t => t.QUESTION_LEVEL_SHOW);
builder.Ignore(t => t.CHECKCONTENT);
builder.Ignore(t => t.PRODUCTION_UNIT_ID);
builder.Ignore(t => t.CHECK_BASICS);
builder.Ignore(t => t.CHECK_STANDARD);
		} 
     }
	 #endregion
					#region  CheckSet
     public partial class SKCheckSetMap :APTEntityBaseMap<T_SK_CHECK_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_SET> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CHECK_CONTENT);
builder.Ignore(t => t.HIDDEN_DESCRIPTION);
builder.Ignore(t => t.RECTIFICATION_MEASURES);
builder.Ignore(t => t.AREA_NAME);
builder.Ignore(t => t.RISK_NAME);
builder.Property(t => t.POST_NAME).HasMaxLength(50);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  CheckSetContents
     public partial class SKCheckSetContentsMap :APTEntityBaseMap<T_SK_CHECK_SET_CONTENTS>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_SET_CONTENTS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckSet).WithMany(t=>t.Nav_CheckSetContents).HasForeignKey(t => t.CHECK_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(50);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  CheckSetContentsArea
     public partial class SKCheckSetContentsAreaMap :APTEntityBaseMap<T_SK_CHECK_SET_CONTENTS_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_SET_CONTENTS_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckSetContent).WithMany(t=>t.Nav_ContentsAreas).HasForeignKey(t => t.CHECK_SET_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckSetContentsAreaRisk
     public partial class SKCheckSetContentsAreaRiskMap :APTEntityBaseMap<T_SK_CHECK_SET_CONTENTS_AREA_RISK>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_SET_CONTENTS_AREA_RISK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckSetContentArea).WithMany(t=>t.Nav_ContentsAreaRisks).HasForeignKey(t => t.CHECK_SET_CONTENTS_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckSetContentsBasic
     public partial class SKCheckSetContentsBasicMap :APTEntityBaseMap<T_SK_CHECK_SET_CONTENTS_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_SET_CONTENTS_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckSetContent).WithMany(t=>t.Nav_ContentsBasics).HasForeignKey(t => t.CHECK_CONTENTS_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckSetContentsHidden
     public partial class SKCheckSetContentsHiddenMap :APTEntityBaseMap<T_SK_CHECK_SET_CONTENTS_HIDDEN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_SET_CONTENTS_HIDDEN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckSetContent).WithMany(t=>t.Nav_ContentsHiddens).HasForeignKey(t => t.CHECK_CONTENTS_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  CheckSetUser
     public partial class SKCheckSetUserMap :APTEntityBaseMap<T_SK_CHECK_SET_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_SET_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckSet).WithMany(t=>t.Nav_CheckUsers).HasForeignKey(t => t.CHECK_SET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CheckType
     public partial class SKCheckTypeMap :APTEntityBaseMap<T_SK_CHECK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_CHECK_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DoublePreventMechanism
     public partial class SKDoublePreventMechanismMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Property(t => t.CHECKSTANDARD).HasMaxLength(500);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetail
     public partial class SKDoublePreventMechanismDetailMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Double).WithMany(t=>t.Nav_DoubleDetails).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREL).WithMany().HasForeignKey(t => t.SCOREL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREE).WithMany().HasForeignKey(t => t.SCOREE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREC).WithMany().HasForeignKey(t => t.SCOREC_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_TYPE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_DEPART).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_POST).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_TYPE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_USER).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailDepart
     public partial class SKDoublePreventMechanismDetailDepartMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DoubleDetail).WithMany(t=>t.Nav_DetailDeparts).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailDepartDetail
     public partial class SKDoublePreventMechanismDetailDepartDetailMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_DEPART_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_DEPART_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailDepart).WithMany(t=>t.Nav_DepartDetails).HasForeignKey(t => t.MECHANISM_DETAIL_DEPART_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailMeasures
     public partial class SKDoublePreventMechanismDetailMeasuresMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DoubleDetail).WithMany(t=>t.Nav_DoubleDetailMeasures).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailMeasuresContent
     public partial class SKDoublePreventMechanismDetailMeasuresContentMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DoubleDetailMeasure).WithMany(t=>t.Nav_DetailMeasureContents).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIC).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailMeasuresContentBasic
     public partial class SKDoublePreventMechanismDetailMeasuresContentBasicMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailMeasureContent).WithMany(t=>t.Nav_DetailMeasureContentBasics).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailMeasuresContentDepart
     public partial class SKDoublePreventMechanismDetailMeasuresContentDepartMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailDepart).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailMeasuresContentHidden
     public partial class SKDoublePreventMechanismDetailMeasuresContentHiddenMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_HIDDEN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_HIDDEN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailMeasureContent).WithMany(t=>t.Nav_DetailMeasureContentHiddens).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailMeasuresContentPost
     public partial class SKDoublePreventMechanismDetailMeasuresContentPostMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailMeasureContent).WithMany(t=>t.Nav_DetailMeasureContentPosts).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_DETAIL_MEASURES_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismDetailPost
     public partial class SKDoublePreventMechanismDetailPostMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_DETAIL_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DoubleDetail).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DoublePreventMechanismFile
     public partial class SKDoublePreventMechanismFileMap :APTEntityBaseMap<T_SK_DOUBLE_PREVENT_MECHANISM_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_DOUBLE_PREVENT_MECHANISM_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Double).WithMany(t=>t.Nav_DoubleFiles).HasForeignKey(t => t.DOUBLE_PREVENT_MECHANISM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseLibrary
     public partial class SKEnterpriseLibraryMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.EVALUATE_LEVEL_SHOW);
builder.Property(t => t.DEPARTMENT_TYPE).HasMaxLength(50);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MINE_NAME).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.MEASURE);
builder.Ignore(t => t.CONTROLLEVEL);
builder.Ignore(t => t.CONTROLDEPT);
builder.Ignore(t => t.CONTROLUSER);
builder.Ignore(t => t.CHECKCONTENTS);
builder.Ignore(t => t.CHECKBASICS);
builder.Ignore(t => t.CHECKSTANDARDS);
builder.Ignore(t => t.CHECKLEVEL);
builder.Ignore(t => t.CHECKTYPE);
builder.Ignore(t => t.CHECKDEPT);
builder.Ignore(t => t.CHECKPOST);
builder.Ignore(t => t.HIDDENSCRIPTION);
builder.Ignore(t => t.HIDDENLEVEL);
builder.Ignore(t => t.RECIFYMEASURE);
builder.HasOne(t => t.Nav_SCOREL).WithMany().HasForeignKey(t => t.SCOREL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREE).WithMany().HasForeignKey(t => t.SCOREE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREC).WithMany().HasForeignKey(t => t.SCOREC_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryDepart
     public partial class SKEnterpriseLibraryDepartMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Departs).HasForeignKey(t => t.ENTERPRISE_LIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveRole).WithMany().HasForeignKey(t => t.APPROVE_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryDetail
     public partial class SKEnterpriseLibraryDetailMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.ENTERPRISE_LIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryDetailContent
     public partial class SKEnterpriseLibraryDetailContentMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LibraryDetail).WithMany(t=>t.Nav_DetailContents).HasForeignKey(t => t.ENTERPRISE_LIBRARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIC).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
builder.Ignore(t => t.MineType);
builder.Ignore(t => t.PRODUCTION_UNIT_ID);
builder.Ignore(t => t.AREA_ID);
builder.Ignore(t => t.AREA_NAME);
builder.Ignore(t => t.Nav_Area);
builder.Ignore(t => t.RISK_NAME);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryDetailContentBasic
     public partial class SKEnterpriseLibraryDetailContentBasicMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailContent).WithMany(t=>t.Nav_DetailBasics).HasForeignKey(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryDetailContentDepart
     public partial class SKEnterpriseLibraryDetailContentDepartMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailContent).WithMany(t=>t.Nav_DetailDeparts).HasForeignKey(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.MineType);
builder.Ignore(t => t.AREA_NAME);
builder.Ignore(t => t.POST_NAME);
builder.Ignore(t => t.Nav_ContentDatas);
builder.Ignore(t => t.ENTERPRISE_LIBRARY_DETAIL_ID);
builder.Ignore(t => t.ENTERPRISE_LIBRARY_ID);
builder.Ignore(t => t.POST_ID);
builder.Ignore(t => t.TYPE_NAME);
builder.Ignore(t => t.DEPART_NAME);
builder.Ignore(t => t.MINE_NAME);
builder.Ignore(t => t.PRODUCTION_UNIT_ID);
builder.Ignore(t => t.USER_ID);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryDetailContentHidden
     public partial class SKEnterpriseLibraryDetailContentHiddenMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_HIDDEN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_HIDDEN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailContent).WithMany(t=>t.Nav_DetailHiddens).HasForeignKey(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryDetailContentPost
     public partial class SKEnterpriseLibraryDetailContentPostMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailDepart).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryDetailContentUser
     public partial class SKEnterpriseLibraryDetailContentUserMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_DETAIL_CONTENT_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailDepart).WithMany(t=>t.Nav_DetailUsers).HasForeignKey(t => t.ENTERPRISE_LIBRARY_DETAIL_CONTENT_DEPART_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryPost
     public partial class SKEnterpriseLibraryPostMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Posts).HasForeignKey(t => t.ENTERPRISE_LIBRARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.POST_NAME);
builder.Ignore(t => t.PHONE);
builder.Ignore(t => t.Nav_Librarys);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryPostDetail
     public partial class SKEnterpriseLibraryPostDetailMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_POST_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_POST_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_LibraryPost).WithMany(t=>t.Nav_PostDetails).HasForeignKey(t => t.ENTERPRISE_LIBRARY_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryTemp
     public partial class SKEnterpriseLibraryTempMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_TEMP>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_TEMP> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MINE_NAME).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryTempContent
     public partial class SKEnterpriseLibraryTempContentMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_TEMP_CONTENT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_TEMP_CONTENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Contents).HasForeignKey(t => t.ENTERPRISE_LIBRARY_TEMP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.MEASURE_CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIC).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryTempContentDepart
     public partial class SKEnterpriseLibraryTempContentDepartMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_TEMP_CONTENT_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_TEMP_CONTENT_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Content).WithMany(t=>t.Nav_Departs).HasForeignKey(t => t.ENTERPRISE_LIBRARY_TEMP_CONTENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTENT_CODE).HasMaxLength(500);
builder.Property(t => t.MEASURE_CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryTempContentPost
     public partial class SKEnterpriseLibraryTempContentPostMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_TEMP_CONTENT_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_TEMP_CONTENT_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Depart).WithMany(t=>t.Nav_Posts).HasForeignKey(t => t.ENTERPRISE_LIBRARY_TEMP_CONTENT_DEPART_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryTempHidden
     public partial class SKEnterpriseLibraryTempHiddenMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_TEMP_HIDDEN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_TEMP_HIDDEN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Hiddens).HasForeignKey(t => t.ENTERPRISE_LIBRARY_TEMP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.MEASURE_CODE).HasMaxLength(500);
builder.Property(t => t.CONTENT_CODE).HasMaxLength(500);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryTempMeasure
     public partial class SKEnterpriseLibraryTempMeasureMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_TEMP_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_TEMP_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Library).WithMany(t=>t.Nav_Measures).HasForeignKey(t => t.ENTERPRISE_LIBRARY_TEMP_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
builder.Property(t => t.CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnterpriseLibraryTempMeasureDepart
     public partial class SKEnterpriseLibraryTempMeasureDepartMap :APTEntityBaseMap<T_SK_ENTERPRISE_LIBRARY_TEMP_MEASURE_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_ENTERPRISE_LIBRARY_TEMP_MEASURE_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Measure).WithMany(t=>t.Nav_Departs).HasForeignKey(t => t.ENTERPRISE_LIBRARY_TEMP_MEASURE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE_CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Evaluation
     public partial class SKEvaluationMap :APTEntityBaseMap<T_SK_EVALUATION>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_EVALUATION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  HiddenDangerConfirm
     public partial class SKHiddenDangerConfirmMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_CONFIRM>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_CONFIRM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Report).WithMany().HasForeignKey(t => t.HIDDEN_DANGER_HAND_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Property(t => t.CHECKSTANDARD).HasMaxLength(500);
builder.Property(t => t.HIDDEN_DESCRIPTION_DETAIL).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RecitifyUser).WithMany().HasForeignKey(t => t.RECITIFY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HiddenDangerConfirmBasic
     public partial class SKHiddenDangerConfirmBasicMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_CONFIRM_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_CONFIRM_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Confirm).WithMany(t=>t.Nav_Basics).HasForeignKey(t => t.HIDDEN_DANGER_CONFIRM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerConfirmFile
     public partial class SKHiddenDangerConfirmFileMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_CONFIRM_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_CONFIRM_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Confirm).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.HIDDEN_DANGER_CONFIRM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerConfirmPhoto
     public partial class SKHiddenDangerConfirmPhotoMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_CONFIRM_PHOTO>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_CONFIRM_PHOTO> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Confirm).WithMany(t=>t.Nav_Photos).HasForeignKey(t => t.HIDDEN_DANGER_CONFIRM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerConfirmReason
     public partial class SKHiddenDangerConfirmReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_CONFIRM_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_CONFIRM_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Confirm).WithMany(t=>t.Nav_Reasons).HasForeignKey(t => t.HIDDEN_DANGER_CONFIRM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerHandReport
     public partial class SKHiddenDangerHandReportMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_HAND_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_HAND_REPORT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  HiddenDangerHandReportFile
     public partial class SKHiddenDangerHandReportFileMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_HAND_REPORT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_HAND_REPORT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_ReportFiles).HasForeignKey(t => t.HIDDEN_DANGER_HAND_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyDelayApply
     public partial class SKHiddenDangerRectifyDelayApplyMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_DELAY_APPLY>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_DELAY_APPLY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RectifyRecord).WithMany().HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DELAY_REASON).HasMaxLength(500);
builder.Property(t => t.RECITIFY_MEASURES_TEMP).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyNotice
     public partial class SKHiddenDangerRectifyNoticeMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.HIDDEN_LEVEL).HasMaxLength(500);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
builder.Property(t => t.RecitifyUser).HasMaxLength(500);
builder.Property(t => t.ImplementUser).HasMaxLength(500);
builder.Property(t => t.AcceptUser).HasMaxLength(500);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyNoticeDetail
     public partial class SKHiddenDangerRectifyNoticeDetailMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyDetails).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Property(t => t.CHECKSTANDARD).HasMaxLength(500);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
builder.HasOne(t => t.Nav_RecitifyUser).WithMany().HasForeignKey(t => t.RECITIFY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
builder.HasOne(t => t.Nav_ImplementUser).WithMany().HasForeignKey(t => t.IMPLEMENT_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AcceptUser).WithMany().HasForeignKey(t => t.ACCEPT_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_DetailContents);
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyNoticeDetailBasic
     public partial class SKHiddenDangerRectifyNoticeDetailBasicMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RectifyDetail).WithMany(t=>t.Nav_RectifyDetailBasics).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyNoticeDetailFile
     public partial class SKHiddenDangerRectifyNoticeDetailFileMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RectifyDetail).WithMany(t=>t.Nav_RectifyDetailFiles).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyNoticeDetailReason
     public partial class SKHiddenDangerRectifyNoticeDetailReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RectifyDetail).WithMany(t=>t.Nav_RectifyDetailReasons).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyNoticeFile
     public partial class SKHiddenDangerRectifyNoticeFileMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_NOTICE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyFiles).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyRecord
     public partial class SKHiddenDangerRectifyRecordMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_RECORD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Property(t => t.CHECKSTANDARD).HasMaxLength(500);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
builder.HasOne(t => t.Nav_RecitifyUser).WithMany().HasForeignKey(t => t.RECITIFY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RECTIFICATION_MEASURES).HasMaxLength(500);
builder.HasOne(t => t.Nav_ImplementUser).WithMany().HasForeignKey(t => t.IMPLEMENT_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_AcceptUser).WithMany().HasForeignKey(t => t.ACCEPT_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RECTIFICATION_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.RECTIFICATION_MONEY).HasMaxLength(500);
builder.Property(t => t.ACCEPT_OPINION).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.QTY);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyRecordBasic
     public partial class SKHiddenDangerRectifyRecordBasicMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyBasics).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyRecordFile
     public partial class SKHiddenDangerRectifyRecordFileMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyFiles).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyRecordPhotoa
     public partial class SKHiddenDangerRectifyRecordPhotoaMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_PHOTOA>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_PHOTOA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyPhotoas).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyRecordPhotob
     public partial class SKHiddenDangerRectifyRecordPhotobMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_PHOTOB>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_PHOTOB> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyPhotobs).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerRectifyRecordReason
     public partial class SKHiddenDangerRectifyRecordReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_RECTIFY_RECORD_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rectify).WithMany(t=>t.Nav_RectifyReasons).HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerReport
     public partial class SKHiddenDangerReportMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_REPORT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_REPORT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  HiddenDangerReportDetail
     public partial class SKHiddenDangerReportDetailMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_REPORT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_REPORT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_ReportDetails).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Property(t => t.CHECKSTANDARD).HasMaxLength(500);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
builder.HasOne(t => t.Nav_RecitifyUser).WithMany().HasForeignKey(t => t.RECITIFY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.STATUS);
builder.Ignore(t => t.Nav_DetailContents);
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  HiddenDangerReportDetailBasic
     public partial class SKHiddenDangerReportDetailBasicMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_REPORT_DETAIL_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_REPORT_DETAIL_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ReportDetail).WithMany(t=>t.Nav_ReportDetailBasics).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerReportDetailFile
     public partial class SKHiddenDangerReportDetailFileMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_REPORT_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_REPORT_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ReportDetail).WithMany(t=>t.Nav_ReportDetailFiles).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerReportDetailReason
     public partial class SKHiddenDangerReportDetailReasonMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_REPORT_DETAIL_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ReportDetail).WithMany(t=>t.Nav_ReportDetailReasons).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenDangerReportFile
     public partial class SKHiddenDangerReportFileMap :APTEntityBaseMap<T_SK_HIDDEN_DANGER_REPORT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_DANGER_REPORT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Report).WithMany(t=>t.Nav_ReportFiles).HasForeignKey(t => t.HIDDEN_DANGER_REPORT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  HiddenReason
     public partial class SKHiddenReasonMap :APTEntityBaseMap<T_SK_HIDDEN_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_HIDDEN_REASON> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  IdentifyEvaluationPlan
     public partial class SKIdentifyEvaluationPlanMap :APTEntityBaseMap<T_SK_IDENTIFY_EVALUATION_PLAN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_IDENTIFY_EVALUATION_PLAN> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  IdentifyEvaluationPlanDetail
     public partial class SKIdentifyEvaluationPlanDetailMap :APTEntityBaseMap<T_SK_IDENTIFY_EVALUATION_PLAN_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_IDENTIFY_EVALUATION_PLAN_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.USERS);
		} 
     }
	 #endregion
					#region  IdentifyEvaluationPlanDetailUser
     public partial class SKIdentifyEvaluationPlanDetailUserMap :APTEntityBaseMap<T_SK_IDENTIFY_EVALUATION_PLAN_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_IDENTIFY_EVALUATION_PLAN_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanDetail).WithMany(t=>t.Nav_DetailUsers).HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IdentifyEvaluationPlanEvaluation
     public partial class SKIdentifyEvaluationPlanEvaluationMap :APTEntityBaseMap<T_SK_IDENTIFY_EVALUATION_PLAN_EVALUATION>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_IDENTIFY_EVALUATION_PLAN_EVALUATION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Evaluations).HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Evaluation).WithMany().HasForeignKey(t => t.EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IdentifyEvaluationPlanFile
     public partial class SKIdentifyEvaluationPlanFileMap :APTEntityBaseMap<T_SK_IDENTIFY_EVALUATION_PLAN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_IDENTIFY_EVALUATION_PLAN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  IdentifyEvaluationPlanRequire
     public partial class SKIdentifyEvaluationPlanRequireMap :APTEntityBaseMap<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_IDENTIFY_EVALUATION_PLAN_REQUIRE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Plan).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  LibraryImportMain
     public partial class SKLibraryImportMainMap :APTEntityBaseMap<T_SK_LIBRARY_IMPORT_MAIN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_LIBRARY_IMPORT_MAIN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
builder.Property(t => t.EVALUATE_L).HasMaxLength(500);
builder.Property(t => t.EVALUATE_E).HasMaxLength(500);
builder.Property(t => t.EVALUATE_C).HasMaxLength(500);
builder.Property(t => t.EVALUATE_SCORE).HasMaxLength(500);
builder.Property(t => t.EVALUATE_LEVEL).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(9999);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LibraryImportMainHidden
     public partial class SKLibraryImportMainHiddenMap :APTEntityBaseMap<T_SK_LIBRARY_IMPORT_MAIN_HIDDEN>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_LIBRARY_IMPORT_MAIN_HIDDEN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(9999);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(9999);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(9999);
builder.Property(t => t.HIDDEN_LEVEL).HasMaxLength(500);
builder.Property(t => t.HIDDEN_RECITIFY).HasMaxLength(9999);
		} 
     }
	 #endregion
					#region  LibraryImportMainMeasures
     public partial class SKLibraryImportMainMeasuresMap :APTEntityBaseMap<T_SK_LIBRARY_IMPORT_MAIN_MEASURES>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_LIBRARY_IMPORT_MAIN_MEASURES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(9999);
builder.Property(t => t.EMERGENCY).HasMaxLength(9999);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(9999);
builder.Property(t => t.CHECK_BASIC).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
builder.Property(t => t.CHECK_LEVEL).HasMaxLength(500);
builder.Property(t => t.CHECK_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.CHECK_POST).HasMaxLength(500);
builder.Property(t => t.CHECK_TYPE).HasMaxLength(500);
builder.Property(t => t.CHECK_OBJECT).HasMaxLength(500);
builder.Property(t => t.CHECK_CYCLE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LibraryImportMainPost
     public partial class SKLibraryImportMainPostMap :APTEntityBaseMap<T_SK_LIBRARY_IMPORT_MAIN_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_LIBRARY_IMPORT_MAIN_POST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(500);
builder.Property(t => t.POST_NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LibraryImportPost
     public partial class SKLibraryImportPostMap :APTEntityBaseMap<T_SK_LIBRARY_IMPORT_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_LIBRARY_IMPORT_POST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(500);
builder.Property(t => t.POST_NAME).HasMaxLength(500);
builder.Property(t => t.AREA_NAME1).HasMaxLength(500);
builder.Property(t => t.RISK_NAME1).HasMaxLength(500);
builder.Property(t => t.AREA_NAME2).HasMaxLength(500);
builder.Property(t => t.RISK_NAME2).HasMaxLength(500);
builder.Property(t => t.AREA_NAME3).HasMaxLength(500);
builder.Property(t => t.RISK_NAME3).HasMaxLength(500);
builder.Property(t => t.AREA_NAME4).HasMaxLength(500);
builder.Property(t => t.RISK_NAME4).HasMaxLength(500);
builder.Property(t => t.AREA_NAME5).HasMaxLength(500);
builder.Property(t => t.RISK_NAME5).HasMaxLength(500);
builder.Property(t => t.AREA_NAME6).HasMaxLength(500);
builder.Property(t => t.RISK_NAME6).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LibraryImportTemp
     public partial class SKLibraryImportTempMap :APTEntityBaseMap<T_SK_LIBRARY_IMPORT_TEMP>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_LIBRARY_IMPORT_TEMP> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(500);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(500);
builder.Property(t => t.CHECK_BASIC).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
builder.Property(t => t.CHECK_LEVEL).HasMaxLength(500);
builder.Property(t => t.CHECK_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.CHECK_POST).HasMaxLength(500);
builder.Property(t => t.CHECK_TYPE).HasMaxLength(500);
builder.Property(t => t.CHECK_CYCLE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  LibraryImportTempNew
     public partial class SKLibraryImportTempNewMap :APTEntityBaseMap<T_SK_LIBRARY_IMPORT_TEMP_NEW>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_LIBRARY_IMPORT_TEMP_NEW> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.MineType).HasMaxLength(500);
builder.Property(t => t.AREA_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.TYPE_NAME).HasMaxLength(500);
builder.Property(t => t.EVALUATE_L).HasMaxLength(500);
builder.Property(t => t.EVALUATE_E).HasMaxLength(500);
builder.Property(t => t.EVALUATE_C).HasMaxLength(500);
builder.Property(t => t.EVALUATE_SCORE).HasMaxLength(500);
builder.Property(t => t.EVALUATE_LEVEL).HasMaxLength(500);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(9999);
builder.Property(t => t.DEPARTMENT_TYPE).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_USER).HasMaxLength(500);
builder.Property(t => t.CHECK_CONTENT).HasMaxLength(9999);
builder.Property(t => t.CHECK_BASIC).HasMaxLength(500);
builder.Property(t => t.CHECK_STANDARD).HasMaxLength(500);
builder.Property(t => t.CHECK_LEVEL).HasMaxLength(500);
builder.Property(t => t.CHECK_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.CHECK_POST).HasMaxLength(500);
builder.Property(t => t.CHECK_TYPE).HasMaxLength(500);
builder.Property(t => t.CHECK_OBJECT).HasMaxLength(500);
builder.Property(t => t.CHECK_CYCLE).HasMaxLength(500);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(9999);
builder.Property(t => t.HIDDEN_LEVEL).HasMaxLength(500);
builder.Property(t => t.HIDDEN_RECITIFY).HasMaxLength(9999);
		} 
     }
	 #endregion
					#region  MajorAccidentHazardManage
     public partial class SKMajorAccidentHazardManageMap :APTEntityBaseMap<T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_RectifyRecord).WithMany().HasForeignKey(t => t.HIDDEN_DANGER_RECTIFY_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(500);
builder.HasOne(t => t.Nav_ChargeUser).WithMany().HasForeignKey(t => t.CHARGE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REVIEW_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_MonitorDepart).WithMany().HasForeignKey(t => t.MONITOR_DEPART_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MONITOR_OPINION).HasMaxLength(500);
builder.Ignore(t => t.CONTEXT);
builder.Ignore(t => t.PUBLISH);
		} 
     }
	 #endregion
					#region  MajorAccidentHazardManageFile
     public partial class SKMajorAccidentHazardManageFileMap :APTEntityBaseMap<T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Major).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.MAJOR_ACCIDENT_HAZARD_MANAGE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  MajorAccidentHazardManageUser
     public partial class SKMajorAccidentHazardManageUserMap :APTEntityBaseMap<T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_MAJOR_ACCIDENT_HAZARD_MANAGE_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Major).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.MAJOR_ACCIDENT_HAZARD_MANAGE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Measure
     public partial class SKMeasureMap :APTEntityBaseMap<T_SK_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_MEASURE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.REMARK).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MonitorDepart
     public partial class SKMonitorDepartMap :APTEntityBaseMap<T_SK_MONITOR_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_MONITOR_DEPART> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  PlanSet
     public partial class SKPlanSetMap :APTEntityBaseMap<T_SK_PLAN_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_PLAN_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RUNDATA).HasMaxLength(500);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_UserSend).WithMany().HasForeignKey(t => t.USER_ID_SEND).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.MONTHStr);
builder.Ignore(t => t.DATAStr);
builder.Ignore(t => t.WEEKStr);
		} 
     }
	 #endregion
					#region  PlanSetArea
     public partial class SKPlanSetAreaMap :APTEntityBaseMap<T_SK_PLAN_SET_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_PLAN_SET_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListArea).HasForeignKey(t => t.PLANSET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanSetDepartmentOut
     public partial class SKPlanSetDepartmentOutMap :APTEntityBaseMap<T_SK_PLAN_SET_DEPARTMENT_OUT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_PLAN_SET_DEPARTMENT_OUT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListDepOut).HasForeignKey(t => t.PLANSET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PlanSetDepObject
     public partial class SKPlanSetDepObjectMap :APTEntityBaseMap<T_SK_PLAN_SET_DEP_OBJECT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_PLAN_SET_DEP_OBJECT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PlanSet).WithMany(t=>t.Nav_ListSetDepObject).HasForeignKey(t => t.PLANSET_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Request
     public partial class SKRequestMap :APTEntityBaseMap<T_SK_REQUEST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_REQUEST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasIndex("NAME").IsUnique();
		} 
     }
	 #endregion
					#region  RiskArea
     public partial class SKRiskAreaMap :TreeEntityBaseMap<T_SK_RISK_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_AREA> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluation
     public partial class SKRiskEvaluationMap :APTEntityBaseMap<T_SK_RISK_EVALUATION>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_plan).WithMany().HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RiskEvaluationDetail
     public partial class SKRiskEvaluationDetailMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.RISK_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_TYPE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_DEPART).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_POST).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_TYPE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_USER).HasMaxLength(500);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREL).WithMany().HasForeignKey(t => t.SCOREL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREE).WithMany().HasForeignKey(t => t.SCOREE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREC).WithMany().HasForeignKey(t => t.SCOREC_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationDetailDepart
     public partial class SKRiskEvaluationDetailDepartMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_DETAIL_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_DETAIL_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_DetailDeparts).HasForeignKey(t => t.RISK_EVALUATION_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationDetailMeasure
     public partial class SKRiskEvaluationDetailMeasureMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_DETAIL_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_DETAIL_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_DetailMeasures).HasForeignKey(t => t.RISK_EVALUATION_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskEvaluationDetailPost
     public partial class SKRiskEvaluationDetailPostMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_DETAIL_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_DETAIL_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.RISK_EVALUATION_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationDetailPostDetail
     public partial class SKRiskEvaluationDetailPostDetailMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_DETAIL_POST_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailPost).WithMany(t=>t.Nav_PostDetails).HasForeignKey(t => t.RISK_EVALUATION_DETAIL_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationFile
     public partial class SKRiskEvaluationFileMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationRequire
     public partial class SKRiskEvaluationRequireMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_REQUIRE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_REQUIRE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.RISK_EVALUATION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationSummary
     public partial class SKRiskEvaluationSummaryMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_plan).WithMany().HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RiskEvaluationSummaryDetail
     public partial class SKRiskEvaluationSummaryDetailMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_TYPE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_DEPART).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_POST).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_TYPE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_USER).HasMaxLength(500);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREL).WithMany().HasForeignKey(t => t.SCOREL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREE).WithMany().HasForeignKey(t => t.SCOREE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_SCOREC).WithMany().HasForeignKey(t => t.SCOREC_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.EVALUATION_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.EVALUATION_POST).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskEvaluationSummaryDetailDepart
     public partial class SKRiskEvaluationSummaryDetailDepartMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY_DETAIL_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY_DETAIL_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_DetailDeparts).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationSummaryDetailMeasure
     public partial class SKRiskEvaluationSummaryDetailMeasureMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY_DETAIL_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY_DETAIL_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_DetailMeasures).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURES_NAME).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskEvaluationSummaryDetailPost
     public partial class SKRiskEvaluationSummaryDetailPostMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_EvaluationDetail).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationSummaryDetailPostDetail
     public partial class SKRiskEvaluationSummaryDetailPostDetailMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY_DETAIL_POST_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailPost).WithMany(t=>t.Nav_PostDetails).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_DETAIL_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationSummaryFile
     public partial class SKRiskEvaluationSummaryFileMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskEvaluationSummaryRequire
     public partial class SKRiskEvaluationSummaryRequireMap :APTEntityBaseMap<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_EVALUATION_SUMMARY_REQUIRE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Evaluation).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.RISK_EVALUATION_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentify
     public partial class SKRiskIdentifyMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_plan).WithMany().HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RiskIdentifyDetail
     public partial class SKRiskIdentifyDetailMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Identify).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.RISK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskIdentifyDetailMeasure
     public partial class SKRiskIdentifyDetailMeasureMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_DETAIL_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_DETAIL_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifyDetail).WithMany(t=>t.Nav_DetailMeasures).HasForeignKey(t => t.RISK_IDENTIFY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskIdentifyDetailResultDepart
     public partial class SKRiskIdentifyDetailResultDepartMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_DETAIL_RESULT_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_DETAIL_RESULT_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifyDetail).WithMany(t=>t.Nav_DetailDeparts).HasForeignKey(t => t.RISK_IDENTIFY_RESULT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyDetailResultMeasure
     public partial class SKRiskIdentifyDetailResultMeasureMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_DETAIL_RESULT_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_DETAIL_RESULT_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifyDetail).WithMany(t=>t.Nav_DetailMeasures).HasForeignKey(t => t.RISK_IDENTIFY_RESULT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskIdentifyDetailResultPost
     public partial class SKRiskIdentifyDetailResultPostMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifyDetail).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.RISK_IDENTIFY_RESULT_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyDetailResultPostDetail
     public partial class SKRiskIdentifyDetailResultPostDetailMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_DETAIL_RESULT_POST_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DetailPost).WithMany(t=>t.Nav_ResultPostDets).HasForeignKey(t => t.RISK_IDENTIFY_DETAIL_RESULT_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyFile
     public partial class SKRiskIdentifyFileMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Identify).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyRequire
     public partial class SKRiskIdentifyRequireMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_REQUIRE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_REQUIRE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Identify).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.RISK_IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyResult
     public partial class SKRiskIdentifyResultMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_plan).WithMany().HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identify).WithMany().HasForeignKey(t => t.IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultDetail
     public partial class SKRiskIdentifyResultDetailMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifyResult).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.RISK_IDENTIFY_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_TYPE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_POST).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultFile
     public partial class SKRiskIdentifyResultFileMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifyResult).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.RISK_IDENTIFY_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultRequire
     public partial class SKRiskIdentifyResultRequireMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_REQUIRE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_REQUIRE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifyResult).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.RISK_IDENTIFY_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultSummary
     public partial class SKRiskIdentifyResultSummaryMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_plan).WithMany().HasForeignKey(t => t.IDENTIFY_EVALUATION_PLAN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Identify).WithMany().HasForeignKey(t => t.IDENTIFY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_IdentifyResult).WithMany().HasForeignKey(t => t.IDENTIFY_RESULT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.YEAR).HasMaxLength(500);
builder.Property(t => t.CONTENTS).HasMaxLength(500);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultSummaryDepart
     public partial class SKRiskIdentifyResultSummaryDepartMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_DEPART>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_DEPART> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SummaryDetail).WithMany(t=>t.Nav_DetailDeparts).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultSummaryDetail
     public partial class SKRiskIdentifyResultSummaryDetailMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifySummary).WithMany(t=>t.Nav_Details).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Area).WithMany().HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.RISK_NAME).HasMaxLength(500);
builder.Property(t => t.RISK_DESCRIPTION).HasMaxLength(500);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskName).WithMany().HasForeignKey(t => t.RISK_NAME_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
builder.Property(t => t.DEPARTMENT_TYPE).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_DEPARTMENT).HasMaxLength(500);
builder.Property(t => t.IDENTIFY_POST).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultSummaryFile
     public partial class SKRiskIdentifyResultSummaryFileMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifySummary).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultSummaryMeasure
     public partial class SKRiskIdentifyResultSummaryMeasureMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_MEASURE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_MEASURE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SummaryDetail).WithMany(t=>t.Nav_DetailMeasures).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.MEASURE).HasMaxLength(500);
builder.Property(t => t.EMERGENCY).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultSummaryPost
     public partial class SKRiskIdentifyResultSummaryPostMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SummaryDetail).WithMany(t=>t.Nav_DetailPosts).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultSummaryPostDetail
     public partial class SKRiskIdentifyResultSummaryPostDetailMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_POST_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_SummaryPost).WithMany(t=>t.Nav_SumPostDets).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskIdentifyResultSummaryRequire
     public partial class SKRiskIdentifyResultSummaryRequireMap :APTEntityBaseMap<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_IDENTIFY_RESULT_SUMMARY_REQUIRE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_IdentifySummary).WithMany(t=>t.Nav_Requires).HasForeignKey(t => t.IDENTIFY_RESULT_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Require).WithMany().HasForeignKey(t => t.REQUIRE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  RiskName
     public partial class SKRiskNameMap :APTEntityBaseMap<T_SK_RISK_NAME>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_NAME> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskType
     public partial class SKRiskTypeMap :APTEntityBaseMap<T_SK_RISK_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_RISK_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Scorec
     public partial class SKScorecMap :APTEntityBaseMap<T_SK_SCOREC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SCOREC> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  Scoree
     public partial class SKScoreeMap :APTEntityBaseMap<T_SK_SCOREE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SCOREE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  Scorel
     public partial class SKScorelMap :APTEntityBaseMap<T_SK_SCOREL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SCOREL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  SecurityInspectionNotice
     public partial class SKSecurityInspectionNoticeMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_NOTICE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_NOTICE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Ignore(t => t.CONTEXT);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  SecurityInspectionNoticeDetail
     public partial class SKSecurityInspectionNoticeDetailMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckNotice).WithMany(t=>t.Nav_CheckNoticeDetails).HasForeignKey(t => t.SECURITY_INSPECTION_NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Property(t => t.CHECKSTANDARD).HasMaxLength(500);
builder.Ignore(t => t.Nav_DetailContents);
		} 
     }
	 #endregion
					#region  SecurityInspectionNoticeDetailBasic
     public partial class SKSecurityInspectionNoticeDetailBasicMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckNoticeDetail).WithMany(t=>t.Nav_CheckNoticeDetailBasics).HasForeignKey(t => t.SECURITY_INSPECTION_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionNoticeDetailUser
     public partial class SKSecurityInspectionNoticeDetailUserMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_NOTICE_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckNoticeDetail).WithMany(t=>t.Nav_CheckNoticeDetailUsers).HasForeignKey(t => t.SECURITY_INSPECTION_NOTICE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionNoticeFile
     public partial class SKSecurityInspectionNoticeFileMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_NOTICE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_NOTICE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckNotice).WithMany(t=>t.Nav_CheckNoticeFiles).HasForeignKey(t => t.SECURITY_INSPECTION_NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecord
     public partial class SKSecurityInspectionRecordMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RecordUser).WithMany().HasForeignKey(t => t.RECORD_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordDetail
     public partial class SKSecurityInspectionRecordDetailMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecord).WithMany(t=>t.Nav_CheckRecordDetails).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Property(t => t.CHECKSTANDARD).HasMaxLength(500);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.Ignore(t => t.Nav_DetailContents);
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordDetailBasic
     public partial class SKSecurityInspectionRecordDetailBasicMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailBasics).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordDetailFile
     public partial class SKSecurityInspectionRecordDetailFileMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailFiles).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordDetailReason
     public partial class SKSecurityInspectionRecordDetailReasonMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailReasons).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordDetailUser
     public partial class SKSecurityInspectionRecordDetailUserMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailUsers).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordFile
     public partial class SKSecurityInspectionRecordFileMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecord).WithMany(t=>t.Nav_CheckRecordFiles).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordSummary
     public partial class SKSecurityInspectionRecordSummaryMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApplyUser).WithMany().HasForeignKey(t => t.APPLY_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApplyDepartment).WithMany().HasForeignKey(t => t.APPLY_DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ProductionUnit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_CheckType).WithMany().HasForeignKey(t => t.CHECK_TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECK_PERSON).HasMaxLength(500);
builder.Ignore(t => t.PUBLISH);
builder.Property(t => t.ApplyDepartmentName).HasMaxLength(50);
builder.Property(t => t.ApplyPostName).HasMaxLength(50);
builder.Property(t => t.NOTICE_CODE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordSummaryDetail
     public partial class SKSecurityInspectionRecordSummaryDetailMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecord).WithMany(t=>t.Nav_CheckRecordDetails).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_RiskArea).WithMany().HasForeignKey(t => t.RISK_AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Contents).WithMany().HasForeignKey(t => t.CHECK_CONTENTS_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CHECKCONTENT).HasMaxLength(500);
builder.Property(t => t.CHECKPROOF).HasMaxLength(500);
builder.Property(t => t.CHECKSTANDARD).HasMaxLength(500);
builder.HasOne(t => t.Nav_Question).WithMany().HasForeignKey(t => t.CHECK_QUESTION_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.HIDDEN_DESCRIPTION).HasMaxLength(500);
builder.Property(t => t.HIDDEN_PLACE).HasMaxLength(500);
builder.Ignore(t => t.Nav_DetailContents);
builder.Property(t => t.HIDDEN_REASON).HasMaxLength(200);
builder.Ignore(t => t.STATUS);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordSummaryDetailBasic
     public partial class SKSecurityInspectionRecordSummaryDetailBasicMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_BASIC>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_BASIC> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailBasics).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Law).WithMany().HasForeignKey(t => t.LAW_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordSummaryDetailFile
     public partial class SKSecurityInspectionRecordSummaryDetailFileMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailFiles).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordSummaryDetailReason
     public partial class SKSecurityInspectionRecordSummaryDetailReasonMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_REASON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailReasons).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Reason).WithMany().HasForeignKey(t => t.REASON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordSummaryDetailUser
     public partial class SKSecurityInspectionRecordSummaryDetailUserMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecordDetail).WithMany(t=>t.Nav_CheckRecordDetailUsers).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SecurityInspectionRecordSummaryFile
     public partial class SKSecurityInspectionRecordSummaryFileMap :APTEntityBaseMap<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_SECURITY_INSPECTION_RECORD_SUMMARY_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_CheckRecord).WithMany(t=>t.Nav_CheckRecordFiles).HasForeignKey(t => t.SECURITY_INSPECTION_RECORD_SUMMARY_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TimeSet
     public partial class SKTimeSetMap :APTEntityBaseMap<T_SK_TIME_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_TIME_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Ignore(t => t.MONTHStr);
builder.Ignore(t => t.DATAStr);
builder.Ignore(t => t.WEEKStr);
		} 
     }
	 #endregion
					#region  VideoArea
     public partial class SKVideoAreaMap :APTEntityBaseMap<T_SK_VIDEO_AREA>
     {   
        public override void Configure(EntityTypeBuilder<T_SK_VIDEO_AREA> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Area).WithMany(t=>t.Nav_Videos).HasForeignKey(t => t.AREA_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Viedo).WithMany().HasForeignKey(t => t.VIDEO_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Hmi
     public partial class BDHmiMap :APTEntityBaseMap<T_BD_HMI>
     {   
        public override void Configure(EntityTypeBuilder<T_BD_HMI> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  Picture
     public partial class BDPictureMap :APTEntityBaseMap<T_BD_PICTURE>
     {   
        public override void Configure(EntityTypeBuilder<T_BD_PICTURE> builder)
		{
			base.Configure(builder);
			builder.HasIndex("CODE", "ORG_ID").IsUnique();
builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.HasOne(t => t.Nav_EnumItem).WithMany().HasForeignKey(t => t.ENUM_ITEM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Enum).WithMany().HasForeignKey(t => t.ENUM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  PictureFile
     public partial class BDPictureFileMap :APTEntityBaseMap<T_BD_PICTURE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_BD_PICTURE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Picture).WithMany(t=>t.Nav_PictureFiles).HasForeignKey(t => t.PICTURE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.IMG_FILE_PATH).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  Place
     public partial class BDPlaceMap :TreeEntityBaseMap<T_BD_PLACE>
     {   
        public override void Configure(EntityTypeBuilder<T_BD_PLACE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(20);
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  ServerInfo
     public partial class BDServerInfoMap :APTEntityBaseMap<T_BD_SERVER_INFO>
     {   
        public override void Configure(EntityTypeBuilder<T_BD_SERVER_INFO> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.IP).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  SystemInfo
     public partial class BDSystemInfoMap :APTEntityBaseMap<T_BD_SYSTEM_INFO>
     {   
        public override void Configure(EntityTypeBuilder<T_BD_SYSTEM_INFO> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  WordTemplate
     public partial class BDWordTemplateMap :APTEntityBaseMap<T_BD_WORD_TEMPLATE>
     {   
        public override void Configure(EntityTypeBuilder<T_BD_WORD_TEMPLATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.RET_ENTITY_TYPE).HasMaxLength(30);
builder.Property(t => t.DATA_API).HasMaxLength(100);
builder.Property(t => t.REMARK).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  Api
     public partial class FMApiMap :APTEntityBaseMap<T_FM_API>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_API> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.METHOD).HasMaxLength(50);
builder.Property(t => t.DESCRIBE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  BaseAdd
     public partial class FMBaseAddMap :APTEntityBaseMap<T_FM_BASE_ADD>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_BASE_ADD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.LONGITUDE).HasMaxLength(30);
builder.Property(t => t.LATITIDE).HasMaxLength(30);
builder.Property(t => t.HIERARCHY).HasMaxLength(20);
builder.Property(t => t.ADDRESS).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  BaseEnergy
     public partial class FMBaseEnergyMap :APTEntityBaseMap<T_FM_BASE_ENERGY>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_BASE_ENERGY> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.ENERGY_MANAGEMENT).HasMaxLength(50);
builder.Property(t => t.ENERGY_LEADER).HasMaxLength(20);
builder.Property(t => t.LEADER_POSITION).HasMaxLength(20);
builder.Property(t => t.LEADER_TEL).HasMaxLength(20);
builder.Property(t => t.ENERGY_CHARGE).HasMaxLength(20);
builder.Property(t => t.CHARGE_TEL).HasMaxLength(20);
builder.Property(t => t.AUTH_MECHANISM).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  BaseInfo
     public partial class FMBaseInfoMap :APTEntityBaseMap<T_FM_BASE_INFO>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_BASE_INFO> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.ABB_NAME).HasMaxLength(20);
builder.Property(t => t.LEGAL_PERSON).HasMaxLength(20);
builder.Property(t => t.CREDIT_CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_Place).WithMany().HasForeignKey(t => t.PLACE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_PropEunmItem).WithMany().HasForeignKey(t => t.PROP_ENUM_ITEM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_FundEunmItem).WithMany().HasForeignKey(t => t.FUND_ENUM_ITEM_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentCalendarConfig
     public partial class FMDepartmentCalendarConfigMap :APTEntityBaseMap<T_FM_DEPARTMENT_CALENDAR_CONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_CALENDAR_CONFIG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany(t=>t.Nav_DepartmentCalendarConfig).HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Calendar).WithMany().HasForeignKey(t => t.CALENDAR_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentCalendarConfigDetail
     public partial class FMDepartmentCalendarConfigDetailMap :APTEntityBaseMap<T_FM_DEPARTMENT_CALENDAR_CONFIG_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_CALENDAR_CONFIG_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DepartmentCalendarConfig).WithMany(t=>t.Nav_DepartmentCalendarConfigDetail).HasForeignKey(t => t.DEPARTMENT_CALENDAR_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Class).WithMany().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentCalendarConfigTeam
     public partial class FMDepartmentCalendarConfigTeamMap :APTEntityBaseMap<T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_CALENDAR_CONFIG_TEAM> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DepartmentCalendarConfig).WithMany(t=>t.Nav_DepartmentCalendarConfigTeam).HasForeignKey(t => t.DEPARTMENT_CALENDAR_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Team).WithMany().HasForeignKey(t => t.TEAM_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentCompletion
     public partial class FMDepartmentCompletionMap :APTEntityBaseMap<T_FM_DEPARTMENT_COMPLETION>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_COMPLETION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.SHOP_DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.TEAM_NAME).HasMaxLength(50);
builder.Property(t => t.FORM_NAME).HasMaxLength(50);
builder.Property(t => t.MONTHStr).HasMaxLength(500);
builder.Ignore(t => t.FINISH_RATE);
builder.Ignore(t => t.NORMAL_FINISH_RATE);
		} 
     }
	 #endregion
					#region  DepartmentCompletionSort
     public partial class FMDepartmentCompletionSortMap :APTEntityBaseMap<T_FM_DEPARTMENT_COMPLETION_SORT>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_COMPLETION_SORT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.TEAM_NAME).HasMaxLength(50);
builder.Ignore(t => t.CALC);
builder.Ignore(t => t.TEAM_ONTIME_FINISH_COUNT);
builder.Ignore(t => t.POST_ONTIME_FINISH_COUNT);
builder.Ignore(t => t.HANDOVER_ONTIME_FINISH_COUNT);
builder.Ignore(t => t.ACTIVITY_ONTIME_FINISH_COUNT);
builder.Ignore(t => t.CALC_LICENSE);
		} 
     }
	 #endregion
					#region  DepartmentPost
     public partial class FMDepartmentPostMap :APTEntityBaseMap<T_FM_DEPARTMENT_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_POST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentPostUser
     public partial class FMDepartmentPostUserMap :APTEntityBaseMap<T_FM_DEPARTMENT_POST_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_POST_USER> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.HasOne(t => t.Nav_DepartmentPost).WithMany(t=>t.Nav_Users).HasForeignKey(t => t.DEPARTMENT_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentProductionUnit
     public partial class FMDepartmentProductionUnitMap :APTEntityBaseMap<T_FM_DEPARTMENT_PRODUCTION_UNIT>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_PRODUCTION_UNIT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany(t=>t.Nav_ProdutionUnit).HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Enums).WithMany().HasForeignKey(t => t.ENUMS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartUnit).WithMany().HasForeignKey(t => t.DEPART_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentSafeuser
     public partial class FMDepartmentSafeuserMap :APTEntityBaseMap<T_FM_DEPARTMENT_SAFEUSER>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_SAFEUSER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany(t=>t.Nav_SafeUser).HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentScheduling
     public partial class FMDepartmentSchedulingMap :APTEntityBaseMap<T_FM_DEPARTMENT_SCHEDULING>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_SCHEDULING> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DepartMent).WithMany(t=>t.Nav_DepartmentScheduling).HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DepartmentCalendarConfig).WithMany().HasForeignKey(t => t.DEPARTMENT_CALENDAR_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Class).WithMany().HasForeignKey(t => t.CLASS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Team).WithMany().HasForeignKey(t => t.TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.DEPARTMENT_NAME);
		} 
     }
	 #endregion
					#region  DepartmentSchedulingDetail
     public partial class FMDepartmentSchedulingDetailMap :APTEntityBaseMap<T_FM_DEPARTMENT_SCHEDULING_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_SCHEDULING_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_DepartmentScheduling).WithMany(t=>t.Nav_DepartmentSchedulingDetail).HasForeignKey(t => t.DEPARTMENT_SCHEDULING_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Person).WithMany().HasForeignKey(t => t.PERSON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DepartmentUser
     public partial class FMDepartmentUserMap :APTEntityBaseMap<T_FM_DEPARTMENT_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_DEPARTMENT_USER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Department).WithMany(t=>t.Nav_DepartmentUser).HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Enum
     public partial class FMEnumMap :APTEntityBaseMap<T_FM_ENUM>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_ENUM> builder)
		{
			base.Configure(builder);
			builder.HasIndex("CODE", "ORG_ID").IsUnique();
builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Enums
     public partial class FMEnumsMap :APTEntityBaseMap<T_FM_ENUMS>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_ENUMS> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  EnumItem
     public partial class FMEnumItemMap :APTEntityBaseMap<T_FM_ENUM_ITEM>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_ENUM_ITEM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.NAME_EN).HasMaxLength(30);
builder.Property(t => t.VALUE).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  EnumType
     public partial class FMEnumTypeMap :APTEntityBaseMap<T_FM_ENUM_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_ENUM_TYPE> builder)
		{
			base.Configure(builder);
			builder.HasIndex("CODE", "ORG_ID").IsUnique();
builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  HiddenDangerRectification
     public partial class FMHiddenDangerRectificationMap :APTEntityBaseMap<T_FM_HIDDEN_DANGER_RECTIFICATION>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_HIDDEN_DANGER_RECTIFICATION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.TEAM_NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  JobActivityCompletion
     public partial class FMJobActivityCompletionMap :APTEntityBaseMap<T_FM_JOB_ACTIVITY_COMPLETION>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_JOB_ACTIVITY_COMPLETION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.SHOP_DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.TEAM_NAME).HasMaxLength(50);
builder.Property(t => t.FORM_NAME).HasMaxLength(50);
builder.Property(t => t.MONTHStr).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  MessageTemplate
     public partial class FMMessageTemplateMap :APTEntityBaseMap<T_FM_MESSAGE_TEMPLATE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_MESSAGE_TEMPLATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  Monitoring
     public partial class FMMonitoringMap :APTEntityBaseMap<T_FM_MONITORING>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_MONITORING> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.IP).HasMaxLength(50);
builder.Property(t => t.MONITORING_ADDR).HasMaxLength(100);
builder.Property(t => t.REMARK).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  Notice
     public partial class FMNoticeMap :APTEntityBaseMap<T_FM_NOTICE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_NOTICE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TEMPLATE_ID).HasMaxLength(50);
builder.Property(t => t.TABLENAME).HasMaxLength(60);
builder.Property(t => t.USERNAME).HasMaxLength(50);
builder.Property(t => t.TEL).HasMaxLength(20);
builder.Property(t => t.ERRORMSG).HasMaxLength(100);
builder.Property(t => t.MESSAGE).HasMaxLength(300);
builder.Property(t => t.TITLE).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  NotificationTask
     public partial class FMNotificationTaskMap :APTEntityBaseMap<T_FM_NOTIFICATION_TASK>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_NOTIFICATION_TASK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.NOTICE_TITLE).HasMaxLength(200);
builder.Property(t => t.USER_NAME).HasMaxLength(30);
builder.Property(t => t.SOURCE_FORMCODE).HasMaxLength(20);
builder.HasIndex("SOURCE_DATA_ID");
builder.Ignore(t => t.ICON);
builder.Ignore(t => t.PARENT_DEPARTMENT_ID);
builder.Ignore(t => t.DEPARTMENT_ID);
builder.Ignore(t => t.DEPARTMENT_NAME);
builder.Ignore(t => t.MOUDLE_NAME);
builder.Property(t => t.TABLE_NAME).HasMaxLength(500);
builder.Ignore(t => t.OVER_TIME);
builder.Ignore(t => t.DEPT_DEPARTMENT_ID);
builder.Ignore(t => t.SHOP_DEPARTMENT_ID);
builder.Ignore(t => t.CLASS_DEPARTMENT_ID);
		} 
     }
	 #endregion
					#region  NotificationTaskTimeSet
     public partial class FMNotificationTaskTimeSetMap :APTEntityBaseMap<T_FM_NOTIFICATION_TASK_TIME_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_NOTIFICATION_TASK_TIME_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(20);
builder.Ignore(t => t.STRTASK_TYPE);
builder.Property(t => t.TABLENAME).HasMaxLength(500);
builder.Property(t => t.TABLEKEY).HasMaxLength(500);
builder.Property(t => t.TABLETIME).HasMaxLength(500);
builder.Property(t => t.LIMITDATE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ParamSet
     public partial class FMParamSetMap :APTEntityBaseMap<T_FM_PARAM_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_PARAM_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ParamSetDepartment
     public partial class FMParamSetDepartmentMap :APTEntityBaseMap<T_FM_PARAM_SET_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_PARAM_SET_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Param).WithMany(t=>t.Nav_Departments).HasForeignKey(t => t.PARAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Person
     public partial class FMPersonMap :APTEntityBaseMap<T_FM_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_PERSON> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(20);
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(50);
builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.SEX).HasMaxLength(20);
builder.HasOne(t => t.Nav_DepartMent).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TEL).HasMaxLength(20);
builder.Property(t => t.EMAIL).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(200);
builder.HasOne(t => t.Nav_Post).WithMany().HasForeignKey(t => t.POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NATIONALITY).HasMaxLength(30);
builder.Property(t => t.POLITICALSTATUE).HasMaxLength(50);
builder.Property(t => t.JOBTITLE).HasMaxLength(50);
builder.Property(t => t.CULTURALLEVEL).HasMaxLength(30);
		} 
     }
	 #endregion
					#region  PersonCertificateFile
     public partial class FMPersonCertificateFileMap :APTEntityBaseMap<T_FM_PERSON_CERTIFICATE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_PERSON_CERTIFICATE_FILE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(200);
builder.HasOne(t => t.Nav_Person).WithMany(t=>t.Nav_PersonCertificateFiles).HasForeignKey(t => t.PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PersonEducationFile
     public partial class FMPersonEducationFileMap :APTEntityBaseMap<T_FM_PERSON_EDUCATION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_PERSON_EDUCATION_FILE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(200);
builder.HasOne(t => t.Nav_Person).WithMany(t=>t.Nav_PersonEducationFiles).HasForeignKey(t => t.PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PersonIdcardFile
     public partial class FMPersonIdcardFileMap :APTEntityBaseMap<T_FM_PERSON_IDCARD_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_PERSON_IDCARD_FILE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(200);
builder.HasOne(t => t.Nav_Person).WithMany(t=>t.Nav_PersonIDCardFiles).HasForeignKey(t => t.PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PersonSkills
     public partial class FMPersonSkillsMap :APTEntityBaseMap<T_FM_PERSON_SKILLS>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_PERSON_SKILLS> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Person).WithMany(t=>t.Nav_PersonSkills).HasForeignKey(t => t.PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.LEVEL).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  PersonWork
     public partial class FMPersonWorkMap :APTEntityBaseMap<T_FM_PERSON_WORK>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_PERSON_WORK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Person).WithMany(t=>t.Nav_PersonWorks).HasForeignKey(t => t.PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.WORKPLACE).HasMaxLength(200);
builder.Property(t => t.POSTNAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  RiskLevelProportion
     public partial class FMRiskLevelProportionMap :APTEntityBaseMap<T_FM_RISK_LEVEL_PROPORTION>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_RISK_LEVEL_PROPORTION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.RISK_LEVEL).HasMaxLength(500);
builder.Property(t => t.COLOR).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RiskTypeProportion
     public partial class FMRiskTypeProportionMap :APTEntityBaseMap<T_FM_RISK_TYPE_PROPORTION>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_RISK_TYPE_PROPORTION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.RISK_TYPE).HasMaxLength(500);
builder.Property(t => t.COLOR).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  RoleDepartment
     public partial class FMRoleDepartmentMap :APTEntityBaseMap<T_FM_ROLE_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_ROLE_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Role).WithMany().HasForeignKey(t => t.ROLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Snapshot
     public partial class FMSnapshotMap :APTEntityBaseMap<T_FM_SNAPSHOT>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_SNAPSHOT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DESCRIPTION).HasMaxLength(1000);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.ACCEPT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.CREATER_NAME);
		} 
     }
	 #endregion
					#region  SnapshotFile
     public partial class FMSnapshotFileMap :APTEntityBaseMap<T_FM_SNAPSHOT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_SNAPSHOT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Snapshot).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.SNAPSHOT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  SyncLimit
     public partial class FMSyncLimitMap :APTEntityBaseMap<T_FM_SYNC_LIMIT>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_SYNC_LIMIT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.PARAMETER).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  SyncLog
     public partial class FMSyncLogMap :APTEntityBaseMap<T_FM_SYNC_LOG>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_SYNC_LOG> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TRACEIDENTIFIER).HasMaxLength(50);
builder.Property(t => t.TRACEIDENTIFIERED).HasMaxLength(50);
builder.Property(t => t.API_NAME).HasMaxLength(200);
builder.Property(t => t.SYNC_PARAM).HasMaxLength(100);
builder.Ignore(t => t.ISINSERT);
		} 
     }
	 #endregion
					#region  SyncLogDetail
     public partial class FMSyncLogDetailMap :APTEntityBaseMap<T_FM_SYNC_LOG_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_SYNC_LOG_DETAIL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TRACEIDENTIFIER).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(300);
		} 
     }
	 #endregion
					#region  SyncUserRule
     public partial class FMSyncUserRuleMap :APTEntityBaseMap<T_FM_SYNC_USER_RULE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_SYNC_USER_RULE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Dep).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Team
     public partial class FMTeamMap :APTEntityBaseMap<T_FM_TEAM>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_TEAM> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(20);
builder.Property(t => t.ABB_NAME).HasMaxLength(5);
builder.HasOne(t => t.Nav_ChargePerson).WithMany().HasForeignKey(t => t.CHARGE_PERSON_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TeamPerson
     public partial class FMTeamPersonMap :APTEntityBaseMap<T_FM_TEAM_PERSON>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_TEAM_PERSON> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Team).WithMany(t=>t.Nav_TeamPersons).HasForeignKey(t => t.TEAM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Person).WithMany(t=>t.Nav_TeamPersons).HasForeignKey(t => t.PERSON_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  UserDepartment
     public partial class FMUserDepartmentMap :APTEntityBaseMap<T_FM_USER_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_USER_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany(t=>t.Nav_UserDeparts).HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  UserPost
     public partial class FMUserPostMap :APTEntityBaseMap<T_FM_USER_POST>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_USER_POST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  UserProductionUnit
     public partial class FMUserProductionUnitMap :APTEntityBaseMap<T_FM_USER_PRODUCTION_UNIT>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_USER_PRODUCTION_UNIT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany(t=>t.Nav_ProdutionUnit).HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Enums).WithMany().HasForeignKey(t => t.ENUMS_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Unit).WithMany().HasForeignKey(t => t.PRODUCTION_UNIT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  UserProductionUnitSet
     public partial class FMUserProductionUnitSetMap :APTEntityBaseMap<T_FM_USER_PRODUCTION_UNIT_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_USER_PRODUCTION_UNIT_SET> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.Property(t => t.CODE).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  UserSignFile
     public partial class FMUserSignFileMap :APTEntityBaseMap<T_FM_USER_SIGN_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_USER_SIGN_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany(t=>t.Nav_UserSignFiles).HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  UserTest
     public partial class FMUserTestMap :APTEntityBaseMap<T_FM_USER_TEST>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_USER_TEST> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_UserPost).WithMany(t=>t.Nav_UserTests).HasForeignKey(t => t.USER_POST_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  UserTransfer
     public partial class FMUserTransferMap :APTEntityBaseMap<T_FM_USER_TRANSFER>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_USER_TRANSFER> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.Property(t => t.COMPANYNAME).HasMaxLength(100);
builder.Property(t => t.DEPARTMENTNAME).HasMaxLength(100);
builder.Property(t => t.POSTNAME).HasMaxLength(100);
builder.Property(t => t.REMARK).HasMaxLength(100);
builder.Property(t => t.USERNAME_TRANSFER).HasMaxLength(50);
builder.Property(t => t.COMPANYNAME_OLD).HasMaxLength(100);
builder.Property(t => t.DEPARTMENTNAME_OLD).HasMaxLength(100);
builder.Property(t => t.POSTNAME_OLD).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  UserVacationSet
     public partial class FMUserVacationSetMap :APTEntityBaseMap<T_FM_USER_VACATION_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_USER_VACATION_SET> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(500);
builder.HasOne(t => t.Nav_Agent).WithMany().HasForeignKey(t => t.AGENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  WorkTicketCompletion
     public partial class FMWorkTicketCompletionMap :APTEntityBaseMap<T_FM_WORK_TICKET_COMPLETION>
     {   
        public override void Configure(EntityTypeBuilder<T_FM_WORK_TICKET_COMPLETION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.SHOP_DEPARTMENT_NAME).HasMaxLength(50);
builder.Property(t => t.TEAM_NAME).HasMaxLength(50);
builder.Property(t => t.MONTHStr).HasMaxLength(500);
builder.Ignore(t => t.CALC);
builder.Ignore(t => t.FINISH_RATE);
builder.Ignore(t => t.NORMAL_FINISH_RATE);
		} 
     }
	 #endregion
					#region  Oprate
     public partial class LGOprateMap :APTEntityBaseMap<T_LG_OPRATE>
     {   
        public override void Configure(EntityTypeBuilder<T_LG_OPRATE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FORM_CODE).HasMaxLength(20);
builder.Property(t => t.FORM_NAME).HasMaxLength(50);
builder.Property(t => t.BTN_CODE).HasMaxLength(20);
builder.Property(t => t.BTN_NAME).HasMaxLength(30);
		} 
     }
	 #endregion
					#region  Enterprise
     public partial class NWEnterpriseMap :TreeEntityBaseMap<T_NW_ENTERPRISE>
     {   
        public override void Configure(EntityTypeBuilder<T_NW_ENTERPRISE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(200);
builder.Ignore(t => t.CheckKeys);
		} 
     }
	 #endregion
					#region  RoleDataPerm
     public partial class NWRoleDataPermMap :APTEntityBaseMap<T_NW_ROLE_DATA_PERM>
     {   
        public override void Configure(EntityTypeBuilder<T_NW_ROLE_DATA_PERM> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  RoleMenu
     public partial class NWRoleMenuMap :APTEntityBaseMap<T_NW_ROLE_MENU>
     {   
        public override void Configure(EntityTypeBuilder<T_NW_ROLE_MENU> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  Alluser
     public partial class OPAlluserMap :APTEntityBaseMap<T_OP_ALLUSER>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_ALLUSER> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.TENANT).HasMaxLength(500);
builder.Property(t => t.PHONE).HasMaxLength(30);
		} 
     }
	 #endregion
					#region  BillingRule
     public partial class OPBillingRuleMap :APTEntityBaseMap<T_OP_BILLING_RULE>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_BILLING_RULE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.HasOne(t => t.Nav_Version).WithMany().HasForeignKey(t => t.VERSION_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BillingRuleVersion
     public partial class OPBillingRuleVersionMap :APTEntityBaseMap<T_OP_BILLING_RULE_VERSION>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_BILLING_RULE_VERSION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Rule).WithMany(t=>t.Nav_Versions).HasForeignKey(t => t.RULE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.VERSION).HasMaxLength(5);
		} 
     }
	 #endregion
					#region  ChargeTimeSet
     public partial class OPChargeTimeSetMap :APTEntityBaseMap<T_OP_CHARGE_TIME_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_CHARGE_TIME_SET> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  Client
     public partial class OPClientMap :APTEntityBaseMap<T_OP_CLIENT>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_CLIENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NICK_NAME).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.ID_CARD).HasMaxLength(30);
builder.Property(t => t.TEL).HasMaxLength(30);
builder.Property(t => t.AVATAURL).HasMaxLength(500);
builder.Property(t => t.EMAIL).HasMaxLength(50);
builder.Property(t => t.ADDR).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  ClinetOpenid
     public partial class OPClinetOpenidMap :APTEntityBaseMap<T_OP_CLINET_OPENID>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_CLINET_OPENID> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.OPEN_ID).HasMaxLength(50);
builder.HasOne(t => t.NavClient).WithMany().HasForeignKey(t => t.CLIENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CommonQuestion
     public partial class OPCommonQuestionMap :APTEntityBaseMap<T_OP_COMMON_QUESTION>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_COMMON_QUESTION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.QUESTION).HasMaxLength(200);
builder.Property(t => t.ANSWER).HasMaxLength(200);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  FileFirmware
     public partial class OPFileFirmwareMap :APTEntityBaseMap<T_OP_FILE_FIRMWARE>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_FILE_FIRMWARE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FIRMWARE_NAME).HasMaxLength(50);
builder.Property(t => t.FIRMWARE_TYPE).HasMaxLength(50);
builder.Property(t => t.FIRMWARE_PATH).HasMaxLength(200);
builder.Property(t => t.FIRMWARE_VERSION).HasMaxLength(20);
builder.Property(t => t.FIRMWARE_CONTENT).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  Member
     public partial class OPMemberMap :APTEntityBaseMap<T_OP_MEMBER>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_MEMBER> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.OPENID).HasMaxLength(50);
builder.Property(t => t.PHONE).HasMaxLength(20);
builder.HasOne(t => t.Nav_RechargeCard).WithMany().HasForeignKey(t => t.RECHARGE_CARD_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Menu
     public partial class OPMenuMap :TreeEntityBaseMap<T_OP_MENU>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_MENU> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.NAME_ACRONYM).HasMaxLength(30);
builder.Property(t => t.MENU_FORM_PARAMS).HasMaxLength(30);
builder.Property(t => t.ICON).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(30);
builder.HasOne(t => t.Nav_MenuForm).WithMany().HasForeignKey(t => t.MENU_FORM_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Notice
     public partial class OPNoticeMap :APTEntityBaseMap<T_OP_NOTICE>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_NOTICE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NOTICE_TITLE).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(30);
		} 
     }
	 #endregion
					#region  NoticeDetail
     public partial class OPNoticeDetailMap :APTEntityBaseMap<T_OP_NOTICE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_NOTICE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notice).WithMany(t=>t.Nav_NoticeDetails).HasForeignKey(t => t.NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.TEXT).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  PeakValleyConfig
     public partial class OPPeakValleyConfigMap :APTEntityBaseMap<T_OP_PEAK_VALLEY_CONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_PEAK_VALLEY_CONFIG> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.START_TIME).HasMaxLength(10);
builder.Property(t => t.END_TIME).HasMaxLength(10);
		} 
     }
	 #endregion
					#region  RechargeCard
     public partial class OPRechargeCardMap :APTEntityBaseMap<T_OP_RECHARGE_CARD>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_RECHARGE_CARD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.HasOne(t => t.Nav_CardRfid).WithMany().HasForeignKey(t => t.RFID_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REAMRK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  RechargeOrder
     public partial class OPRechargeOrderMap :APTEntityBaseMap<T_OP_RECHARGE_ORDER>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_RECHARGE_ORDER> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.HasOne(t => t.Nav_RechargeCard).WithMany().HasForeignKey(t => t.RECHARGE_CARD_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.REMARK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  RechargeSetting
     public partial class OPRechargeSettingMap :APTEntityBaseMap<T_OP_RECHARGE_SETTING>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_RECHARGE_SETTING> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  RfidCard
     public partial class OPRfidCardMap :APTEntityBaseMap<T_OP_RFID_CARD>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_RFID_CARD> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.RFID).HasMaxLength(50);
builder.Property(t => t.IDENTIFICATION).HasMaxLength(50);
builder.Property(t => t.REAMRK).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  RoleMenu
     public partial class OPRoleMenuMap :APTEntityBaseMap<T_OP_ROLE_MENU>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_ROLE_MENU> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  Tenant
     public partial class OPTenantMap :APTEntityBaseMap<T_OP_TENANT>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_TENANT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(200);
builder.Ignore(t => t.CheckKeys);
builder.HasOne(t => t.Nav_TenantDB).WithMany().HasForeignKey(t => t.DB_CONN_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Tenant).WithMany().HasForeignKey(t => t.TEMPLATE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.WXPAYKEY).HasMaxLength(50);
builder.Property(t => t.MCH_ID).HasMaxLength(50);
builder.Property(t => t.CERTPATH).HasMaxLength(100);
builder.Property(t => t.CERTPASSWORD).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  TenantDbConn
     public partial class OPTenantDbConnMap :APTEntityBaseMap<T_OP_TENANT_DB_CONN>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_TENANT_DB_CONN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.DB_CONN).HasMaxLength(200);
builder.Property(t => t.DB_CONN_WAN).HasMaxLength(200);
		} 
     }
	 #endregion
					#region  TenantDomain
     public partial class OPTenantDomainMap :APTEntityBaseMap<T_OP_TENANT_DOMAIN>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_TENANT_DOMAIN> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.DOMAIN_NAME).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.REMARK).HasMaxLength(200);
builder.HasOne(t => t.Nav_Tenant).WithMany(t=>t.Nav_Domains).HasForeignKey(t => t.TENANT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  TenantExpiration
     public partial class OPTenantExpirationMap :APTEntityBaseMap<T_OP_TENANT_EXPIRATION>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_TENANT_EXPIRATION> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_TENANT).WithMany().HasForeignKey(t => t.TENANT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  User
     public partial class OPUserMap :APTEntityBaseMap<T_OP_USER>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_USER> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.PASSWORD).HasMaxLength(500);
builder.Property(t => t.PHONE).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(30);
		} 
     }
	 #endregion
					#region  Version
     public partial class OPVersionMap :APTEntityBaseMap<T_OP_VERSION>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_VERSION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.OLD_VERSION_NO).HasMaxLength(500);
builder.Property(t => t.VERSION_NO).HasMaxLength(500);
builder.Property(t => t.VERSION_ZH).HasMaxLength(20);
builder.Property(t => t.CONTENT).HasMaxLength(500);
builder.Property(t => t.REMARK).HasMaxLength(500);
builder.Property(t => t.UPDATE_SQL).HasMaxLength(500);
builder.Ignore(t => t.CheckMenuKeys);
builder.Ignore(t => t.CheckTenantKeys);
builder.HasOne(t => t.Nav_Tenant).WithMany().HasForeignKey(t => t.TEMPLATE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  VersionMenu
     public partial class OPVersionMenuMap :APTEntityBaseMap<T_OP_VERSION_MENU>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_VERSION_MENU> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  VersionTenant
     public partial class OPVersionTenantMap :APTEntityBaseMap<T_OP_VERSION_TENANT>
     {   
        public override void Configure(EntityTypeBuilder<T_OP_VERSION_TENANT> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  Annourcement
     public partial class PFAnnourcementMap :APTEntityBaseMap<T_PF_ANNOURCEMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_ANNOURCEMENT> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TITLE).HasMaxLength(300);
builder.Property(t => t.ABSTRACT).HasMaxLength(1000);
builder.Property(t => t.CONTENT).HasMaxLength(5000);
builder.Ignore(t => t.CREATE_USER_NAME);
		} 
     }
	 #endregion
					#region  AnnourcementFile
     public partial class PFAnnourcementFileMap :APTEntityBaseMap<T_PF_ANNOURCEMENT_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_ANNOURCEMENT_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Annourcement).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.ANNOURCEMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AnnourcementOrg
     public partial class PFAnnourcementOrgMap :APTEntityBaseMap<T_PF_ANNOURCEMENT_ORG>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_ANNOURCEMENT_ORG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Annourcement).WithMany(t=>t.Nav_Orgs).HasForeignKey(t => t.ANNOURCEMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_OrgSub).WithMany().HasForeignKey(t => t.ORG_ID_SUB).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ApprovalRole
     public partial class PFApprovalRoleMap :APTEntityBaseMap<T_PF_APPROVAL_ROLE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APPROVAL_ROLE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.NAME).HasMaxLength(100);
builder.HasOne(t => t.Nav_Role).WithMany().HasForeignKey(t => t.ROLE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Approve
     public partial class PFApproveMap :APTEntityBaseMap<T_PF_APPROVE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APPROVE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.APPROVE_CODE).HasMaxLength(10);
builder.Property(t => t.CALLBACK_INTERFACE).HasMaxLength(100);
builder.Ignore(t => t.CurrentNode);
builder.Ignore(t => t.IS_SEND_MESSAGE);
builder.Property(t => t.PARAM).HasMaxLength(200);
builder.Property(t => t.REJECT_INTERFACE).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  ApproveDetail
     public partial class PFApproveDetailMap :APTEntityBaseMap<T_PF_APPROVE_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APPROVE_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Approve).WithMany(t=>t.Nav_ApproveDetails).HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.NUM).HasMaxLength(10);
builder.HasOne(t => t.Nav_ApproveUser).WithMany().HasForeignKey(t => t.APPROVE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.CONTEXT).HasMaxLength(200);
builder.HasOne(t => t.Nav_ApproveRole).WithMany().HasForeignKey(t => t.APPROVE_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ApproveOperationRole
     public partial class PFApproveOperationRoleMap :APTEntityBaseMap<T_PF_APPROVE_OPERATION_ROLE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APPROVE_OPERATION_ROLE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Approve).WithMany(t=>t.Nav_ApproveRoles).HasForeignKey(t => t.APPROVAL_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Role).WithMany().HasForeignKey(t => t.ROLE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ApproveRejectConfig
     public partial class PFApproveRejectConfigMap :APTEntityBaseMap<T_PF_APPROVE_REJECT_CONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APPROVE_REJECT_CONFIG> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.FORM_CODE).HasMaxLength(500);
builder.Property(t => t.REJECT_INTERFACE).HasMaxLength(500);
builder.Property(t => t.ARCHIVE_INTERFACE).HasMaxLength(500);
builder.Property(t => t.PARAM).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ApproveRoleDepartment
     public partial class PFApproveRoleDepartmentMap :APTEntityBaseMap<T_PF_APPROVE_ROLE_DEPARTMENT>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APPROVE_ROLE_DEPARTMENT> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Approve).WithMany(t=>t.Nav_ApproveDeparts).HasForeignKey(t => t.APPROVAL_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ApproveTemp
     public partial class PFApproveTempMap :APTEntityBaseMap<T_PF_APPROVE_TEMP>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APPROVE_TEMP> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(20);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.FORM_CODE).HasMaxLength(10);
builder.Property(t => t.CALLBACK_INTERFACE).HasMaxLength(100);
builder.Property(t => t.REMARK).HasMaxLength(200);
builder.Property(t => t.PARAM).HasMaxLength(200);
builder.Property(t => t.REJECT_INTERFACE).HasMaxLength(100);
builder.Property(t => t.ARCHIVE_INTERFACE).HasMaxLength(500);
builder.Property(t => t.APPROVE_ROLE_NAME).HasMaxLength(500);
builder.Property(t => t.CLASS_NAME).HasMaxLength(500);
builder.Property(t => t.METHOD_NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  ApproveTempDetail
     public partial class PFApproveTempDetailMap :APTEntityBaseMap<T_PF_APPROVE_TEMP_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APPROVE_TEMP_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApproveTemp).WithMany(t=>t.Nav_ApproveTempDetails).HasForeignKey(t => t.APPROVE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.NUM).HasMaxLength(10);
builder.HasOne(t => t.Nav_DefaultApproveUser).WithMany().HasForeignKey(t => t.DEFAULT_APPROVE_USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveRole).WithMany().HasForeignKey(t => t.APPROVE_ROLE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  AppVersion
     public partial class PFAppVersionMap :APTEntityBaseMap<T_PF_APP_VERSION>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APP_VERSION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  AppVersionFile
     public partial class PFAppVersionFileMap :APTEntityBaseMap<T_PF_APP_VERSION_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_APP_VERSION_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_AppVersion).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.APP_VERSION_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  BiplaySet
     public partial class PFBiplaySetMap :APTEntityBaseMap<T_PF_BIPLAY_SET>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_BIPLAY_SET> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  Bititle
     public partial class PFBititleMap :APTEntityBaseMap<T_PF_BITITLE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_BITITLE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TITLE).HasMaxLength(1500);
builder.Property(t => t.TITLE_SHOW).HasMaxLength(500);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID_CREATER).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Bivideoimg
     public partial class PFBivideoimgMap :APTEntityBaseMap<T_PF_BIVIDEOIMG>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_BIVIDEOIMG> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TITLE).HasMaxLength(300);
builder.Property(t => t.DESCRIBE).HasMaxLength(600);
builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID_CREATER).OnDelete(DeleteBehavior.Restrict);
builder.Ignore(t => t.Nav_FilesImg);
		} 
     }
	 #endregion
					#region  BivideoimgFile
     public partial class PFBivideoimgFileMap :APTEntityBaseMap<T_PF_BIVIDEOIMG_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_BIVIDEOIMG_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_BIFile).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.VIDEOIMG_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  ClientScopes
     public partial class PFClientScopesMap :APTEntityBaseMap<T_PF_CLIENT_SCOPES>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_CLIENT_SCOPES> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Scope).WithMany().HasForeignKey(t => t.SCOPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_DataChanel).WithMany(t=>t.Nav_ClientScopes).HasForeignKey(t => t.DATA_CHANNEL_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  CodeRuleRunLog
     public partial class PFCodeRuleRunLogMap :APTEntityBaseMap<T_PF_CODE_RULE_RUN_LOG>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_CODE_RULE_RUN_LOG> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  ComplaintLog
     public partial class PFComplaintLogMap :APTEntityBaseMap<T_PF_COMPLAINT_LOG>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_COMPLAINT_LOG> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_ApproveDetails).WithMany().HasForeignKey(t => t.APPROVE_DETAIL_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ApproveUser).WithMany().HasForeignKey(t => t.COMPLAINT_USER_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DataChannel
     public partial class PFDataChannelMap :APTEntityBaseMap<T_PF_DATA_CHANNEL>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_DATA_CHANNEL> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.APP_ID).HasMaxLength(30);
builder.HasOne(t => t.Nav_Tenant).WithMany().HasForeignKey(t => t.TENANT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.SECURITY_KEY).HasMaxLength(100);
builder.HasOne(t => t.Nav_DataFrequency).WithMany().HasForeignKey(t => t.DATA_FREQUENCY_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  DataFrequency
     public partial class PFDataFrequencyMap :APTEntityBaseMap<T_PF_DATA_FREQUENCY>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_DATA_FREQUENCY> builder)
		{
			base.Configure(builder);
			builder.HasIndex("CODE", "ORG_ID").IsUnique();
builder.HasIndex("NAME", "ORG_ID").IsUnique();
builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.NAME).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  Fddeback
     public partial class PFFddebackMap :APTEntityBaseMap<T_PF_FDDEBACK>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FDDEBACK> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_User).WithMany().HasForeignKey(t => t.USER_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Department).WithMany().HasForeignKey(t => t.DEPARTMENT_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.INFO).HasMaxLength(500);
builder.Property(t => t.BACKINFO).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  FddebackFile
     public partial class PFFddebackFileMap :APTEntityBaseMap<T_PF_FDDEBACK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FDDEBACK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_FeedBack).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.FDDEBACK_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FileDb
     public partial class PFFileDbMap :APTEntityBaseMap<T_PF_FILE_DB>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FILE_DB> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Type).WithMany().HasForeignKey(t => t.TYPE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(200);
builder.Property(t => t.CODE).HasMaxLength(50);
builder.Property(t => t.FILE_PATH).HasMaxLength(200);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FileDbFile
     public partial class PFFileDbFileMap :APTEntityBaseMap<T_PF_FILE_DB_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FILE_DB_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_FileDB).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.FILE_DB_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FileType
     public partial class PFFileTypeMap :APTEntityBaseMap<T_PF_FILE_TYPE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FILE_TYPE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(500);
builder.Property(t => t.NAME).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  FormHomeChart
     public partial class PFFormHomeChartMap :APTEntityBaseMap<T_PF_FORM_HOME_CHART>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FORM_HOME_CHART> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  FormHomeHmi
     public partial class PFFormHomeHmiMap :APTEntityBaseMap<T_PF_FORM_HOME_HMI>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FORM_HOME_HMI> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Hmi).WithMany().HasForeignKey(t => t.HMI_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  FormHomeRanking
     public partial class PFFormHomeRankingMap :APTEntityBaseMap<T_PF_FORM_HOME_RANKING>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FORM_HOME_RANKING> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  FormHomeStatistic
     public partial class PFFormHomeStatisticMap :APTEntityBaseMap<T_PF_FORM_HOME_STATISTIC>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FORM_HOME_STATISTIC> builder)
		{
			base.Configure(builder);
					} 
     }
	 #endregion
					#region  FormRelation
     public partial class PFFormRelationMap :APTEntityBaseMap<T_PF_FORM_RELATION>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_FORM_RELATION> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.CODE).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  HomeTitle
     public partial class PFHomeTitleMap :APTEntityBaseMap<T_PF_HOME_TITLE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_HOME_TITLE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TITLE).HasMaxLength(200);
builder.Property(t => t.COCOR).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  MqttConfig
     public partial class PFMqttConfigMap :APTEntityBaseMap<T_PF_MQTT_CONFIG>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_MQTT_CONFIG> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.MQ_IP).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  MqttConfigTheme
     public partial class PFMqttConfigThemeMap :APTEntityBaseMap<T_PF_MQTT_CONFIG_THEME>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_MQTT_CONFIG_THEME> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_MqttConfig).WithMany(t=>t.Nav_MqttConfigTheme).HasForeignKey(t => t.MQTT_CONFIG_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(20);
		} 
     }
	 #endregion
					#region  Notice
     public partial class PFNoticeMap :APTEntityBaseMap<T_PF_NOTICE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_NOTICE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.TITLE).HasMaxLength(300);
builder.Property(t => t.CONTENT).HasMaxLength(2000);
builder.Property(t => t.CREATE_NAME).HasMaxLength(50);
builder.Property(t => t.CREATE_DEPARTMENT).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  NoticeFile
     public partial class PFNoticeFileMap :APTEntityBaseMap<T_PF_NOTICE_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_NOTICE_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Notice).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.NOTICE_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  PicFilter
     public partial class PFPicFilterMap :APTEntityBaseMap<T_PF_PIC_FILTER>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_PIC_FILTER> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_Form).WithMany().HasForeignKey(t => t.PAGE_FORM_ID).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_Picture).WithMany().HasForeignKey(t => t.PICTURE_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.PICTURE_ID).HasMaxLength(50);
builder.Property(t => t.NUM).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  PicFilterDetail
     public partial class PFPicFilterDetailMap :APTEntityBaseMap<T_PF_PIC_FILTER_DETAIL>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_PIC_FILTER_DETAIL> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_PicFilter).WithMany(t=>t.Nav_PicFilterDetail).HasForeignKey(t => t.PIC_FILTER_ID).OnDelete(DeleteBehavior.Restrict);
builder.Property(t => t.NAME).HasMaxLength(50);
builder.Property(t => t.VALUE).HasMaxLength(50);
		} 
     }
	 #endregion
					#region  QuestionFeedback
     public partial class PFQuestionFeedbackMap :APTEntityBaseMap<T_PF_QUESTION_FEEDBACK>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_QUESTION_FEEDBACK> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.USER_NAME).HasMaxLength(500);
builder.Property(t => t.FEEDBACK_TIME).HasMaxLength(500);
builder.Property(t => t.DEAPARTMENT_NAME).HasMaxLength(500);
builder.Property(t => t.QUESTION_DESCRIPTION).HasMaxLength(500);
		} 
     }
	 #endregion
					#region  QuestionFeedbackFile
     public partial class PFQuestionFeedbackFileMap :APTEntityBaseMap<T_PF_QUESTION_FEEDBACK_FILE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_QUESTION_FEEDBACK_FILE> builder)
		{
			base.Configure(builder);
			builder.HasOne(t => t.Nav_QuestionFeedback).WithMany(t=>t.Nav_Files).HasForeignKey(t => t.T_PF_QUESTION_FEEDBACK).OnDelete(DeleteBehavior.Restrict);
builder.HasOne(t => t.Nav_ImgFile).WithMany().HasForeignKey(t => t.IMG_FILE_ID).OnDelete(DeleteBehavior.Restrict);
		} 
     }
	 #endregion
					#region  Scopes
     public partial class PFScopesMap :APTEntityBaseMap<T_PF_SCOPES>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_SCOPES> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.NAME).HasMaxLength(30);
builder.Property(t => t.REMARK).HasMaxLength(100);
		} 
     }
	 #endregion
					#region  VersionManage
     public partial class PFVersionManageMap :APTEntityBaseMap<T_PF_VERSION_MANAGE>
     {   
        public override void Configure(EntityTypeBuilder<T_PF_VERSION_MANAGE> builder)
		{
			base.Configure(builder);
			builder.Property(t => t.VERSION_NO).HasMaxLength(20);
builder.Property(t => t.VERSION_ZH).HasMaxLength(20);
builder.Property(t => t.VERSION).HasMaxLength(20);
builder.Property(t => t.LAST_VERSION).HasMaxLength(20);
builder.Property(t => t.CONTENT).HasMaxLength(1000);
builder.Property(t => t.GRAMMAR).HasMaxLength(1000);
		} 
     }
	 #endregion
		 }
 
