# Common Storage Schema
# Shared storage configuration for all services

{
  base_path | String | doc "Base path for all service storage" | default = "/var/lib/vapora",
  backend | String | doc "Storage backend: filesystem, s3, azure" | default = "filesystem",

  backup = {
    enabled | Bool | doc "Enable automated backups" | default = true,
    interval | Number | doc "Backup interval in hours" | default = 24,
    max_backups | Number | doc "Maximum backups to retain" | default = 30,
    path | String | doc "Backup storage path" | default = "/var/backups/vapora",
  },

  cache = {
    enabled | Bool | doc "Enable caching layer" | default = true,
    ttl | Number | doc "Cache TTL in seconds" | default = 3600,
    max_size | Number | doc "Maximum cache size in bytes" | default = 104857600,
  },
}
