[
  {
    "name": "공사진도율",
    "description": "건설 프로젝트의 진행률을 나타내는 KPI",
    "scopeMappingStrategy": "RULE_BASED",
    "autoGenerateOrgScope": true,
    "scopeMappingRules": {
      "scope01": {
        "strategy": "FIELD_MAPPING",
        "sourceField": "project_name",
        "required": true
      },
      "scope02": {
        "strategy": "LOOKUP_TABLE",
        "sourceField": "address",
        "mappingTable": "address_region_mapping",
        "mappingColumn": "region",
        "defaultValue": "기타"
      },
      "scope03": {
        "strategy": "FIELD_MAPPING",
        "sourceField": "contractor_company",
        "required": true
      },
      "scope04": {
        "strategy": "FORMULA",
        "formula": "${total_budget} >= 100000000 ? '대규모' : ${total_budget} >= 50000000 ? '중규모' : '소규모'",
        "defaultValue": "중규모"
      },
      "scope05": {
        "strategy": "STATIC",
        "staticValue": "건축공사"
      }
    },
    "dataSource": {
      "type": "API",
      "apiEndpoint": "https://api.construction-system.com/progress",
      "refreshInterval": 60
    },
    "validationRules": {
      "valueRange": { "min": 0, "max": 100 },
      "requiredScopes": ["scope01", "scope02", "scope03"],
      "allowedScopeValues": {
        "scope04": ["대규모", "중규모", "소규모"],
        "scope05": ["건축공사", "토목공사", "플랜트공사"]
      }
    }
  },
  {
    "name": "안전사고율",
    "description": "건설 현장의 안전사고 발생률",
    "scopeMappingStrategy": "ENTITY_BASED",
    "autoGenerateOrgScope": true,
    "scopeMappingRules": {
      "scope01": {
        "strategy": "FIELD_MAPPING",
        "sourceField": "site_name",
        "required": true
      },
      "scope02": {
        "strategy": "API_CALL",
        "apiEndpoint": "https://api.address-service.com/region",
        "sourceField": "site_address"
      },
      "scope03": {
        "strategy": "FIELD_MAPPING", 
        "sourceField": "company_name",
        "required": true
      },
      "scope04": {
        "strategy": "LOOKUP_TABLE",
        "sourceField": "worker_count",
        "mappingTable": "project_size_mapping",
        "mappingColumn": "size_category"
      },
      "scope05": {
        "strategy": "FIELD_MAPPING",
        "sourceField": "construction_type",
        "defaultValue": "일반공사"
      }
    },
    "dataSource": {
      "type": "DATABASE",
      "connection": "safety_db",
      "query": "SELECT * FROM safety_incidents WHERE report_date >= CURRENT_DATE - INTERVAL '1 month'",
      "refreshInterval": 1440
    },
    "validationRules": {
      "valueRange": { "min": 0, "max": 1000 },
      "requiredScopes": ["scope01", "scope02", "scope03"]
    }
  },
  {
    "name": "품질점수",
    "description": "건설 품질 평가 점수",
    "scopeMappingStrategy": "MANUAL", 
    "autoGenerateOrgScope": false,
    "scopeMappingRules": {
      "scope01": {
        "strategy": "FIELD_MAPPING",
        "sourceField": "project_id"
      },
      "scope02": {
        "strategy": "FIELD_MAPPING", 
        "sourceField": "region"
      },
      "scope03": {
        "strategy": "FIELD_MAPPING",
        "sourceField": "company"
      }
    },
    "dataSource": {
      "type": "MANUAL",
      "description": "수동 입력으로 관리되는 KPI"
    },
    "validationRules": {
      "valueRange": { "min": 0, "max": 100 },
      "requiredScopes": ["scope02", "scope03"]
    }
  }
]