32 lines
		
	
	
		
			999 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			999 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.ComponentModel.DataAnnotations.Schema;
 | 
						|
using Marco.Pms.Model.Employees;
 | 
						|
using Marco.Pms.Model.Utilities;
 | 
						|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
 | 
						|
 | 
						|
namespace Marco.Pms.Model.Directory
 | 
						|
{
 | 
						|
    public class ContactNote : TenantRelation
 | 
						|
    {
 | 
						|
        public Guid Id { get; set; }
 | 
						|
        public string Note { get; set; } = string.Empty;
 | 
						|
        public Guid CreatedById { get; set; }
 | 
						|
 | 
						|
        [ValidateNever]
 | 
						|
        [ForeignKey("CreatedById")]
 | 
						|
        public Employee? Createdby { get; set; }
 | 
						|
        public Guid? UpdatedById { get; set; }
 | 
						|
 | 
						|
        [ValidateNever]
 | 
						|
        [ForeignKey("UpdatedById")]
 | 
						|
        public Employee? UpdatedBy { get; set; }
 | 
						|
        public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
 | 
						|
        public DateTime? UpdatedAt { get; set; }
 | 
						|
        public Guid ContactId { get; set; }
 | 
						|
 | 
						|
        [ValidateNever]
 | 
						|
        [ForeignKey("ContactId")]
 | 
						|
        public Contact? Contact { get; set; }
 | 
						|
        public bool IsActive { get; set; } = true;
 | 
						|
    }
 | 
						|
}
 |