From Star Trek: Theurgy Wiki
The USS Enterprise (NCC -1701-D) was a 24th century Federation Galaxy-class starship operated by Starfleet, and the fifth Federation ship to bear the name Enterprise. The Enterprise-D served from 2364 to 2371 under the command of Captain Picard. During her career, the Enterprise served as the Federation flagship. The Enterprise was destroyed during the Battle of Veridian III in 2371. (Star Trek: The Next Generation; Star Trek Generations)
In December of 2363 and January of 2364, Lieutenant (senior grade) Marcus Alexander Slayton was assigned to the Enterprise-D as acting tactical officer prior to the arrival of the Enterprise’s official command officers.
In 2365, the USS Enterprise evacuated the Terran colony of Bringloid V, a lost colony of Terrans whose population of 225 had to be evacuated due to solar flares threatening the planet. Fifteen year old Sinead O'Riley was one of the 225 evacuated and resettled on Mariposa.