using System;
using System.ComponentModel.DataAnnotations;
namespace AsbCloudApp.Data.User
{
///
/// Контакт
///
public class ContactDto : IId
{
///
public int Id { get; set; }
///
/// ключ типа компании
///
[Required]
public int IdCompanyType { get; set; }
///
/// ключ скважины
///
[Required]
public int IdWell { get; set; }
///
/// ФИО
///
[Required]
[StringLength(260, MinimumLength = 0, ErrorMessage = "Допустимая длина ФИО от 1 до 260 символов")]
public string FIO { get; set; } = null!;
///
/// Email
///
[Required]
[StringLength(260, MinimumLength = 3, ErrorMessage = "Допустимая длина email от 3 до 260 символов")]
public string Email { get; set; } = null!;
///
/// Phone
///
[Required]
[StringLength(50, MinimumLength = 1, ErrorMessage = "Допустимая длина телефона от 1 до 50 символов")]
public string Phone { get; set; } = null!;
///
/// Должность
///
[Required]
[StringLength(100, MinimumLength = 1, ErrorMessage = "Допустимая длина должности от 1 до 100 символов")]
public string Position { get; set; } = null;
///
/// Компания
///
[Required]
[StringLength(260, MinimumLength = 3, ErrorMessage = "Допустимая длина должности от 3 до 260 символов")]
public string Company { get; set; } = null!;
}
}