add a post schema and use reference model