I want to do a simple versioning system but i don\'t have ideas on how to structure my datas, and my code.
Here is a short example:
Check out ProjectPier (originally ActiveCollab). It has a system similar to this and you could look at their source.