Created migrations and models.

NEW
* Created and defined the database migrations.
* Createdthe models with their defined relations and base implementations.
Merge pull request #2 from alanly/alan

Created migrations and models.