Created models and migrations

Basic models and migrations for the system. Also basic resource controllers were generated (will be edited later)