Added base models and migrations.