{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://graxana.com/schemas/axima-workforce/record-envelope-v1.schema.json",
  "title": "Axima Workforce migration record envelope v1",
  "type": "object",
  "additionalProperties": false,
  "required": ["source_id", "source_hash", "data"],
  "properties": {
    "source_id": {"type": "string", "minLength": 1, "maxLength": 255},
    "source_created_at": {"type": ["string", "null"], "format": "date-time"},
    "source_updated_at": {"type": ["string", "null"], "format": "date-time"},
    "source_hash": {"type": "string", "pattern": "^[a-f0-9]{64}$"},
    "data": {"type": "object"}
  }
}
