moved enums outside Entities