{
  "version": 1,
  "updated_at": "2026-02-15T00:00:00.000Z",
  "values": {
    "general": {
      "language_default": "es",
      "languages_available": [
        "es",
        "en"
      ],
      "timezone": "America/Bogota",
      "datetime_format": "YYYY-MM-DD HH:mm",
      "currency": "CRC",
      "sale_price_crc_per_kg": 3500,
      "harvest_target_weight_g": 500,
      "cycle_duration_weeks": 32,
      "cycle_closure_thresholds": {
        "harvest_completion_pct": 95,
        "residual_biomass_kg_max": 1,
        "residual_live_fish_max": 0,
        "sales_realization_pct": 90,
        "cash_recovery_pct": 90
      },
      "preferred_units": {
        "weight_small": "g",
        "weight_large": "kg",
        "volume_small": "ml",
        "volume_large": "l"
      }
    },
    "alerts": {
      "dedupe": {
        "enabled": true,
        "window_minutes": 1440
      },
      "quiet_hours": {
        "enabled": true,
        "from": "22:00",
        "to": "06:00",
        "mute_severities": [
          "INFO"
        ]
      },
      "rules": [
        {
          "id": "R:WATER_PH_LOW",
          "type": "WATER_PH_LOW",
          "is_enabled": true,
          "severity_default": "WARN",
          "thresholds": {
            "ph_warn": 7.0,
            "ph_crit": 6.5
          }
        },
        {
          "id": "R:WATER_O2_CRITICAL",
          "type": "WATER_O2_CRITICAL",
          "is_enabled": true,
          "severity_default": "CRIT",
          "thresholds": {
            "o2_warn": 5.0,
            "o2_crit": 3.0
          }
        },
        {
          "id": "R:WATER_NO2_HIGH",
          "type": "WATER_NO2_HIGH",
          "is_enabled": true,
          "severity_default": "WARN",
          "thresholds": {
            "no2_warn": 0.2,
            "no2_crit": 0.5
          }
        },
        {
          "id": "R:WATER_NO3_HIGH",
          "type": "WATER_NO3_HIGH",
          "is_enabled": false,
          "severity_default": "WARN",
          "thresholds": {
            "no3_warn": 80,
            "no3_crit": 120
          }
        },
        {
          "id": "R:WATER_NH3_HIGH",
          "type": "WATER_NH3_HIGH",
          "is_enabled": true,
          "severity_default": "WARN",
          "thresholds": {
            "nh3_warn": 0.05,
            "nh3_crit": 0.2
          }
        },
        {
          "id": "R:WATER_TEMP_OUT",
          "type": "WATER_TEMP_OUT",
          "is_enabled": true,
          "severity_default": "WARN",
          "thresholds": {
            "temp_warn_min": 24,
            "temp_warn_max": 30,
            "temp_crit_min": 20,
            "temp_crit_max": 34
          }
        },
        {
          "id": "R:DEATHS_SPIKE",
          "type": "DEATHS_SPIKE",
          "is_enabled": true,
          "severity_default": "WARN",
          "thresholds": {
            "deaths_warn": 3,
            "deaths_crit": 10
          }
        },
        {
          "id": "R:FEED_REFUSAL_HIGH",
          "type": "FEED_REFUSAL_HIGH",
          "is_enabled": true,
          "severity_default": "WARN",
          "thresholds": {
            "feed_refusal_warn": 0.4,
            "feed_refusal_crit": 0.6
          }
        },
        {
          "id": "R:INVENTORY_DAYS_LEFT_LOW",
          "type": "INVENTORY_DAYS_LEFT_LOW",
          "is_enabled": true,
          "severity_default": "WARN",
          "thresholds": {
            "inventory_days_warn": 7,
            "inventory_days_crit": 3
          }
        },
        {
          "id": "R:TASK_OVERDUE",
          "type": "TASK_OVERDUE",
          "is_enabled": true,
          "severity_default": "CRIT",
          "thresholds": {
            "task_overdue_grace_minutes": 0
          }
        },
        {
          "id": "R:PROJECT_DUE_TODAY",
          "type": "PROJECT_DUE_TODAY",
          "is_enabled": true,
          "severity_default": "CRIT",
          "thresholds": {
            "project_due_day_severity": "CRIT"
          }
        },
        {
          "id": "R:TARGET_WEIGHT_NEAR",
          "type": "TARGET_WEIGHT_NEAR",
          "is_enabled": true,
          "severity_default": "INFO",
          "thresholds": {
            "target_near_pct": 0.9,
            "target_over_severity": "WARN",
            "target_near_severity": "INFO"
          }
        },
        {
          "id": "R:COST_PER_KG_TOO_HIGH",
          "type": "COST_PER_KG_TOO_HIGH",
          "is_enabled": true,
          "severity_default": "CRIT",
          "thresholds": {
            "sale_price_crc_per_kg": 3500
          }
        },
        {
          "id": "R:MARGIN_NEGATIVE",
          "type": "MARGIN_NEGATIVE",
          "is_enabled": true,
          "severity_default": "CRIT",
          "thresholds": {}
        }
      ]
    },
    "tasks": {
      "categories": [
        {
          "id": "FEEDING",
          "name": "Alimentaci\u00f3n",
          "color": "#0ea5e9",
          "icon": "utensils",
          "is_active": true
        },
        {
          "id": "WATER_PARAMS",
          "name": "Par\u00e1metros diarios",
          "color": "#6366f1",
          "icon": "droplet",
          "is_active": true
        },
        {
          "id": "CLEANING",
          "name": "Limpieza",
          "color": "#22c55e",
          "icon": "sparkles",
          "is_active": true
        },
        {
          "id": "WEIGHING",
          "name": "Pesaje",
          "color": "#f97316",
          "icon": "scale",
          "is_active": true
        }
      ],
      "scheduler": {
        "generate_next_days": 7,
        "water_params_deadline_hhmm": "18:00",
        "feeding_tolerance_minutes": 20
      },
      "justification_reasons": [
        {
          "id": "WEATHER",
          "name": "Clima"
        },
        {
          "id": "EQUIPMENT",
          "name": "Falla equipo"
        },
        {
          "id": "STAFF",
          "name": "Personal"
        },
        {
          "id": "OTHER",
          "name": "Otro"
        }
      ],
      "priority_policy": {
        "default_priority": "MED",
        "by_category": {
          "FEEDING": "HIGH",
          "WATER_PARAMS": "HIGH",
          "CLEANING": "MED",
          "WEIGHING": "MED"
        }
      },
      "templates": [
        {
          "id": "TPL:FEEDING",
          "name": "Alimentaci\u00f3n (usa feeding_times del batch)",
          "is_active": true
        },
        {
          "id": "TPL:WATER_PARAMS",
          "name": "Par\u00e1metros diarios",
          "is_active": true
        },
        {
          "id": "TPL:CLEAN_DEC1",
          "name": "Limpieza decantador 1 (semanal)",
          "is_active": true
        },
        {
          "id": "TPL:CLEAN_DEC2",
          "name": "Limpieza decantador 2 (biweekly)",
          "is_active": true
        },
        {
          "id": "TPL:WEIGH_MONTHLY",
          "name": "Pesaje (mensual)",
          "is_active": true
        }
      ]
    },
    "inventory": {
      "categories": [
        {
          "id": "FEED",
          "name": "Alimento",
          "is_active": true
        },
        {
          "id": "CHEMICAL",
          "name": "Qu\u00edmicos",
          "is_active": true
        },
        {
          "id": "BIO",
          "name": "Biol\u00f3gicos",
          "is_active": true
        },
        {
          "id": "ELECTRICITY",
          "name": "Electricidad",
          "is_active": true
        },
        {
          "id": "OTHER",
          "name": "Otros",
          "is_active": true
        }
      ],
      "units": [
        {
          "id": "kg",
          "name": "Kilogramo",
          "is_active": true
        },
        {
          "id": "g",
          "name": "Gramo",
          "is_active": true
        },
        {
          "id": "ml",
          "name": "Mililitro",
          "is_active": true
        },
        {
          "id": "l",
          "name": "Litro",
          "is_active": true
        },
        {
          "id": "unit",
          "name": "Unidad",
          "is_active": true
        }
      ],
      "conversions": {
        "g_to_kg": 0.001,
        "kg_to_g": 1000,
        "ml_to_l": 0.001,
        "l_to_ml": 1000
      },
      "days_left_policy": {
        "method_default": "REAL",
        "avg_window_days": 14,
        "warn_days": 7,
        "crit_days": 3
      },
      "objective_stock_multiplier": 2,
      "feed_mapping": {
        "0x0": null,
        "2x2": null,
        "4x4": null,
        "6x6": null
      },
      "feed_naming": {
        "0x0": {
          "international_name": "Starter Crumble",
          "custom_name": "0x0"
        },
        "2x2": {
          "international_name": "Starter Pellet 2 mm",
          "custom_name": "2x2"
        },
        "4x4": {
          "international_name": "Grower Pellet 4 mm",
          "custom_name": "4x4"
        },
        "6x6": {
          "international_name": "Finisher Pellet 6 mm",
          "custom_name": "6x6"
        }
      },
      "auto_inputs": {
        "molasses_pct": 0.1,
        "bicarbonate": {
          "target_ph": 8.0,
          "factor_g_per_0_1ph_per_1000l": 10
        }
      }
    },
    "ras": {
      "water_ranges": {
        "ph": {
          "safe": {
            "min": 7.0,
            "max": 8.5
          },
          "optimal": {
            "min": 7.4,
            "max": 8.1
          }
        },
        "o2": {
          "safe": {
            "min": 5.0,
            "max": 999
          },
          "optimal": {
            "min": 6.0,
            "max": 10
          }
        },
        "no2": {
          "safe": {
            "min": 0,
            "max": 0.2
          },
          "optimal": {
            "min": 0,
            "max": 0.1
          }
        },
        "no3": {
          "safe": {
            "min": 0,
            "max": 80
          },
          "optimal": {
            "min": 0,
            "max": 40
          }
        },
        "nh3": {
          "safe": {
            "min": 0,
            "max": 0.05
          },
          "optimal": {
            "min": 0,
            "max": 0.02
          }
        },
        "temp_c": {
          "safe": {
            "min": 24,
            "max": 30
          },
          "optimal": {
            "min": 26,
            "max": 29
          }
        },
        "kh": {
          "safe": {
            "min": 60,
            "max": 200
          },
          "optimal": {
            "min": 80,
            "max": 140
          }
        },
        "turbidity": {
          "safe": {
            "min": 0,
            "max": 999
          },
          "optimal": {
            "min": 0,
            "max": 999
          }
        },
        "conductivity": {
          "safe": {
            "min": 0,
            "max": 99999
          },
          "optimal": {
            "min": 0,
            "max": 99999
          }
        },
        "orp": {
          "safe": {
            "min": 0,
            "max": 9999
          },
          "optimal": {
            "min": 0,
            "max": 9999
          }
        }
      },
      "targets": {
        "expected_survival_pct": 0.92,
        "expected_fcr": 1.6,
        "recommended_density_kg_m3": 60
      },
      "growth_rules": {
        "target_weight_g": 500,
        "near_target_pct": 0.9,
        "slow_growth_threshold": 0.0
      },
      "harvest_rules": {
        "min_harvest_weight_g": 450,
        "recommended_window_days": 21
      }
    },
    "users_roles": {
      "permissions": [
        "MANAGE_TANKS",
        "MANAGE_BATCHES",
        "MANAGE_DAILY_LOGS",
        "MANAGE_FEEDING_PLANS",
        "MANAGE_INVENTORY",
        "MANAGE_TASKS",
        "MANAGE_ALERTS",
        "MANAGE_SETTINGS",
        "VIEW_FINANCE",
        "VIEW_ECON"
      ],
      "roles": [
        {
          "id": "ADMIN",
          "name": "Admin",
          "permissions": [
            "MANAGE_TANKS",
            "MANAGE_BATCHES",
            "MANAGE_DAILY_LOGS",
            "MANAGE_FEEDING_PLANS",
            "MANAGE_INVENTORY",
            "MANAGE_TASKS",
            "MANAGE_ALERTS",
            "MANAGE_SETTINGS",
            "VIEW_FINANCE",
            "VIEW_ECON"
          ]
        },
        {
          "id": "OPERATOR",
          "name": "Operador",
          "permissions": [
            "MANAGE_DAILY_LOGS",
            "MANAGE_INVENTORY",
            "MANAGE_TASKS",
            "MANAGE_ALERTS"
          ]
        }
      ],
      "users": [
        {
          "id": 1,
          "name": "Admin Demo",
          "email": "admin@demo.local",
          "role_id": "ADMIN",
          "status": "ACTIVE",
          "language": "es"
        },
        {
          "id": 2,
          "name": "Operador Demo",
          "email": "operator@demo.local",
          "role_id": "OPERATOR",
          "status": "ACTIVE",
          "language": "es"
        }
      ],
      "current_user_id": 1
    },
    "integrations": {
      "notifications": {
        "in_app": true,
        "email": false,
        "push": false
      },
      "exports": {
        "csv": true,
        "excel": false
      },
      "backups": {
        "enabled": false
      }
    },
    "ui": {
      "theme": "light",
      "table_density": "normal",
      "dashboard_widgets": {
        "alerts": true,
        "inventory": true,
        "tasks": true,
        "water": true
      },
      "severity_colors": {
        "INFO": "#3b82f6",
        "WARN": "#eab308",
        "CRIT": "#ef4444"
      }
    },
    "security": {
      "session_duration_minutes": 240,
      "auto_logout_enabled": false,
      "password_policy": {
        "min_length": 8,
        "require_numbers": true,
        "require_symbols": false
      }
    }
  }
}
