using System.ComponentModel.DataAnnotations;

namespace Gremlin_BlazorServer.Data.EntityClasses
{
	public class AccountType : IMetadata
	{
		//primary key:
		//public uint AccountTypeId { get; set; }
		[Key]   //Fluent API .HasKey funktioniert nicht
		public string AccountTypeCode { get; set; } = string.Empty;

		//navigation properties:
		public IList<Account> Accounts { get; set; } = new List<Account>();

		//class properties:
		public string AccountTypeDescription { 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;
	}
}
