{
    "format": "csv",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/sap_profit_center_schema.json",
    "type": "object",
    "title": "SAP Profit Center Data Schema",
    "required": [
        "sap_profit_center_key",
        "sap_profit_center_name",
        "valid_from_date",
        "valid_to_date",
        "lock_indicator",
        "catlg_profit_center_key",
        "mod_stamp",
        "mod_flag"
    ],
    "properties": {
        "sap_profit_center_key": {
            "$id": "#/properties/sap_profit_center_key",
            "type": "string",
            "title": "SAP Profit Center Key",
            "pattern": "^(.*)$"
        },
        "sap_profit_center_name": {
            "$id": "#/properties/sap_profit_center_name",
            "type": "string",
            "title": "SAP Profit Center Name",
            "pattern": "^(.*)$"
        },
        "valid_from_date": {
            "$id": "#/properties/valid_from_date",
            "type": "string",
            "title": "Valid From Date",
            "description": "The start date from which the SAP profit center is considered valid, in YYYY-MM-DD format.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "valid_to_date": {
            "$id": "#/properties/valid_to_date",
            "type": "string",
            "title": "Valid To Date",
            "description": "The end date until which the SAP profit center is considered valid, in YYYY-MM-DD format.",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "lock_indicator": {
            "$id": "#/properties/lock_indicator",
            "type": "boolean",
            "title": "Lock Indicator",
            "description": "Indicates whether the SAP profit center is locked (true) or not (false)."
        },
        "catlg_profit_center_key": {
            "$id": "#/properties/catlg_profit_center_key",
            "type": "string",
            "title": "Catalog Profit Center Key",
            "pattern": "^(.*)$"
        },
        "mod_stamp": {
            "$id": "#/properties/mod_stamp",
            "type": "string",
            "title": "Modification Timestamp",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$",
            "description": "The timestamp when the record was last modified, in UTC."
        },
        "mod_flag": {
            "$id": "#/properties/mod_flag",
            "type": "string",
            "title": "Modification Flag",
            "enum": ["I", "U", "D"],
            "description": "A flag indicating the type of modification. 'I' for Insert, 'U' for Update, and 'D' for Delete."
        }
    }
}
