{
    "format": "csv",
    "definitions": {},
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "http://example.com/song_schema.json",
    "type": "object",
    "title": "GRAS DIM Song Schema",
    "required": [
        "song_no",
        "track_name",
        "track_match",
        "raas_init_key",
        "raas_init_date",
        "raas_init_user",
        "maint_owner_key",
        "song_notes",
        "title_language_key",
        "mod_stamp",
        "mod_flag"
    ],
    "properties": {
        "song_no": {
            "$id": "#/properties/song_no",
            "type": "string",
            "title": "Song Number",
            "pattern": "^(.*)$"
        },
        "track_name": {
            "$id": "#/properties/track_name",
            "type": "string",
            "title": "Track Name",
            "pattern": "^(.*)$"
        },
        "track_match": {
            "$id": "#/properties/track_match",
            "type": "boolean",
            "title": "Track Match",
            "description": "Indicates whether the track matches the criteria (true or false)."
        },
        "raas_init_key": {
            "$id": "#/properties/raas_init_key",
            "type": "string",
            "title": "RAAS Initialization Key",
            "pattern": "^(.*)$"
        },
        "raas_init_date": {
            "$id": "#/properties/raas_init_date",
            "type": "string",
            "title": "RAAS Initialization Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "description": "The date when RAAS was initialized for this song, in YYYY-MM-DD format."
        },
        "raas_init_user": {
            "$id": "#/properties/raas_init_user",
            "type": "string",
            "title": "RAAS Initialization User",
            "pattern": "^(.*)$"
        },
        "maint_owner_key": {
            "$id": "#/properties/maint_owner_key",
            "type": "string",
            "title": "Maintenance Owner Key",
            "pattern": "^(.*)$"
        },
        "song_notes": {
            "$id": "#/properties/song_notes",
            "type": "string",
            "title": "Song Notes",
            "pattern": "^(.*)$"
        },
        "title_language_key": {
            "$id": "#/properties/title_language_key",
            "type": "string",
            "title": "Title Language 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"],
            "default": "I",
            "description": "A flag indicating the type of modification. 'I' for Insert, 'U' for Update, and 'D' for Delete."
        }
    }
}
