{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lockally-com/json-schema/lockally-com-migration-mailbox-schema.json",
  "title": "MigrationMailbox",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lockally-com-openapi.yml#/components/schemas/MigrationMailbox",
  "type": "object",
  "required": [
    "id",
    "migration_id",
    "tenant_id",
    "source_email",
    "status",
    "synced_message_count",
    "failed_message_count",
    "created_at",
    "updated_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "migration_id": {
      "type": "string",
      "format": "uuid"
    },
    "tenant_id": {
      "type": "string",
      "format": "uuid"
    },
    "source_email": {
      "type": "string"
    },
    "dest_email": {
      "type": [
        "string",
        "null"
      ]
    },
    "dest_mailbox_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "status": {
      "type": "string"
    },
    "source_message_count": {
      "type": [
        "integer",
        "null"
      ]
    },
    "synced_message_count": {
      "type": "integer"
    },
    "failed_message_count": {
      "type": "integer"
    },
    "source_size_bytes": {
      "type": "integer",
      "format": "int64"
    },
    "synced_size_bytes": {
      "type": "integer",
      "format": "int64"
    },
    "last_synced_uid": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_synced_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "error_message": {
      "type": [
        "string",
        "null"
      ]
    },
    "started_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "completed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}