generated Collection and Post models and established model relations