// Code generated by user config generator. DO NOT EDIT.

package serviceintegration

import (
	"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"

	"github.com/aiven/terraform-provider-aiven/internal/sdkprovider/userconfig/diff"
)

func clickhousePostgresqlUserConfig() *schema.Schema {
	return &schema.Schema{
		Description:      "ClickhousePostgresql user configurable settings. **Warning:** There's no way to reset advanced configuration options to default. Options that you add cannot be removed later",
		DiffSuppressFunc: diff.SuppressUnchanged,
		Elem: &schema.Resource{Schema: map[string]*schema.Schema{"databases": {
			Description: "Databases to expose",
			Elem: &schema.Resource{Schema: map[string]*schema.Schema{
				"database": {
					Description: "PostgreSQL database to expose. Default: `defaultdb`.",
					Optional:    true,
					Type:        schema.TypeString,
				},
				"schema": {
					Description: "PostgreSQL schema to expose. Default: `public`.",
					Optional:    true,
					Type:        schema.TypeString,
				},
			}},
			MaxItems: 10,
			Optional: true,
			Type:     schema.TypeList,
		}}},
		MaxItems: 1,
		Optional: true,
		Type:     schema.TypeList,
	}
}
