
//--------------------------------------------------------------------
//     此代码由T4模板自动生成  byzhouhang 20210918
//	   生成时间 2021-11-23 15:40:27 
//     对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
using IRaCIS.Core.Domain.Share;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace IRaCIS.Core.Domain.Models
{
	///<summary>
	///UserTrialSite
	///</summary>
	[Table("TrialSiteUser")]
	public class TrialSiteUser : Entity, IAuditUpdate, IAuditAdd,ISoftDelete
	{

		[Required]
		public Guid UserId { get; set; }


		[Required]
		public Guid TrialId { get; set; }


		[Required]
		public Guid SiteId { get; set; }

		public DateTime UpdateTime { get; set; }


		public DateTime CreateTime { get; set; }

		public Guid CreateUserId { get; set; }

		public Guid UpdateUserId { get; set; }


		public bool IsDeleted { get; set; }

		public DateTime? DeletedTime { get; set; }

		public Guid? DeleteUserId { get; set; }

		[JsonIgnore]
		[ForeignKey("UserId")]
		public User User { get; set; }
		[JsonIgnore]
		[ForeignKey("TrialId")]
		public Trial Trial { get; set; }
		[JsonIgnore]
		[ForeignKey("SiteId")]
		public Site Site { get; set; }



		[JsonIgnore]
		public TrialSite TrialSite { get; set; }
		[JsonIgnore]
		public TrialUser TrialUser { get; set; }


	}


	
}	 
