{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://llmatica.dev/schemas/1778054278631-pdf.entities.json",
  "title": "ASN Workflow",
  "type": "object",
  "x-run-id": "1778054278631-pdf",
  "x-spec-version": "0.2.0",
  "$defs": {
    "AdvancedShipmentNotice": {
      "type": "object",
      "title": "AdvancedShipmentNotice",
      "x-id": "ENT-001",
      "x-table": "advanced_shipment_notice",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "x-primary-key": true,
          "x-unique": true
        },
        "asnId": {
          "type": "string",
          "x-unique": true
        },
        "status": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "Represents a notice for an upcoming shipment.",
      "required": [
        "id",
        "asnId",
        "status",
        "createdAt",
        "updatedAt"
      ]
    },
    "AsnLineItem": {
      "type": "object",
      "title": "AsnLineItem",
      "x-id": "ENT-002",
      "x-table": "asn_line_item",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "x-primary-key": true,
          "x-unique": true
        },
        "sku": {
          "type": "string"
        },
        "quantity": {
          "type": "integer"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "description": "Represents individual items within an ASN.",
      "required": [
        "id",
        "sku",
        "quantity",
        "createdAt",
        "updatedAt"
      ]
    },
    "Order": {
      "type": "object",
      "title": "Order",
      "x-id": "ENT-003",
      "x-table": "order",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "x-primary-key": true,
          "x-unique": true
        },
        "poNumber": {
          "type": "string"
        }
      },
      "description": "Represents a purchase order linked to an ASN.",
      "required": [
        "id",
        "poNumber"
      ]
    },
    "DoorMaster": {
      "type": "object",
      "title": "DoorMaster",
      "x-id": "ENT-004",
      "x-table": "door_master",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "x-primary-key": true,
          "x-unique": true
        },
        "doorNumber": {
          "type": "string"
        }
      },
      "description": "Represents a list of doors available for assignment.",
      "required": [
        "id",
        "doorNumber"
      ]
    },
    "ReceivingConfirmationReport": {
      "type": "object",
      "title": "ReceivingConfirmationReport",
      "x-id": "ENT-005",
      "x-table": "receiving_confirmation_report",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "x-primary-key": true,
          "x-unique": true
        },
        "rcrId": {
          "type": "string"
        }
      },
      "description": "Represents a report confirming receipt of goods.",
      "required": [
        "id",
        "rcrId"
      ]
    },
    "StandardAsn": {
      "type": "object",
      "title": "StandardAsn",
      "x-id": "ENT-006",
      "x-table": "standard_asn",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "x-primary-key": true,
          "x-unique": true
        }
      },
      "description": "ASN created via Purchase Orders.",
      "required": [
        "id"
      ]
    },
    "LocalAsn": {
      "type": "object",
      "title": "LocalAsn",
      "x-id": "ENT-007",
      "x-table": "local_asn",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "x-primary-key": true,
          "x-unique": true
        }
      },
      "description": "ASN created based on Vendor.",
      "required": [
        "id"
      ]
    }
  }
}