[TASK] Domain model mapping

This is a first draft including migrations

run ./flow doctrine:migrate to update database