Defined relationships and generated initial migrations

Still to do:
- add validations
- add workflow events