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

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)
    data_retention_days  = optional(number, 1)
  }))
  description = "A list of schemas to create in the database."
  default = [
    { name = "DIM", is_managed = true, create_roles = true },
  ]
}
