generator resourceov pre restSQL