AdministrationRole.cs 579 Bytes
Newer Older
Vaclav Svaton's avatar
Vaclav Svaton committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

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

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

		[Required]
		[StringLength(10)]
		public string AccessCode { get; set; }

		public virtual ICollection<AdministrationUser> Users { get; set; }
	}
}