Prepare backend. Create models, associations, scopes. Cover with tests