N

Size: a a a
N
N
VB
A
Product.hasMany(ProductModel, { as: 'models', onDelete: 'CASCADE' }). Нужно при Product.findAll вернуть все связанные модели и чтобы сам объект Product имел первую модель как главную внутри себя и соответственно все связанные модели включая главную через include
ProductModel.belongsTo(Product)
A
altImages: null
cardType: "default"
cloudProductId: "41570f20-cdd3-5e3a-870a-e087063a498d"
colorDescription: "Черный/Белый/Mean Green/Iron Grey"
colorways: [{colorDescription: "Черный/Белый/Mean Green/Iron Grey", images: {,…},…},…]
0: {colorDescription: "Черный/Белый/Mean Green/Iron Grey", images: {,…},…}
altImages: null
cloudProductId: "41570f20-cdd3-5e3a-870a-e087063a498d"
colorDescription: "Черный/Белый/Mean Green/Iron Grey"
images: {,…}
inStock: true
isBestSeller: false
isExcluded: false
isMemberExclusive: false
isNew: false
label: "IN_STOCK"
pdpUrl: "{countryLang}/t/шлепанцы-asuna-crater-5RkCvd/DJ4629-002"
pid: "13202732"
prebuildId: null
price: {currency: "RUB", currentPrice: 4499, discounted: false, employeePrice: 0, fullPrice: 4499}
currency: "RUB"
currentPrice: 4499
discounted: false
employeePrice: 0
fullPrice: 4499
productInstanceId: null
1: {colorDescription: "Cream II/Белый/Оранжевый/Черный", images: {,…},…}
altImages: null
cloudProductId: "25deff81-274f-5b70-ae47-c7744e3ebef6"
colorDescription: "Cream II/Белый/Оранжевый/Черный"
images: {,…}
inStock: true
isBestSeller: false
isExcluded: false
isMemberExclusive: false
isNew: false
label: "IN_STOCK"
pdpUrl: "{countryLang}/t/шлепанцы-asuna-crater-5RkCvd/DJ4629-200"
pid: "13349537"
prebuildId: null
price: {currency: "RUB", currentPrice: 4499, discounted: false, employeePrice: null, fullPrice: 4499}
productInstanceId: null
customizable: false
hasMinimumAdvertisedPrice: false
id: "c3f63577-e4a4-3482-99de-521eb2007709"
images: {,…}
inStock: true
isBestSeller: false
isExcluded: false
isGiftCard: false
isJersey: false
isMemberExclusive: false
isNBA: false
isNFL: false
isSustainable: true
label: "IN_STOCK"
nbyColorway: null
pid: "13202732"
prebuildId: null
price: {currency: "RUB", currentPrice: 4499, discounted: false, employeePrice: 0, fullPrice: 4499}
priceRangeCurrent: "4 499 ₽"
priceRangeEmployee: null
priceRangeFull: "4 499 ₽"
productInstanceId: null
productType: "FOOTWEAR"
properties: null
salesChannel: ["NikeApp", "Nike.com", "Nike Store Experiences"]
subtitle: "Мужские шлепанцы"
title: "Nike Asuna Crater"
url: "{countryLang}/t/шлепанцы-asuna-crater-5RkCvd/DJ4629-002"
I
I
I
z
z
I
z
I
ЮВ
I
ЮВ
A
A
z