{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Membership",
  "title": "Membership",
  "properties": {
    "MembershipId": {
      "type": "integer",
      "description": "The unique ID for the membership"
    },
    "TeamId": {
      "type": "integer",
      "description": "The unique ID of the team"
    },
    "PlayerId": {
      "type": "integer",
      "description": "The player's unique PlayerID as assigned by SportsDataIO. Note: this ID stays with the player their entire career."
    },
    "PlayerName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The player's full name"
    },
    "TeamName": {
      "type": [
        "string",
        "null"
      ],
      "description": "The full name of the team"
    },
    "TeamArea": {
      "type": [
        "string",
        "null"
      ],
      "description": "The area the team is located within their home country"
    },
    "Active": {
      "type": "boolean",
      "description": "Whether the player's membership is active (true/false)"
    },
    "StartDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The start date of the membership (in UTC)"
    },
    "EndDate": {
      "type": [
        "string",
        "null"
      ],
      "description": "The end date of the membership (in UTC)"
    },
    "Updated": {
      "type": [
        "string",
        "null"
      ],
      "description": "The timestamp of when the record was last updated (US Eastern Time)"
    },
    "Jersey": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The player's jersey number on this team"
    }
  }
}