using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace TravelExpenses.Models
{
    public class CostCenter
    {
        [Key][DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int CostCenterId { get; set; }
        [Required][StringLength(100)] public string CostCenterName { get; set; }
        //TODO: CostCenterCode
        [Required] public int CenterId { get; set; } public Center Center { get; set; }
    }
}
