using DiplomovaPrace.Model.Security;
using Havit.Data.Patterns.DataSeeds;
using Havit.Data.Patterns.DataSeeds.Profiles;

namespace DiplomovaPrace.DataLayer.Seeds
{
	public class RoleSeed : DataSeed<DefaultProfile>
	{
		public override void SeedData()
		{
			Role[] data = new Role[]
			{
				new Role
				{
					ID = (int)Role.Entry.Admin,
					Name = "Admin"
				},
				new Role
				{
					ID = (int)Role.Entry.User,
					Name = "Uživatel" // TODO: Zmenit na nazev pouzity v enum!
				}
			};

			Seed(For(data).PairBy(i => i.Name).WithoutUpdate());
		}
	}
}
