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

variable "region" {
  type        = string
  description = "Snowflake account region"
  default     = "us-east-1"
}

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

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 = "AMAZON", is_managed = false },
    { name = "AMAZON_PLAYLISTS", is_managed = false },
    { name = "CHARTMETRIC", is_managed = false },
    { name = "CHARTS_ITUNES", is_managed = false },
    { name = "CHARTS_SHAZAM", is_managed = false },
    { name = "CHARTS_YOUTUBE", is_managed = false },
    { name = "SYS", is_managed = false },
  ]
}
