Cannot get schema to generate properly