RALEIGH, N.C. (AP) — The longtime official in North Carolina's capital city responsible for registering deed and marriage records has pleaded guilty to embezzling more than $900,000 in cash from her office to repay credit card and household debts.

Media organizations reported former Wake County Register of Deeds Laura Riddick entered her guilty plea Friday. Her plea deal with prosecutors calls for her to serve at least five years in prison.

The county's insurance company discovered last year that $2.3 million in public money went missing from Riddick's office between 2013 and 2017. Prosecutors charged four former employees, including Riddick.

Registers of deeds in North Carolina record mortgages and maintain birth and death records, and issue marriage licenses. Riddick held the office from 1996 until resigning last year.