generate schema before generating data