Lightspeed interview question

Suggest database structure for storing smth. Collision resolving with versioning.