Files
hamkadr/src/JobsMedical.Web/Models/ContactMethod.cs
T

24 lines
746 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace JobsMedical.Web.Models;
/// <summary>
/// One contact channel for an applicant («آماده به کار») listing. A listing can carry several —
/// e.g. three phones + an email + an Instagram page. <see cref="Value"/> holds the raw handle /
/// number / address; <see cref="Type"/> decides how it's linked (tel:, mailto:, t.me/…, etc.).
/// </summary>
public class ContactMethod
{
public int Id { get; set; }
public int TalentListingId { get; set; }
public TalentListing TalentListing { get; set; } = null!;
public ContactType Type { get; set; }
[Required, MaxLength(250)]
public string Value { get; set; } = "";
public int SortOrder { get; set; }
}