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     = "ORCHARD_APP_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)
  }))
  description = "A list of schemas to create in the database"
  default = [
    { name = "DELPHI_AR_ART_RELATIONS_PROD_ART_RELATIONS", is_managed = false, create_roles = true },
    { name = "DELPHI_AR_QA_OWS_COLLABORATOR_OWS_COLLABORATOR", is_managed = false, create_roles = true },
    { name = "DELPHI_BI_DBT_PROD", is_managed = false, create_roles = true },
    { name = "DELPHI_BI_DBT_ZALLARD", is_managed = false, create_roles = true },
    { name = "DELPHI_BI_DEV_TGUPTA", is_managed = false, create_roles = true },
    { name = "DELPHI_BI_PROD", is_managed = false, create_roles = true },
    { name = "DELPHI_PROD", is_managed = false, create_roles = true },
    { name = "FIVETRAN_SHARPNESS_SKIM_STAGING", is_managed = false, create_roles = true },
  ]
}
