I think this mapping; the name should change to just "licenses", but I think specifying the "id" - > license(name, url) it right.