using System.ComponentModel.DataAnnotations;

namespace LEA.Models;

public class Contact
{
    public int Id { get; set; }

    [StringLength(100, ErrorMessage = "Der Name darf maximal {1} Zeichen lang sein.")]
    [Display(Name = "Name")]
    public string? FullName { get; set; }

    [EmailAddress(ErrorMessage = "Bitte eine gültige E-Mail-Adresse eingeben.")]
    [Display(Name = "E-Mail")]
    public string? Email { get; set; }

    [Phone(ErrorMessage = "Bitte eine gültige Telefonnummer eingeben.")]
    [Display(Name = "Telefon")]
    public string? Phone { get; set; }

    public int ApplicationId { get; set; }

    public Application Application { get; set; } = null!;
}
