using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.CodeAnalysis;

namespace TravelExpenses.Models
{
    public class Person
    {
        [Key][DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int PersonId { get; set; }
        [Required][StringLength(50)] public string FirstName { get; set; }
        [Required][StringLength(50)] public string LastName { get; set; }
        [NotMapped] public string FullName { get; set; }
        [Required] public int CostCenterId { get; set; } public CostCenter CostCenter { get; set; }
        [Required] public int PositionId { get; set; } public Position Position { get; set; }
        public int? SuperiorId { get; set; }
        public string IBAN { get; set; }
        public bool Leaving { get; set; }
    }
}
