The judge in the second-degree murder case of George Zimmerman has ruled his defense team can subpoena Trayvon Martin's school records, Facebook records and Twitter records.

Zimmerman’s attorneys had filed a motion to release the records.

"Although it sounds horrible to say we're going after the victim's reputation, but because of the 6th amendment, that's what we have to do," said Zimmerman's attorney Mark O'Mara.

After the hearing, O'Mara said actually getting the social media records will be difficult.

"They're multi-billion dollar companies. I'm not prepared at all to take on Facebook and Twitter," he said.

O'Mara said he hopes the companies realize the importance of turning over the records. He said he'll be looking at whether some records show Martin had a history of violence, which Judge Debra Nelson said could be relevant in the case.

During Friday's hearing, Nelson also allowed the prosecution to review Zimmerman's medical records but said they must keep them private.

"The medical records may indicate he has a broken nose but there are no x-rays, that he actually had that," said prosecutor Bernie de la Rionda.

It is yet to be determined if any of the records will be allowed as evidence at the trial.

Zimmerman's defense filed a motion to sequester a state witness and prevent them from talking to the prosecution before their deposition. Nelson said she would need time to review the motion to determine if she had the authority to do that.

Nelson said the prosecution would have the opportunity to respond to the motion.