{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "StateSplit prepared import",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "format",
    "version",
    "from",
    "moves",
    "trips",
    "homes",
    "work",
    "sales",
    "lots",
    "income",
    "evidence",
    "checkins"
  ],
  "properties": {
    "format": {
      "const": "statesplit-import/1"
    },
    "version": {
      "const": 1
    },
    "from": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "moves": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "state",
          "date"
        ]
      }
    },
    "trips": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "state",
          "start",
          "end"
        ]
      }
    },
    "homes": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "state",
          "start",
          "end",
          "qualifies"
        ]
      }
    },
    "work": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "state",
          "date",
          "units"
        ]
      }
    },
    "sales": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "account",
          "quantity",
          "acquired",
          "sold",
          "basis",
          "proceeds",
          "wash"
        ]
      }
    },
    "lots": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "account",
          "quantity",
          "acquired",
          "basis",
          "market"
        ]
      }
    },
    "income": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "type",
          "amount"
        ],
        "anyOf": [
          {
            "required": [
              "date"
            ]
          },
          {
            "required": [
              "start",
              "end"
            ]
          }
        ]
      }
    },
    "evidence": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "state",
          "type"
        ]
      }
    },
    "checkins": {
      "type": "array",
      "maxItems": 20000,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 100
          },
          "person": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "date": {
            "type": "string",
            "format": "date"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "acquired": {
            "type": "string",
            "format": "date"
          },
          "sold": {
            "type": "string",
            "format": "date"
          },
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "planned": {
            "type": "boolean"
          },
          "travel": {
            "type": "boolean"
          },
          "qualifies": {
            "type": "boolean"
          },
          "units": {
            "type": "number",
            "exclusiveMinimum": 0,
            "maximum": 1
          },
          "brokerage": {
            "type": "string"
          },
          "account": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{0,4}$"
          },
          "symbol": {
            "type": "string"
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "basis": {
            "type": "number",
            "minimum": 0
          },
          "proceeds": {
            "type": "number",
            "minimum": 0
          },
          "wash": {
            "type": "number",
            "minimum": 0
          },
          "market": {
            "type": "number",
            "minimum": 0
          },
          "amount": {
            "type": "number"
          },
          "stateAmounts": {
            "type": "object",
            "additionalProperties": {
              "type": "number"
            }
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "accuracy": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "from": {
            "type": "string"
          },
          "sourceKey": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountNickname": {
            "type": "string"
          },
          "term": {
            "type": "string"
          },
          "covered": {
            "type": "string"
          },
          "option": {
            "type": "boolean"
          },
          "year": {
            "type": "integer"
          },
          "annual": {
            "type": "boolean"
          }
        },
        "required": [
          "timestamp",
          "latitude",
          "longitude",
          "accuracy"
        ]
      }
    },
    "activities": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name",
          "type"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "trip": {
            "type": "string"
          },
          "traveler": {
            "type": "string"
          },
          "activity": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "start": {
            "type": "string"
          },
          "end": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "foreign": {
            "type": "boolean"
          },
          "impractical": {
            "type": "boolean"
          },
          "confirmed": {
            "type": "boolean"
          },
          "amount": {
            "type": "number",
            "minimum": 0
          },
          "soloCost": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "activity",
                "weight"
              ],
              "properties": {
                "activity": {
                  "type": "string"
                },
                "weight": {
                  "type": "number",
                  "minimum": 0
                }
              }
            }
          }
        }
      }
    },
    "businessTrips": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "activity",
          "start",
          "end",
          "destination"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "trip": {
            "type": "string"
          },
          "traveler": {
            "type": "string"
          },
          "activity": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "start": {
            "type": "string"
          },
          "end": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "foreign": {
            "type": "boolean"
          },
          "impractical": {
            "type": "boolean"
          },
          "confirmed": {
            "type": "boolean"
          },
          "amount": {
            "type": "number",
            "minimum": 0
          },
          "soloCost": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "activity",
                "weight"
              ],
              "properties": {
                "activity": {
                  "type": "string"
                },
                "weight": {
                  "type": "number",
                  "minimum": 0
                }
              }
            }
          }
        }
      }
    },
    "travelers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "trip",
          "name",
          "role"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "trip": {
            "type": "string"
          },
          "traveler": {
            "type": "string"
          },
          "activity": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "start": {
            "type": "string"
          },
          "end": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "foreign": {
            "type": "boolean"
          },
          "impractical": {
            "type": "boolean"
          },
          "confirmed": {
            "type": "boolean"
          },
          "amount": {
            "type": "number",
            "minimum": 0
          },
          "soloCost": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "activity",
                "weight"
              ],
              "properties": {
                "activity": {
                  "type": "string"
                },
                "weight": {
                  "type": "number",
                  "minimum": 0
                }
              }
            }
          }
        }
      }
    },
    "tripDays": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "trip",
          "traveler",
          "date",
          "type"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "trip": {
            "type": "string"
          },
          "traveler": {
            "type": "string"
          },
          "activity": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "start": {
            "type": "string"
          },
          "end": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "foreign": {
            "type": "boolean"
          },
          "impractical": {
            "type": "boolean"
          },
          "confirmed": {
            "type": "boolean"
          },
          "amount": {
            "type": "number",
            "minimum": 0
          },
          "soloCost": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "activity",
                "weight"
              ],
              "properties": {
                "activity": {
                  "type": "string"
                },
                "weight": {
                  "type": "number",
                  "minimum": 0
                }
              }
            }
          },
          "mixed": {
            "type": "boolean"
          }
        }
      }
    },
    "expenses": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "date",
          "category",
          "amount",
          "method"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "trip": {
            "type": "string"
          },
          "traveler": {
            "type": "string"
          },
          "activity": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "destination": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "start": {
            "type": "string"
          },
          "end": {
            "type": "string"
          },
          "purpose": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "method": {
            "type": "string"
          },
          "foreign": {
            "type": "boolean"
          },
          "impractical": {
            "type": "boolean"
          },
          "confirmed": {
            "type": "boolean"
          },
          "amount": {
            "type": "number",
            "minimum": 0
          },
          "soloCost": {
            "type": "number",
            "minimum": 0
          },
          "photo": {
            "type": "string",
            "pattern": "^data:image/jpeg;base64,"
          },
          "parts": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "activity",
                "weight"
              ],
              "properties": {
                "activity": {
                  "type": "string"
                },
                "weight": {
                  "type": "number",
                  "minimum": 0
                }
              }
            }
          },
          "mealMethod": {
            "enum": [
              "actual",
              "perDiem"
            ]
          },
          "rateId": {
            "type": "string"
          },
          "selfEmployed": {
            "type": "boolean"
          },
          "rateVerified": {
            "type": "boolean"
          }
        }
      }
    }
  }
}