Created migrations and models.

NEW
* Created and defined the database migrations.
* Createdthe models with their defined relations and base implementations.