using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Marco.Pms.Model.Directory
{
    public class ContactPhone
    {
        public Guid Id { get; set; }
        public string Label { get; set; } = string.Empty;
        public string PhoneNumber { get; set; } = string.Empty;
        [DisplayName("ContactId")]
        public Guid ContactId { get; set; }
        [ValidateNever]
        [ForeignKey(nameof(ContactId))]
        public Contact? Contact { get; set; }
        public bool IsPrimary { get; set; }

        public Guid TenantId { get; set; }

    }
}
