You can keep your baby in a bassinet for as long as 6 months but some people move there baby to a crib at 3 months of age.
Either way when you do move your baby to a crib at either 3 or 6 months of age the baby should continue to sleep in your room until they reach 1 year of age.
Then at 1 year of age you can move the babies crib into their own room but do keep a baby monitor on the baby so you can keep an eye on the baby from your own room at night.