Topics
NoSQL Data Structures

NoSQL Data Structures

Shown below is an example of a NoSQL Document in JSON format.

{
  "id": 1,
  "buyer": {
    "account_address": "0x4B5530a87EF30f1528dd8aE3C1F211a989DB1176",
    "consensus": true
  },
  "created_datetime": 1722574981,
  "item": {
    "description": "Propeller Wingnuts",
    "order_quantity": 1000,
    "penalty_amount": 1000,
    "uom": "units"
  },
  "payments": {
    "buyer_to_seller_amount": 1000000,
    "seller_to_transporter_amount": 200000
  },
  "schedule": {
    "expected_arrival_timestamp": 1722587400,
    "expected_departure_timestamp": 1722580200,
    "penalty_amount": 100
  },
  "seller": {
    "account_address": "0xB5Ed87b732bd442105f0e69d0C24D728CC83C161",
    "consensus": true
  },
  "status": "Open",
  "transporter": {
    "account_address": "0x77c4EB7bc21f6A336B95D14Af5046AE7a7031C56",
    "consensus": true
  },
  "transport_conditions": [
    {
    "max_value": 10,
    "min_value": 1,
    "parameter_name": "temperature",
    "penalty_amount": 100
    },
    {
    "max_value": 60,
    "min_value": 40,
    "parameter_name": "humidity",
    "penalty_amount": 100
    }
  ],
  "vehicle": {
    "assigned_regn_num": "",
    "assigned_vehicle_regn_num": "MH02AA1111",
    "penalty_amount": 200
  }
}