Altered model to make Pattern entities query-able by ID.