variable "account_name" {
  type        = string
  description = "Snowflake account name"
  default     = "DELPHI"
}

variable "database_name" {
  type        = string
  description = "The name of the database (must be upper-case)."
  default     = "DELPHI_CRM_DATA"
}

variable "schemas" {
  type = list(object({
    name                 = string
    is_managed           = optional(bool, true)
    create_roles         = optional(bool, true)
    read_role_name       = optional(string)
    read_write_role_name = optional(string)
  }))
  description = "A list of schemas to create in the database"
  default = [
    { name = "BACKUPS", is_managed = false, create_roles = false },
    { name = "FIVETRAN_EYEBALL_OUTSHINE_STAGING", is_managed = false, create_roles = false },
    { name = "HIGHTOUCH_AUDIT", is_managed = false, create_roles = true },
    { name = "RAW_SALESFORCE_MARKETING_CLOUD", is_managed = false, create_roles = true },
    { name = "RAW_SALESFORCE_SALES_CLOUD", is_managed = false, create_roles = true },
    { name = "SYS", is_managed = false, create_roles = false },
    { name = "WAVE", is_managed = false, create_roles = false },
  ]
}
