Generate schema file