Chief Jeffrey Maddrey (left) with Commissioner Bratton and Chief Gerald Nelson. Photo: NYPD

A retired NYPD cop, Tabatha Foster, is suing New York City for $100 million, claiming in court filings that a seven-year affair with her superior officer, Chief Jeffrey Maddrey, ended in a beating in a park in Queens. “I felt safe until he started hitting me,” she told the New York Daily News.

In a notice of claim filed with the city on Wednesday, Foster alleged that Maddrey, the Patrol Borough Brooklyn North chief, “used his position of power and authority as a high-ranking member of the NYPD and her direct supervisor to exploit her for his sexual gratification.”

Maddrey and Foster first had sex in his office at the 75th Precinct stationhouse, the filing states. “Somebody needs to stop chasing pregnant married girls around the department,” she wrote on Facebook earlier this month. Once, court documents state, they had sex in a Trump SoHo suite while Maddrey’s friend, the actor Omar Epps, was asleep nearby.

Foster also accuses Maddrey of secretly filming their sexual liaisons and of trying to coerce her into performing sexual acts with other female officers.

The court filing charged Maddrey, the married father of three daughters, with beating Foster in Tudor Park until she finally pulled a gun during the alleged December assault.

“I was so mad, I actually pulled my gun on him and literally had him at gunpoint,” she told The News. “He said, ‘Don’t shoot! Put the gun down!’

“I put the gun down and my ass got beat for real. He choked me up. He threw me from side to side like I was a rag doll.”

When a marked police car arrived at the Ozone Park green space, Maddrey simply ordered the arriving officers to leave, according to Foster.

“I still kept seeing him after that, like an idiot,” Foster told The News.

Her lawyer referred to Maddrey’s escape from prosecution as “white-shirt immunity.”

Others suggest Maddrey is a victim of unwanted attention. “The chief has years of records that document unwelcome contact from this woman,” Roy Richter, president of the Captains Endowment Association, told the Daily News. “He is currently pursuing legal recourse to bring this harassment to an end.” Maddrey plans to countersue, Richter said.

“Clearly this woman has problems,” an unnamed source close to Maddrey told the Daily News. “She’s just trying to sell her story. She wants to be the next Beyoncé, and she is going to drag the chief’s name through the mud to do it. It’s wrong.”

Unnamed sources turn up frequently in the Daily News’s coverage of Foster’s accusations: One actually showed a reporter text messages apparently between the two, in an effort to clear Maddrey’s name. “She became too clingy—she is just promoting lies to harass people,” the source said.

Foster retired from the force after suffering a stroke in 2013. Reportedly, she is not cooperating with an Internal Affairs investigation into Maddrey.