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

namespace HaaSMiddleware.DomainObjects.Notifications {
	[Table("MessageTemplate")]
	public class MessageTemplate : IdentifiableDbEntity {
		[Required]
		[StringLength(50)]
		public string Name { get; set; }

		[Required]
		[StringLength(200)]
		public string Description { get; set; }

		public NotificationEvent Event { get; set; }

		public virtual ICollection<MessageLocalization> Localizations { get; set; }

		public virtual ICollection<MessageTemplateParameter> Parameters { get; set; }
	}
}