What Positions are there on a Ship? How are their Duties Divided?

What Positions are there on a Ship? How are their Duties Divided?