Untitled

mail@pastecode.io avatar
unknown
json
2 years ago
2.0 kB
6
Indexable
Never
{
  "id": 1,
  "name": "iphone",
  "price": 0,
  "image": null,
  "description": "",
  "specific": "",
  "createdAt": "2022-11-07T15:13:33.000Z",
  "updatedAt": "2022-11-07T15:13:33.000Z",
  "product_details": [
    {
      "id": 1,
      "name": "iphone",
      "price": "0",
      "image": null,
      "description": "",
      "createdAt": "2022-11-07T15:13:33.000Z",
      "updatedAt": "2022-11-07T15:13:33.000Z",
      "groupProductId": 1,
      "options": [
        {
          "id": 1,
          "name": "ram",
          "unit": "GB",
          "createdAt": "2022-11-07T15:13:33.000Z",
          "updatedAt": "2022-11-07T15:13:33.000Z",
          "groupProductId": null,
          "product_detail_option": {
            "value": "8",
            "createdAt": "2022-11-07T15:13:33.000Z",
            "updatedAt": "2022-11-07T15:13:33.000Z",
            "productDetailId": 1,
            "optionId": 1
          }
        },
        {
          "id": 2,
          "name": "color",
          "unit": "",
          "createdAt": "2022-11-07T15:13:33.000Z",
          "updatedAt": "2022-11-07T15:13:33.000Z",
          "groupProductId": null,
          "product_detail_option": {
            "value": "256",
            "createdAt": "2022-11-07T15:13:33.000Z",
            "updatedAt": "2022-11-07T15:13:33.000Z",
            "productDetailId": 1,
            "optionId": 2
          }
        },
        {
          "id": 3,
          "name": "storage",
          "unit": "GB",
          "createdAt": "2022-11-07T15:13:33.000Z",
          "updatedAt": "2022-11-07T15:13:33.000Z",
          "groupProductId": null,
          "product_detail_option": {
            "value": "red",
            "createdAt": "2022-11-07T15:13:33.000Z",
            "updatedAt": "2022-11-07T15:13:33.000Z",
            "productDetailId": 1,
            "optionId": 3
          }
        }
      ]
    }
  ]
}