Change compound id order to userId/definition IMHO it makes more sense.