using System.ComponentModel.DataAnnotations;

namespace Gremlin_BlazorServer.Data.EntityClasses
{
	public class ProductLine : IMetadata
	{
		//primary key:
		//public uint ProductLineId { get; set; }
		[Key]
		public string ProductLineCode { get; set; } = string.Empty;

		//navigation properties:
		public List<Product> Products { get; set; }= new List<Product>();

		//class properties:
		public string ProductLineDescription { get; set; } = string.Empty;

		//metadata:
		public DateTime DataCreationDate { get; set; } = DateTime.Now;
		public DateTime DataModificationDate { get; set; } = DateTime.Now;
		public DateTime DataValidFrom { get; set; } = DateTime.Now;
		public DateTime DataValidUntil { get; set; } = DateTime.MaxValue;
		public string DataModificationByUser { get; set; } = string.Empty;
		public uint DataVersionNumber { get; set; }
		public string DataVersionComment { get; set; } = string.Empty;
		public string DataStatus { get; set; } = string.Empty;
	}
}
