using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace DiplomovaPrace.Model.Products
{
	public class ProductCategory
	{
		public int ID { get; set; }

		[Required]
		[MaxLength(100)]
		public string Name { get; set; }

		[MaxLength(300)]
		public string Description { get; set; }

		public ProductCategory Parent { get; set; }

		public int ParentID { get; set; }

		public List<ProductCategory> Descendants { get; } = new List<ProductCategory>();

		public DateTime Created { get; set; }

		public DateTime? Deleted { get; set; }

		public enum Entry
		{
			Root = -1
		}
	}
}
