@pos-360/prisma 1.0.0-beta.0 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (412) hide show
  1. package/lib/generated/prisma/browser.d.ts +514 -0
  2. package/lib/generated/prisma/browser.js +57 -0
  3. package/lib/generated/prisma/browser.js.map +1 -0
  4. package/lib/generated/prisma/client.d.ts +531 -0
  5. package/lib/generated/prisma/client.js +69 -0
  6. package/lib/generated/prisma/client.js.map +1 -0
  7. package/lib/generated/prisma/commonInputTypes.d.ts +1529 -0
  8. package/lib/generated/prisma/commonInputTypes.js +12 -0
  9. package/lib/generated/prisma/commonInputTypes.js.map +1 -0
  10. package/lib/generated/prisma/dmmf.d.ts +4085 -0
  11. package/lib/generated/prisma/dmmf.js +27551 -0
  12. package/lib/generated/prisma/dmmf.js.map +1 -0
  13. package/lib/generated/prisma/enums.d.ts +216 -0
  14. package/lib/generated/prisma/enums.js +205 -0
  15. package/lib/generated/prisma/enums.js.map +1 -0
  16. package/lib/generated/prisma/internal/class.d.ts +1237 -0
  17. package/lib/generated/prisma/internal/class.js +79 -0
  18. package/lib/generated/prisma/internal/class.js.map +1 -0
  19. package/lib/generated/prisma/internal/prismaNamespace.d.ts +10091 -0
  20. package/lib/generated/prisma/internal/prismaNamespace.js +1721 -0
  21. package/lib/generated/prisma/internal/prismaNamespace.js.map +1 -0
  22. package/lib/generated/prisma/internal/prismaNamespaceBrowser.d.ts +1816 -0
  23. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js +1692 -0
  24. package/lib/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  25. package/lib/generated/prisma/kysely-types.d.ts +1499 -0
  26. package/lib/generated/prisma/kysely-types.js +196 -0
  27. package/lib/generated/prisma/kysely-types.js.map +1 -0
  28. package/lib/generated/prisma/models/Address.d.ts +1339 -0
  29. package/lib/generated/prisma/models/Address.js +12 -0
  30. package/lib/generated/prisma/models/Address.js.map +1 -0
  31. package/lib/generated/prisma/models/Administrator.d.ts +1633 -0
  32. package/lib/generated/prisma/models/Administrator.js +12 -0
  33. package/lib/generated/prisma/models/Administrator.js.map +1 -0
  34. package/lib/generated/prisma/models/AdministratorToPlatform.d.ts +1208 -0
  35. package/lib/generated/prisma/models/AdministratorToPlatform.js +12 -0
  36. package/lib/generated/prisma/models/AdministratorToPlatform.js.map +1 -0
  37. package/lib/generated/prisma/models/AdministratorToStore.d.ts +1201 -0
  38. package/lib/generated/prisma/models/AdministratorToStore.js +12 -0
  39. package/lib/generated/prisma/models/AdministratorToStore.js.map +1 -0
  40. package/lib/generated/prisma/models/ApiToken.d.ts +1125 -0
  41. package/lib/generated/prisma/models/ApiToken.js +12 -0
  42. package/lib/generated/prisma/models/ApiToken.js.map +1 -0
  43. package/lib/generated/prisma/models/AwsBucket.d.ts +1435 -0
  44. package/lib/generated/prisma/models/AwsBucket.js +12 -0
  45. package/lib/generated/prisma/models/AwsBucket.js.map +1 -0
  46. package/lib/generated/prisma/models/Card.d.ts +1533 -0
  47. package/lib/generated/prisma/models/Card.js +12 -0
  48. package/lib/generated/prisma/models/Card.js.map +1 -0
  49. package/lib/generated/prisma/models/Cart.d.ts +2315 -0
  50. package/lib/generated/prisma/models/Cart.js +12 -0
  51. package/lib/generated/prisma/models/Cart.js.map +1 -0
  52. package/lib/generated/prisma/models/CartCost.d.ts +1368 -0
  53. package/lib/generated/prisma/models/CartCost.js +12 -0
  54. package/lib/generated/prisma/models/CartCost.js.map +1 -0
  55. package/lib/generated/prisma/models/CartLine.d.ts +1948 -0
  56. package/lib/generated/prisma/models/CartLine.js +12 -0
  57. package/lib/generated/prisma/models/CartLine.js.map +1 -0
  58. package/lib/generated/prisma/models/CartLineModifier.d.ts +2061 -0
  59. package/lib/generated/prisma/models/CartLineModifier.js +12 -0
  60. package/lib/generated/prisma/models/CartLineModifier.js.map +1 -0
  61. package/lib/generated/prisma/models/CartLineModifierOption.d.ts +1435 -0
  62. package/lib/generated/prisma/models/CartLineModifierOption.js +12 -0
  63. package/lib/generated/prisma/models/CartLineModifierOption.js.map +1 -0
  64. package/lib/generated/prisma/models/Checkout.d.ts +3989 -0
  65. package/lib/generated/prisma/models/Checkout.js +12 -0
  66. package/lib/generated/prisma/models/Checkout.js.map +1 -0
  67. package/lib/generated/prisma/models/CheckoutGroup.d.ts +2604 -0
  68. package/lib/generated/prisma/models/CheckoutGroup.js +12 -0
  69. package/lib/generated/prisma/models/CheckoutGroup.js.map +1 -0
  70. package/lib/generated/prisma/models/CheckoutLine.d.ts +1932 -0
  71. package/lib/generated/prisma/models/CheckoutLine.js +12 -0
  72. package/lib/generated/prisma/models/CheckoutLine.js.map +1 -0
  73. package/lib/generated/prisma/models/CheckoutLineModifierOption.d.ts +1702 -0
  74. package/lib/generated/prisma/models/CheckoutLineModifierOption.js +12 -0
  75. package/lib/generated/prisma/models/CheckoutLineModifierOption.js.map +1 -0
  76. package/lib/generated/prisma/models/CheckoutLinesModifier.d.ts +2124 -0
  77. package/lib/generated/prisma/models/CheckoutLinesModifier.js +12 -0
  78. package/lib/generated/prisma/models/CheckoutLinesModifier.js.map +1 -0
  79. package/lib/generated/prisma/models/Collection.d.ts +1961 -0
  80. package/lib/generated/prisma/models/Collection.js +12 -0
  81. package/lib/generated/prisma/models/Collection.js.map +1 -0
  82. package/lib/generated/prisma/models/CollectionToPlatform.d.ts +1313 -0
  83. package/lib/generated/prisma/models/CollectionToPlatform.js +12 -0
  84. package/lib/generated/prisma/models/CollectionToPlatform.js.map +1 -0
  85. package/lib/generated/prisma/models/CollectionToProduct.d.ts +1342 -0
  86. package/lib/generated/prisma/models/CollectionToProduct.js +12 -0
  87. package/lib/generated/prisma/models/CollectionToProduct.js.map +1 -0
  88. package/lib/generated/prisma/models/CollectionToProductVariant.d.ts +1201 -0
  89. package/lib/generated/prisma/models/CollectionToProductVariant.js +12 -0
  90. package/lib/generated/prisma/models/CollectionToProductVariant.js.map +1 -0
  91. package/lib/generated/prisma/models/Customer.d.ts +2964 -0
  92. package/lib/generated/prisma/models/Customer.js +12 -0
  93. package/lib/generated/prisma/models/Customer.js.map +1 -0
  94. package/lib/generated/prisma/models/CustomerGroup.d.ts +1167 -0
  95. package/lib/generated/prisma/models/CustomerGroup.js +12 -0
  96. package/lib/generated/prisma/models/CustomerGroup.js.map +1 -0
  97. package/lib/generated/prisma/models/CustomerToAddress.d.ts +1243 -0
  98. package/lib/generated/prisma/models/CustomerToAddress.js +12 -0
  99. package/lib/generated/prisma/models/CustomerToAddress.js.map +1 -0
  100. package/lib/generated/prisma/models/CustomerToCustomerGroup.d.ts +1201 -0
  101. package/lib/generated/prisma/models/CustomerToCustomerGroup.js +12 -0
  102. package/lib/generated/prisma/models/CustomerToCustomerGroup.js.map +1 -0
  103. package/lib/generated/prisma/models/DiscountCode.d.ts +3139 -0
  104. package/lib/generated/prisma/models/DiscountCode.js +12 -0
  105. package/lib/generated/prisma/models/DiscountCode.js.map +1 -0
  106. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.d.ts +1332 -0
  107. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js +12 -0
  108. package/lib/generated/prisma/models/DiscountCodeAppliedToCart.js.map +1 -0
  109. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.d.ts +1389 -0
  110. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js +12 -0
  111. package/lib/generated/prisma/models/DiscountCodeRedeemedOnCart.js.map +1 -0
  112. package/lib/generated/prisma/models/DiscountCodeRedemption.d.ts +1537 -0
  113. package/lib/generated/prisma/models/DiscountCodeRedemption.js +12 -0
  114. package/lib/generated/prisma/models/DiscountCodeRedemption.js.map +1 -0
  115. package/lib/generated/prisma/models/EventLog.d.ts +1295 -0
  116. package/lib/generated/prisma/models/EventLog.js +12 -0
  117. package/lib/generated/prisma/models/EventLog.js.map +1 -0
  118. package/lib/generated/prisma/models/Facet.d.ts +1266 -0
  119. package/lib/generated/prisma/models/Facet.js +12 -0
  120. package/lib/generated/prisma/models/Facet.js.map +1 -0
  121. package/lib/generated/prisma/models/FacetOption.d.ts +1342 -0
  122. package/lib/generated/prisma/models/FacetOption.js +12 -0
  123. package/lib/generated/prisma/models/FacetOption.js.map +1 -0
  124. package/lib/generated/prisma/models/FacetOptionToPlatform.d.ts +1201 -0
  125. package/lib/generated/prisma/models/FacetOptionToPlatform.js +12 -0
  126. package/lib/generated/prisma/models/FacetOptionToPlatform.js.map +1 -0
  127. package/lib/generated/prisma/models/FacetToPlatform.d.ts +1201 -0
  128. package/lib/generated/prisma/models/FacetToPlatform.js +12 -0
  129. package/lib/generated/prisma/models/FacetToPlatform.js.map +1 -0
  130. package/lib/generated/prisma/models/FeatureFlag.d.ts +1412 -0
  131. package/lib/generated/prisma/models/FeatureFlag.js +12 -0
  132. package/lib/generated/prisma/models/FeatureFlag.js.map +1 -0
  133. package/lib/generated/prisma/models/FirebaseAdminConfiguration.d.ts +1059 -0
  134. package/lib/generated/prisma/models/FirebaseAdminConfiguration.js +12 -0
  135. package/lib/generated/prisma/models/FirebaseAdminConfiguration.js.map +1 -0
  136. package/lib/generated/prisma/models/FlaggedPayment.d.ts +1065 -0
  137. package/lib/generated/prisma/models/FlaggedPayment.js +12 -0
  138. package/lib/generated/prisma/models/FlaggedPayment.js.map +1 -0
  139. package/lib/generated/prisma/models/FreeItemRule.d.ts +1021 -0
  140. package/lib/generated/prisma/models/FreeItemRule.js +12 -0
  141. package/lib/generated/prisma/models/FreeItemRule.js.map +1 -0
  142. package/lib/generated/prisma/models/FreeItemToCustomer.d.ts +993 -0
  143. package/lib/generated/prisma/models/FreeItemToCustomer.js +12 -0
  144. package/lib/generated/prisma/models/FreeItemToCustomer.js.map +1 -0
  145. package/lib/generated/prisma/models/FulfillmentFees.d.ts +1365 -0
  146. package/lib/generated/prisma/models/FulfillmentFees.js +12 -0
  147. package/lib/generated/prisma/models/FulfillmentFees.js.map +1 -0
  148. package/lib/generated/prisma/models/Ingredient.d.ts +1886 -0
  149. package/lib/generated/prisma/models/Ingredient.js +12 -0
  150. package/lib/generated/prisma/models/Ingredient.js.map +1 -0
  151. package/lib/generated/prisma/models/IngredientToProductVariant.d.ts +1561 -0
  152. package/lib/generated/prisma/models/IngredientToProductVariant.js +12 -0
  153. package/lib/generated/prisma/models/IngredientToProductVariant.js.map +1 -0
  154. package/lib/generated/prisma/models/IngredientToStore.d.ts +1507 -0
  155. package/lib/generated/prisma/models/IngredientToStore.js +12 -0
  156. package/lib/generated/prisma/models/IngredientToStore.js.map +1 -0
  157. package/lib/generated/prisma/models/ManualCollectionProduct.d.ts +1256 -0
  158. package/lib/generated/prisma/models/ManualCollectionProduct.js +12 -0
  159. package/lib/generated/prisma/models/ManualCollectionProduct.js.map +1 -0
  160. package/lib/generated/prisma/models/Media.d.ts +2127 -0
  161. package/lib/generated/prisma/models/Media.js +12 -0
  162. package/lib/generated/prisma/models/Media.js.map +1 -0
  163. package/lib/generated/prisma/models/Modifier.d.ts +2597 -0
  164. package/lib/generated/prisma/models/Modifier.js +12 -0
  165. package/lib/generated/prisma/models/Modifier.js.map +1 -0
  166. package/lib/generated/prisma/models/ModifierGroup.d.ts +2099 -0
  167. package/lib/generated/prisma/models/ModifierGroup.js +12 -0
  168. package/lib/generated/prisma/models/ModifierGroup.js.map +1 -0
  169. package/lib/generated/prisma/models/ModifierGroupToProduct.d.ts +1249 -0
  170. package/lib/generated/prisma/models/ModifierGroupToProduct.js +12 -0
  171. package/lib/generated/prisma/models/ModifierGroupToProduct.js.map +1 -0
  172. package/lib/generated/prisma/models/ModifierOption.d.ts +1838 -0
  173. package/lib/generated/prisma/models/ModifierOption.js +12 -0
  174. package/lib/generated/prisma/models/ModifierOption.js.map +1 -0
  175. package/lib/generated/prisma/models/ModifierToModifierGroup.d.ts +1343 -0
  176. package/lib/generated/prisma/models/ModifierToModifierGroup.js +12 -0
  177. package/lib/generated/prisma/models/ModifierToModifierGroup.js.map +1 -0
  178. package/lib/generated/prisma/models/NmiSecurityKey.d.ts +1087 -0
  179. package/lib/generated/prisma/models/NmiSecurityKey.js +12 -0
  180. package/lib/generated/prisma/models/NmiSecurityKey.js.map +1 -0
  181. package/lib/generated/prisma/models/OneTimeToken.d.ts +1115 -0
  182. package/lib/generated/prisma/models/OneTimeToken.js +12 -0
  183. package/lib/generated/prisma/models/OneTimeToken.js.map +1 -0
  184. package/lib/generated/prisma/models/Payment.d.ts +1560 -0
  185. package/lib/generated/prisma/models/Payment.js +12 -0
  186. package/lib/generated/prisma/models/Payment.js.map +1 -0
  187. package/lib/generated/prisma/models/Platform.d.ts +7442 -0
  188. package/lib/generated/prisma/models/Platform.js +12 -0
  189. package/lib/generated/prisma/models/Platform.js.map +1 -0
  190. package/lib/generated/prisma/models/PlatformAwsConfiguration.d.ts +1333 -0
  191. package/lib/generated/prisma/models/PlatformAwsConfiguration.js +12 -0
  192. package/lib/generated/prisma/models/PlatformAwsConfiguration.js.map +1 -0
  193. package/lib/generated/prisma/models/PlatformMailerMessage.d.ts +1299 -0
  194. package/lib/generated/prisma/models/PlatformMailerMessage.js +12 -0
  195. package/lib/generated/prisma/models/PlatformMailerMessage.js.map +1 -0
  196. package/lib/generated/prisma/models/PrepTime.d.ts +1420 -0
  197. package/lib/generated/prisma/models/PrepTime.js +12 -0
  198. package/lib/generated/prisma/models/PrepTime.js.map +1 -0
  199. package/lib/generated/prisma/models/Product.d.ts +2975 -0
  200. package/lib/generated/prisma/models/Product.js +12 -0
  201. package/lib/generated/prisma/models/Product.js.map +1 -0
  202. package/lib/generated/prisma/models/ProductCategory.d.ts +2057 -0
  203. package/lib/generated/prisma/models/ProductCategory.js +12 -0
  204. package/lib/generated/prisma/models/ProductCategory.js.map +1 -0
  205. package/lib/generated/prisma/models/ProductCategoryToTag.d.ts +1201 -0
  206. package/lib/generated/prisma/models/ProductCategoryToTag.js +12 -0
  207. package/lib/generated/prisma/models/ProductCategoryToTag.js.map +1 -0
  208. package/lib/generated/prisma/models/ProductListing.d.ts +1747 -0
  209. package/lib/generated/prisma/models/ProductListing.js +12 -0
  210. package/lib/generated/prisma/models/ProductListing.js.map +1 -0
  211. package/lib/generated/prisma/models/ProductToTag.d.ts +1201 -0
  212. package/lib/generated/prisma/models/ProductToTag.js +12 -0
  213. package/lib/generated/prisma/models/ProductToTag.js.map +1 -0
  214. package/lib/generated/prisma/models/ProductVariant.d.ts +6964 -0
  215. package/lib/generated/prisma/models/ProductVariant.js +12 -0
  216. package/lib/generated/prisma/models/ProductVariant.js.map +1 -0
  217. package/lib/generated/prisma/models/ProductVariantConfiguration.d.ts +1775 -0
  218. package/lib/generated/prisma/models/ProductVariantConfiguration.js +12 -0
  219. package/lib/generated/prisma/models/ProductVariantConfiguration.js.map +1 -0
  220. package/lib/generated/prisma/models/ProductVariantListing.d.ts +2152 -0
  221. package/lib/generated/prisma/models/ProductVariantListing.js +12 -0
  222. package/lib/generated/prisma/models/ProductVariantListing.js.map +1 -0
  223. package/lib/generated/prisma/models/ProductVariantListingToMedia.d.ts +1401 -0
  224. package/lib/generated/prisma/models/ProductVariantListingToMedia.js +12 -0
  225. package/lib/generated/prisma/models/ProductVariantListingToMedia.js.map +1 -0
  226. package/lib/generated/prisma/models/ProductVariantPlatformPricing.d.ts +1420 -0
  227. package/lib/generated/prisma/models/ProductVariantPlatformPricing.js +12 -0
  228. package/lib/generated/prisma/models/ProductVariantPlatformPricing.js.map +1 -0
  229. package/lib/generated/prisma/models/ProductVariantRanking.d.ts +1402 -0
  230. package/lib/generated/prisma/models/ProductVariantRanking.js +12 -0
  231. package/lib/generated/prisma/models/ProductVariantRanking.js.map +1 -0
  232. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.d.ts +1638 -0
  233. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js +12 -0
  234. package/lib/generated/prisma/models/ProductVariantStoreAndPlatformPricing.js.map +1 -0
  235. package/lib/generated/prisma/models/ProductVariantStorePricing.d.ts +1467 -0
  236. package/lib/generated/prisma/models/ProductVariantStorePricing.js +12 -0
  237. package/lib/generated/prisma/models/ProductVariantStorePricing.js.map +1 -0
  238. package/lib/generated/prisma/models/ProductVariantStoreRanking.d.ts +1890 -0
  239. package/lib/generated/prisma/models/ProductVariantStoreRanking.js +12 -0
  240. package/lib/generated/prisma/models/ProductVariantStoreRanking.js.map +1 -0
  241. package/lib/generated/prisma/models/ProductVariantToMedia.d.ts +1250 -0
  242. package/lib/generated/prisma/models/ProductVariantToMedia.js +12 -0
  243. package/lib/generated/prisma/models/ProductVariantToMedia.js.map +1 -0
  244. package/lib/generated/prisma/models/ProductVariantToTag.d.ts +1201 -0
  245. package/lib/generated/prisma/models/ProductVariantToTag.js +12 -0
  246. package/lib/generated/prisma/models/ProductVariantToTag.js.map +1 -0
  247. package/lib/generated/prisma/models/ProductVarietal.d.ts +1385 -0
  248. package/lib/generated/prisma/models/ProductVarietal.js +12 -0
  249. package/lib/generated/prisma/models/ProductVarietal.js.map +1 -0
  250. package/lib/generated/prisma/models/ProductsWithOverrides.d.ts +1782 -0
  251. package/lib/generated/prisma/models/ProductsWithOverrides.js +12 -0
  252. package/lib/generated/prisma/models/ProductsWithOverrides.js.map +1 -0
  253. package/lib/generated/prisma/models/PvStoreScheduledAvailability.d.ts +1931 -0
  254. package/lib/generated/prisma/models/PvStoreScheduledAvailability.js +12 -0
  255. package/lib/generated/prisma/models/PvStoreScheduledAvailability.js.map +1 -0
  256. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.d.ts +1405 -0
  257. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js +12 -0
  258. package/lib/generated/prisma/models/PvStoreScheduledAvailabilityLog.js.map +1 -0
  259. package/lib/generated/prisma/models/Refund.d.ts +1707 -0
  260. package/lib/generated/prisma/models/Refund.js +12 -0
  261. package/lib/generated/prisma/models/Refund.js.map +1 -0
  262. package/lib/generated/prisma/models/RefundLine.d.ts +1373 -0
  263. package/lib/generated/prisma/models/RefundLine.js +12 -0
  264. package/lib/generated/prisma/models/RefundLine.js.map +1 -0
  265. package/lib/generated/prisma/models/RelatedItems.d.ts +1431 -0
  266. package/lib/generated/prisma/models/RelatedItems.js +12 -0
  267. package/lib/generated/prisma/models/RelatedItems.js.map +1 -0
  268. package/lib/generated/prisma/models/Role.d.ts +1264 -0
  269. package/lib/generated/prisma/models/Role.js +12 -0
  270. package/lib/generated/prisma/models/Role.js.map +1 -0
  271. package/lib/generated/prisma/models/ScheduledTask.d.ts +1146 -0
  272. package/lib/generated/prisma/models/ScheduledTask.js +12 -0
  273. package/lib/generated/prisma/models/ScheduledTask.js.map +1 -0
  274. package/lib/generated/prisma/models/ShippingConfiguration.d.ts +1659 -0
  275. package/lib/generated/prisma/models/ShippingConfiguration.js +12 -0
  276. package/lib/generated/prisma/models/ShippingConfiguration.js.map +1 -0
  277. package/lib/generated/prisma/models/ShippingLabelFee.d.ts +1705 -0
  278. package/lib/generated/prisma/models/ShippingLabelFee.js +12 -0
  279. package/lib/generated/prisma/models/ShippingLabelFee.js.map +1 -0
  280. package/lib/generated/prisma/models/ShippingLabelRefund.d.ts +1520 -0
  281. package/lib/generated/prisma/models/ShippingLabelRefund.js +12 -0
  282. package/lib/generated/prisma/models/ShippingLabelRefund.js.map +1 -0
  283. package/lib/generated/prisma/models/SmsConversation.d.ts +1548 -0
  284. package/lib/generated/prisma/models/SmsConversation.js +12 -0
  285. package/lib/generated/prisma/models/SmsConversation.js.map +1 -0
  286. package/lib/generated/prisma/models/SmsConversationMessage.d.ts +1326 -0
  287. package/lib/generated/prisma/models/SmsConversationMessage.js +12 -0
  288. package/lib/generated/prisma/models/SmsConversationMessage.js.map +1 -0
  289. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.d.ts +1125 -0
  290. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js +12 -0
  291. package/lib/generated/prisma/models/SmsMerchantNotificationMessage.js.map +1 -0
  292. package/lib/generated/prisma/models/StockLevel.d.ts +1425 -0
  293. package/lib/generated/prisma/models/StockLevel.js +12 -0
  294. package/lib/generated/prisma/models/StockLevel.js.map +1 -0
  295. package/lib/generated/prisma/models/StockLocation.d.ts +1652 -0
  296. package/lib/generated/prisma/models/StockLocation.js +12 -0
  297. package/lib/generated/prisma/models/StockLocation.js.map +1 -0
  298. package/lib/generated/prisma/models/StockLocationToPlatform.d.ts +1201 -0
  299. package/lib/generated/prisma/models/StockLocationToPlatform.js +12 -0
  300. package/lib/generated/prisma/models/StockLocationToPlatform.js.map +1 -0
  301. package/lib/generated/prisma/models/StockMovement.d.ts +1608 -0
  302. package/lib/generated/prisma/models/StockMovement.js +12 -0
  303. package/lib/generated/prisma/models/StockMovement.js.map +1 -0
  304. package/lib/generated/prisma/models/Store.d.ts +4487 -0
  305. package/lib/generated/prisma/models/Store.js +12 -0
  306. package/lib/generated/prisma/models/Store.js.map +1 -0
  307. package/lib/generated/prisma/models/StoreRestockingLog.d.ts +1297 -0
  308. package/lib/generated/prisma/models/StoreRestockingLog.js +12 -0
  309. package/lib/generated/prisma/models/StoreRestockingLog.js.map +1 -0
  310. package/lib/generated/prisma/models/StoreRestockingSchedule.d.ts +1932 -0
  311. package/lib/generated/prisma/models/StoreRestockingSchedule.js +12 -0
  312. package/lib/generated/prisma/models/StoreRestockingSchedule.js.map +1 -0
  313. package/lib/generated/prisma/models/StoreToAssociatedStoreType.d.ts +1294 -0
  314. package/lib/generated/prisma/models/StoreToAssociatedStoreType.js +12 -0
  315. package/lib/generated/prisma/models/StoreToAssociatedStoreType.js.map +1 -0
  316. package/lib/generated/prisma/models/StoreToPlatform.d.ts +1331 -0
  317. package/lib/generated/prisma/models/StoreToPlatform.js +12 -0
  318. package/lib/generated/prisma/models/StoreToPlatform.js.map +1 -0
  319. package/lib/generated/prisma/models/Tag.d.ts +1581 -0
  320. package/lib/generated/prisma/models/Tag.js +12 -0
  321. package/lib/generated/prisma/models/Tag.js.map +1 -0
  322. package/lib/generated/prisma/models/TaxCategory.d.ts +1169 -0
  323. package/lib/generated/prisma/models/TaxCategory.js +12 -0
  324. package/lib/generated/prisma/models/TaxCategory.js.map +1 -0
  325. package/lib/generated/prisma/models/Transaction.d.ts +1551 -0
  326. package/lib/generated/prisma/models/Transaction.js +12 -0
  327. package/lib/generated/prisma/models/Transaction.js.map +1 -0
  328. package/lib/generated/prisma/models/User.d.ts +1907 -0
  329. package/lib/generated/prisma/models/User.js +12 -0
  330. package/lib/generated/prisma/models/User.js.map +1 -0
  331. package/lib/generated/prisma/models/UserToRole.d.ts +1201 -0
  332. package/lib/generated/prisma/models/UserToRole.js +12 -0
  333. package/lib/generated/prisma/models/UserToRole.js.map +1 -0
  334. package/lib/generated/prisma/models.d.ts +103 -0
  335. package/lib/generated/prisma/models.js +3 -0
  336. package/lib/generated/prisma/models.js.map +1 -0
  337. package/lib/generated/prisma/pjtg.d.ts +145 -0
  338. package/lib/generated/prisma/pjtg.js +3 -0
  339. package/lib/generated/prisma/pjtg.js.map +1 -0
  340. package/lib/helpers.d.ts +37 -0
  341. package/lib/helpers.js +226 -0
  342. package/lib/helpers.js.map +1 -0
  343. package/lib/index.d.ts +10 -0
  344. package/lib/index.js.map +1 -0
  345. package/lib/kysely/index.d.ts +2 -0
  346. package/lib/kysely/index.js +19 -0
  347. package/lib/kysely/index.js.map +1 -0
  348. package/lib/kysely/kysely-db.d.ts +3 -0
  349. package/lib/kysely/kysely-db.js +3 -0
  350. package/lib/kysely/kysely-db.js.map +1 -0
  351. package/lib/kysely/utils/index.d.ts +4 -0
  352. package/lib/kysely/utils/index.js +21 -0
  353. package/lib/kysely/utils/index.js.map +1 -0
  354. package/lib/kysely/utils/json-array-from-no-subquery.d.ts +38 -0
  355. package/lib/kysely/utils/json-array-from-no-subquery.js +43 -0
  356. package/lib/kysely/utils/json-array-from-no-subquery.js.map +1 -0
  357. package/lib/kysely/utils/json-object-from-no-subquery.d.ts +40 -0
  358. package/lib/kysely/utils/json-object-from-no-subquery.js +45 -0
  359. package/lib/kysely/utils/json-object-from-no-subquery.js.map +1 -0
  360. package/lib/kysely/utils/serialize-bigint-value.d.ts +3 -0
  361. package/lib/kysely/utils/serialize-bigint-value.js +13 -0
  362. package/lib/kysely/utils/serialize-bigint-value.js.map +1 -0
  363. package/lib/kysely/utils/serialize-numeric-value.d.ts +4 -0
  364. package/lib/kysely/utils/serialize-numeric-value.js +11 -0
  365. package/lib/kysely/utils/serialize-numeric-value.js.map +1 -0
  366. package/lib/kysely/utils/shallow-dehydrate.d.ts +18 -0
  367. package/lib/kysely/utils/shallow-dehydrate.js +3 -0
  368. package/lib/kysely/utils/shallow-dehydrate.js.map +1 -0
  369. package/lib/prisma-module/index.d.ts +4 -0
  370. package/lib/prisma-module/index.js +21 -0
  371. package/lib/prisma-module/index.js.map +1 -0
  372. package/lib/prisma-module/prisma-options.d.ts +59 -0
  373. package/lib/prisma-module/prisma-options.js +3 -0
  374. package/lib/prisma-module/prisma-options.js.map +1 -0
  375. package/lib/prisma-module/prisma.constants.d.ts +1 -0
  376. package/lib/prisma-module/prisma.constants.js +5 -0
  377. package/lib/prisma-module/prisma.constants.js.map +1 -0
  378. package/lib/prisma-module/prisma.module.d.ts +8 -0
  379. package/lib/prisma-module/prisma.module.js +73 -0
  380. package/lib/prisma-module/prisma.module.js.map +1 -0
  381. package/lib/prisma-module/prisma.service.d.ts +5 -0
  382. package/lib/prisma-module/prisma.service.js +29 -0
  383. package/lib/prisma-module/prisma.service.js.map +1 -0
  384. package/lib/tsconfig.build.tsbuildinfo +1 -0
  385. package/lib/types.d.ts +7 -0
  386. package/lib/types.js +3 -0
  387. package/lib/types.js.map +1 -0
  388. package/lib/utils/deep-convert-formatted-string-to-original.d.ts +1 -0
  389. package/lib/utils/deep-convert-formatted-string-to-original.js +40 -0
  390. package/lib/utils/deep-convert-formatted-string-to-original.js.map +1 -0
  391. package/lib/utils/ignore-prisma-builtins.d.ts +1 -0
  392. package/lib/utils/ignore-prisma-builtins.js +3 -0
  393. package/lib/utils/ignore-prisma-builtins.js.map +1 -0
  394. package/lib/utils/index.d.ts +3 -0
  395. package/lib/utils/index.js +20 -0
  396. package/lib/utils/index.js.map +1 -0
  397. package/lib/utils/prisma-where-to-sql.d.ts +5 -0
  398. package/lib/utils/prisma-where-to-sql.js +94 -0
  399. package/lib/utils/prisma-where-to-sql.js.map +1 -0
  400. package/lib/web360-prisma.constants.d.ts +2 -0
  401. package/lib/web360-prisma.constants.js +6 -0
  402. package/lib/web360-prisma.constants.js.map +1 -0
  403. package/lib/web360-prisma.module.d.ts +7 -0
  404. package/lib/web360-prisma.module.js +81 -0
  405. package/lib/web360-prisma.module.js.map +1 -0
  406. package/lib/web360-prisma.options.d.ts +38 -0
  407. package/lib/web360-prisma.options.js +3 -0
  408. package/lib/web360-prisma.options.js.map +1 -0
  409. package/lib/web360-prisma.service.d.ts +57 -0
  410. package/lib/web360-prisma.service.js +57 -0
  411. package/lib/web360-prisma.service.js.map +1 -0
  412. package/package.json +4 -3
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * WARNING: This is an internal file that is subject to change!
8
+ *
9
+ * 🛑 Under no circumstances should you import this file directly! 🛑
10
+ *
11
+ * Please import the `PrismaClient` class from the `client.ts` file instead.
12
+ */
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
+ desc = { enumerable: true, get: function() { return m[k]; } };
18
+ }
19
+ Object.defineProperty(o, k2, desc);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
46
+ Object.defineProperty(exports, "__esModule", { value: true });
47
+ exports.getPrismaClientClass = getPrismaClientClass;
48
+ const runtime = __importStar(require("@prisma/client/runtime/client"));
49
+ const config = {
50
+ "previewFeatures": [
51
+ "fullTextSearchPostgres"
52
+ ],
53
+ "clientVersion": "7.2.0",
54
+ "engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
55
+ "activeProvider": "postgresql",
56
+ "inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n engineType = \"client\"\n moduleFormat = \"cjs\"\n previewFeatures = [\"fullTextSearchPostgres\"]\n}\n\ngenerator json {\n provider = \"prisma-json-types-generator\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\ngenerator kysely {\n provider = \"prisma-kysely\"\n output = \"../src/generated/prisma\"\n fileName = \"kysely-types.ts\"\n camelCase = true\n bigIntTypeOverride = \"bigint\"\n decimalTypeOverride = \"Prisma.Decimal\"\n}\n\ngenerator dmmf {\n provider = \"prisma-mock\"\n output = \"../src/generated/prisma/dmmf.ts\"\n}\n\n// Junction table for many-to-many relationship between Administrator and Platform.\n// Purpose is to define which administrators have access to which platforms.\n\nmodel AdministratorToPlatform {\n // Fields\n administratorId BigInt @map(\"administrator_id\")\n platformRecordId BigInt @map(\"platform_record_id\")\n\n // Relations\n administrator Administrator @relation(fields: [administratorId], references: [id], onUpdate: Cascade, onDelete: Cascade)\n platform Platform @relation(fields: [platformRecordId], references: [id], onUpdate: Cascade, onDelete: Cascade)\n\n // Indexes and mappings\n @@id([administratorId, platformRecordId])\n @@index([platformRecordId])\n @@map(\"administrators_to_platforms\")\n}\n\nmodel AdministratorToStore {\n // Columns\n administratorId BigInt @map(\"administrator_id\")\n storeId BigInt @map(\"store_id\")\n\n // Prisma Relations\n administrator Administrator @relation(fields: [administratorId], references: [id], onUpdate: Cascade, onDelete: Cascade)\n store Store @relation(fields: [storeId], references: [id], onUpdate: Cascade, onDelete: Cascade)\n\n @@id([administratorId, storeId])\n @@index([storeId])\n @@map(\"administrator_to_store\")\n}\n\nmodel Administrator {\n // Fields\n id BigInt @id @default(autoincrement())\n firstName String @map(\"first_name\")\n lastName String @map(\"last_name\")\n displayName String? @map(\"display_name\")\n email String?\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n\n // Relations\n userId BigInt @map(\"user_id\")\n user User @relation(fields: [userId], references: [id])\n administratorToPlatform AdministratorToPlatform[]\n administratorToStore AdministratorToStore[]\n\n // Indexes, constraints, mappings\n @@map(\"administrators\")\n}\n\n// Prisma Schema: api-token.prisma\n\nenum ApiTokenPurpose {\n POS360_ADMIN_PANEL\n PLATFORM_ADMIN_PANEL\n STOREFRONT_PUBLIC\n STOREFRONT_PRIVATE\n}\n\nmodel ApiToken {\n id BigInt @id @default(autoincrement())\n platformId String?\n token String @unique\n purpose ApiTokenPurpose\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n deletedAt DateTime?\n expriresAt DateTime?\n\n // Indexes\n @@index([platformId, purpose])\n @@index([purpose])\n @@map(\"api_tokens\")\n}\n\nmodel Customer {\n // Fields\n id BigInt @id @default(autoincrement())\n platformId String @map(\"platform_id\")\n firstName String @map(\"first_name\")\n lastName String @map(\"last_name\")\n displayName String? @map(\"display_name\")\n email String?\n phone String?\n tags String[]\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n nmiId String? @map(\"nmi_id\")\n userId BigInt @map(\"user_id\")\n doesConsentToSmsCommunication Boolean @default(false) @map(\"does_consent_to_sms_communication\")\n discriminator String @default(\"registered\") @map(\"discriminator\")\n\n // Relations\n carts Cart[]\n checkouts Checkout[]\n addresses CustomerToAddress[]\n cards Card[]\n checkoutGroup CheckoutGroup[]\n redemptions DiscountCodeRedemption[]\n user User @relation(fields: [userId], references: [id])\n SmsConversation SmsConversation[]\n customerToCustomerGroups CustomerToCustomerGroup[]\n\n // Indexes, constraints, mappings\n @@unique([platformId, email, discriminator])\n @@unique([platformId, phone, discriminator])\n @@index([platformId, email])\n @@index([platformId, phone])\n @@index([email])\n @@index([phone])\n @@index([userId])\n @@index([firstName, lastName], name: \"idx_customer_name\")\n @@map(\"customers\")\n}\n\nmodel FirebaseAdminConfiguration {\n id BigInt @id @default(autoincrement())\n projectId String @unique @map(\"project_id\")\n cipherText String @map(\"cipher_text\")\n encryptionData Json @map(\"encryption_data\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n @@map(\"firebase_configuration\")\n}\n\nmodel OneTimeToken {\n // Fields\n id BigInt @id @default(autoincrement())\n purpose String @map(\"purpose\")\n expiresAt DateTime? @map(\"expires_at\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n token String @unique @map(\"token\")\n metadata Json? @map(\"metadata\")\n\n // Indexes, constraints, mappings\n @@map(\"one_time_tokens\")\n}\n\nmodel Role {\n // Fields\n id BigInt @id @default(autoincrement())\n code String @unique\n description String? @default(\"\")\n permissions String[] @default([])\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n\n // Relations\n userToRole UserToRole[]\n\n @@map(\"roles\")\n}\n\n// Junction table for many-to-many relationship between User and Role\n\nmodel UserToRole {\n userId BigInt @map(\"user_id\")\n roleId BigInt @map(\"role_id\")\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n role Role @relation(fields: [roleId], references: [id])\n\n @@id([userId, roleId])\n @@index([roleId])\n @@map(\"user_roles_role\")\n}\n\nmodel User {\n // Fields\n id BigInt @id @default(autoincrement())\n identifier String\n isVerified Boolean @default(false) @map(\"is_verified\")\n isAnonymous Boolean @default(false) @map(\"is_anonymous\")\n firebaseUid String @map(\"firebase_uid\")\n firebaseProjectId String @map(\"firebase_project_id\")\n associatedGuestUserId BigInt? @unique @map(\"associated_guest_user_id\")\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n\n // Relations\n userToRole UserToRole[]\n customer Customer[]\n administrator Administrator[]\n guestUser User? @relation(\"UserToGuestUser\", fields: [associatedGuestUserId], references: [id]) // Guest user associated with this user, used for upgrading to a full user\n registeredUser User? @relation(\"UserToGuestUser\") // Full user associated with this guest user, used for downgrading to a guest user\n\n // Indexes, constraints, mappings\n @@unique([firebaseUid, firebaseProjectId])\n @@unique([identifier, firebaseProjectId])\n @@map(\"users\")\n}\n\nmodel Card {\n // Fields\n id BigInt @id @default(autoincrement())\n customerId BigInt @map(\"customer_id\")\n billingId String @unique @map(\"billing_id\")\n brand String\n lastDigits String @map(\"last_digits\")\n expiryDate String @map(\"expiry_date\")\n isDefault Boolean @default(false) @map(\"is_default\")\n hasCvvBeenProvided Boolean @default(false) @map(\"has_cvv_been_provided\")\n billingFirstName String @map(\"billing_first_name\")\n billingLastName String @map(\"billing_last_name\")\n isTemporary Boolean @default(false) @map(\"is_temporary\")\n bin String? @map(\"bin\")\n hash String? @map(\"hash\")\n\n /// [Address]\n billingAddress Json\n\n // Relationships\n customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)\n\n @@map(\"cards\")\n}\n\nmodel CartCost {\n // Fields\n id BigInt @id @default(autoincrement())\n discountAmount Decimal @default(0) @map(\"discount_amount\") // The total discount amount for the customer to pay at checkout.\n checkoutChargeAmount Decimal @map(\"checkout_charge_amount\") // The estimated amount, before taxes and discounts, for the customer to pay at checkout. The checkout charge amount doesn't include any deferred payments that'll be paid at a later date. If the cart has no deferred payments, then the checkout charge amount is equivalent to subtotalAmount.\n subtotalAmount Decimal @map(\"subtotal_amount\") // The amount, before taxes and cart-level discounts, for the customer to pay.\n isSubtotalAmountEstimated Boolean @map(\"is_subtotal_amount_estimated\") // Whether the subtotal amount is estimated\n totalAmount Decimal @map(\"total_amount\") // The total amount, including taxes and discounts, for the customer to pay.\n isTotalAmountEstimated Boolean @map(\"is_total_amount_estimated\") // Whether the total amount is estimated\n totalTaxAmount Decimal @map(\"total_tax_amount\") // The tax amount for the customer to pay at checkout.\n isTotalTaxAmountEstimated Boolean @map(\"is_total_tax_amount_estimated\") // Whether the total tax amount is estimated\n cartId BigInt @unique @map(\"cart_id\")\n\n // Relations\n cart Cart @relation(fields: [cartId], references: [id], onDelete: Cascade)\n\n // Indexes, Constraints & Mappings\n @@map(\"cart_costs\")\n}\n\nmodel CartLineModifierOption {\n // Fields\n id BigInt @id @default(autoincrement())\n modifierOptionId BigInt @map(\"modifier_option_id\")\n price Decimal\n quantity Int\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n\n // Relations\n cartLineModifiers CartLineModifier[]\n modifierOption ModifierOption @relation(fields: [modifierOptionId], references: [id])\n\n // Indexes & Mappings\n @@index([modifierOptionId])\n @@map(\"cart_line_modifier_options\")\n}\n\nmodel CartLineModifier {\n // Fields\n id BigInt @id @default(autoincrement())\n modifierId BigInt @map(\"modifier_id\")\n modifierGroupId BigInt @map(\"modifier_group_id\")\n cartLineId BigInt @map(\"cart_line_id\")\n cartLineModifierOptionId BigInt? @unique @map(\"cart_line_modifier_option_id\")\n checkoutLineModifierId BigInt? @unique @map(\"checkout_line_modifier_id\")\n quantity Int\n price Decimal\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime @default(now()) @map(\"deleted_at\")\n\n // Relations\n cartLine CartLine @relation(fields: [cartLineId], references: [id], onDelete: Cascade)\n modifier Modifier @relation(fields: [modifierId], references: [id])\n modifierGroup ModifierGroup @relation(fields: [modifierGroupId], references: [id])\n cartLineModifierOption CartLineModifierOption? @relation(fields: [cartLineModifierOptionId], references: [id], onDelete: Cascade)\n checkoutLineModifier CheckoutLinesModifier? @relation(fields: [checkoutLineModifierId], references: [id])\n\n // Indexes & Mappings\n @@index([cartLineId])\n @@index([modifierId])\n @@index([cartLineId, modifierId], name: \"idx_cart_lines_modifiers_cart_line_id_modifier_id\")\n @@index([modifierGroupId], name: \"idx_cart_lines_modifiers_modifier_group_id\")\n @@map(\"cart_lines_modifiers\")\n}\n\nmodel CartLine {\n // Fields\n id BigInt @id @default(autoincrement())\n quantity Int\n productVariantId BigInt @map(\"product_variant_id\")\n cartId BigInt @map(\"cart_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n discountCodeId BigInt? @map(\"discount_code_id\")\n discountCodeRedemptionId BigInt? @map(\"discount_code_redemption_id\")\n\n /// [CartLineCost]\n cost Json\n\n // Relations\n cart Cart @relation(fields: [cartId], references: [id], onDelete: Cascade)\n merchandise ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade)\n discountCode DiscountCode? @relation(fields: [discountCodeId], references: [id])\n discountCodeRedemption DiscountCodeRedemption? @relation(fields: [discountCodeRedemptionId], references: [id])\n cartLineModifier CartLineModifier[]\n\n // Indexes & Mappings\n @@index([cartId])\n @@index([cartId, productVariantId], name: \"idx_cart_lines_cart_id_product_variant_id\")\n @@index([productVariantId], name: \"idx_cart_lines_product_variant_id\")\n @@index([cartId, updatedAt], name: \"idx_cart_lines_cart_id_updated_at\")\n @@map(\"cart_lines\")\n}\n\nmodel Cart {\n id BigInt @id @default(autoincrement())\n customerId BigInt? @map(\"customer_id\")\n platformId String @map(\"platform_id\")\n storeId String @map(\"store_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n openedAt DateTime? @default(now()) @map(\"opened_at\")\n active Boolean @default(true)\n closedAt DateTime? @map(\"closed_at\")\n note String?\n currencyCode CurrencyCode @map(\"currency_code\")\n version Int @default(0)\n\n // Relations\n customer Customer? @relation(fields: [customerId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n cartLines CartLine[]\n cost CartCost?\n checkout Checkout?\n discountCodeAppliedToCart DiscountCodeAppliedToCart[]\n discountCodeRedeemedOnCart DiscountCodeRedeemedOnCart[]\n\n // Playing with these fields to see if they are needed\n isValid Boolean @default(true) @map(\"is_valid\") // Whether the checkout is valid and can be completed.\n invalidReason String? @map(\"invalid_reason\") // The reason why the checkout is invalid. Returns null if the checkout is valid.\n\n // Indexes, constrains, & mappings\n @@index([customerId], name: \"customer_id\")\n @@index([customerId, active], name: \"customer_active\")\n @@index([platformId, storeId], name: \"idx_carts_platform_id_store_id\")\n @@index([updatedAt], name: \"idx_carts_updated_at\")\n @@map(\"carts\")\n}\n\nmodel CheckoutGroup {\n // Fields\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime? @map(\"updated_at\")\n completedAt DateTime? @map(\"completed_at\")\n customerId BigInt? @map(\"customer_id\")\n platformId String @map(\"platform_id\")\n fulfillmentType FulfillmentType @map(\"fulfillment_type\")\n fulfillmentOptInOptionType FulfillmentOptInOptionType? @map(\"fulfillment_opt_in_option_type\")\n discountCodes String[] @map(\"discount_codes\")\n firstName String? @map(\"customer_first_name\")\n lastName String? @map(\"customer_last_name\")\n email String? @map(\"customer_email\")\n phone String? @map(\"customer_phone\")\n /// [Address]\n billingAddress Json? @map(\"billing_address\")\n /// [Address]\n deliveryAddress Json? @map(\"delivery_address\")\n total Decimal @default(0) @map(\"total\")\n totalSubtotal Decimal @default(0) @map(\"total_subtotal\")\n totalTax Decimal @default(0) @map(\"total_tax\")\n /// [TotalTaxBreakdown]\n totalTaxBreakdown Json? @map(\"total_tax_breakdown\")\n totalDeliveryFee Decimal @default(0) @map(\"total_delivery_fee\")\n totalDiscount Decimal @default(0) @map(\"total_discount\") // TODO: Change to a relation with discount table\n currencyCode CurrencyCode @map(\"currency_code\")\n tip Decimal @default(0) @map(\"tip\")\n confirmationId String? @unique @map(\"confirmation_id\")\n accessTokenHash String? @unique @map(\"access_token_hash\")\n billingFirstName String @map(\"billing_first_name\")\n billingLastName String @map(\"billing_last_name\")\n cardBrand String @map(\"card_brand\")\n cardLastDigits String @map(\"card_last_digits\")\n express Boolean? @default(false)\n scheduled DateTime?\n validatedAt DateTime? @map(\"validated_at\")\n\n // Gifting\n isGift Boolean @default(false) @map(\"is_gift\")\n giftFrom String? @map(\"gift_from\")\n giftMessage String? @map(\"gift_message\")\n\n /// [FraudEvaluation]\n fraudEvaluation Json? @map(\"fraud_evaluation\")\n\n // Relations\n customer Customer? @relation(fields: [customerId], references: [id])\n checkout Checkout[]\n\n // Indexes & Mappings\n @@index([fraudEvaluation(ops: JsonbPathOps)], type: Gin)\n @@index([createdAt(sort: Desc)])\n @@index([completedAt(sort: Desc)])\n @@index([platformId])\n @@index([customerId])\n @@index([email])\n @@index([phone])\n @@index([cardBrand])\n @@index([cardBrand, cardLastDigits])\n @@map(\"checkout_group\")\n}\n\nmodel CheckoutLineModifierOption {\n // Fields\n id BigInt @id @default(autoincrement())\n modifierId BigInt @map(\"modifier_id\")\n modifierOptionId BigInt @map(\"modifier_option_id\")\n price Decimal\n tax Decimal\n quantity Int\n total Decimal\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n\n // Relations\n modifierOption ModifierOption @relation(fields: [modifierOptionId], references: [id])\n modifier Modifier @relation(fields: [modifierId], references: [id])\n checkoutLineModifiers CheckoutLinesModifier[]\n\n // Indexes & Mappings\n @@index([modifierOptionId])\n @@index([modifierId])\n @@map(\"checkout_line_modifier_option\")\n}\n\nmodel CheckoutLinesModifier {\n // Fields\n id BigInt @id @default(autoincrement())\n modifierId BigInt @map(\"modifier_id\")\n modifierGroupId BigInt @map(\"modifier_group_id\")\n checkoutLineId BigInt @map(\"checkout_line_id\")\n checkoutLineModifierOptionId BigInt? @unique @map(\"checkout_line_modifier_option_id\")\n quantity Int\n price Decimal\n tax Decimal\n total Decimal\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n\n // Relations\n cartLineModifiers CartLineModifier[]\n modifier Modifier @relation(fields: [modifierId], references: [id])\n modifierGroup ModifierGroup @relation(fields: [modifierGroupId], references: [id])\n checkoutLine CheckoutLine @relation(fields: [checkoutLineId], references: [id], onDelete: Cascade)\n checkoutLineModifierOption CheckoutLineModifierOption? @relation(fields: [checkoutLineModifierOptionId], references: [id], onDelete: Cascade)\n\n // Indexes & Mappings\n @@index([modifierId])\n @@index([checkoutLineId])\n @@map(\"checkout_lines_modifiers\")\n}\n\nmodel CheckoutLine {\n // Fields\n id BigInt @id @default(autoincrement())\n quantity Int\n productVariantId BigInt? @map(\"product_variant_id\")\n checkoutId BigInt @map(\"checkout_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n unitPrice Decimal @default(0) @map(\"unit_price\")\n totalTax Decimal @default(0) @map(\"total_tax\")\n /// [TaxRateBreakdown]\n taxRateBreakdown Json\n\n // Relations\n checkout Checkout @relation(fields: [checkoutId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n merchandise ProductVariant? @relation(fields: [productVariantId], references: [id], onUpdate: Cascade, onDelete: SetNull)\n refundLines RefundLine[]\n stockMovement StockMovement[]\n checkoutLinesModifier CheckoutLinesModifier[]\n\n // Indexes & Mappings\n @@index([checkoutId])\n @@map(\"checkout_lines\")\n}\n\nmodel Checkout {\n // Fields\n id BigInt @id @default(autoincrement())\n customerId BigInt? @map(\"customer_id\")\n platformId String @map(\"platform_id\")\n storeId String @map(\"store_id\")\n completedAt DateTime? @map(\"completed_at\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n fulfillmentType FulfillmentType @map(\"fulfillment_type\")\n note String?\n includeUtensils Boolean @default(false) @map(\"include_utensils\") // Whether the checkout includes utensils.\n orderId String? @map(\"order_id\") // The order's ID if the checkout is completed. Currently, maps to OrderV2.id in MongoDB.\n isReady Boolean @default(true) @map(\"is_ready\") // Whether the checkout is ready to be completed. False if there are async operations in progress.\n lineItemsSubtotal Decimal @default(0) @map(\"line_items_subtotal\") // The sum of all the prices of all the items in the checkout. Taxes, shipping and discounts excluded.\n subtotalPrice Decimal @default(0) @map(\"subtotal_price\") // The sum of all the prices of all the items in the checkout, before shipping, taxes, and discounts.\n isTaxExempt Boolean @default(false) @map(\"is_tax_exempt\") // Whether the checkout is tax exempt.\n isTaxesIncluded Boolean @default(false) @map(\"is_taxes_included\") // Whether the taxes are included in the line item prices.\n totalPrice Decimal @default(0) @map(\"total_price\") // The sum of all the prices of all the items in the checkout, including taxes.\n totalTax Decimal @default(0) @map(\"total_tax\") // The sum of all the taxes applied to the line items in the checkout.\n paymentDue Decimal @map(\"payment_due\") // The amount left to be paid. This is equal to the cost of the line items, taxes, and shipping, minus discounts and gift cards.\n cartId BigInt @unique @map(\"cart_id\")\n checkoutGroupId BigInt @map(\"checkout_group_id\") // The ID of the checkout group the checkout belongs to. A checkout group is a collection of checkouts that are created from the same cart.\n deliveryFee Decimal @default(0) @map(\"delivery_fee\") // The delivery fee for the checkout. This is the sum of all the delivery fees for the line items in the checkout.\n currencyCode CurrencyCode @map(\"currency_code\")\n /// [TotalTaxBreakdown]\n totalTaxBreakdown Json @map(\"total_tax_breakdown\") // The breakdown of taxes applied to the line items in the checkout.\n tip Decimal @default(0)\n expressFee Decimal @default(0) @map(\"express_fee\") // The cost of express shipping\n discountAmount Decimal @default(0) @map(\"discount_amount\") // The total amount of the discounts applied to the checkout.\n fulfillmentOptInOptionType FulfillmentOptInOptionType? @map(\"fulfillment_opt_in_option_type\")\n\n /// [ShippoShipment]\n shippoShipment Json? @map(\"shippo_shipment\") // The Shippo shipment associated with the checkout. Used for rate shopping and tracking.\n\n purchasedRateId String? @map(\"purchased_rate_id\") // The ID of the purchased rate for the checkout\n\n /// ![Array<PrismaJson.ShippingRate>]\n calculatedShippingRates Json? @map(\"calculated_shipping_rates\") // The calculated shipping rates for the checkout\n\n shipmentServiceCode String? @map(\"shipment_service_code\") // The raw (unobfuscated) selected shippo service code\n\n /// ![Array<PrismaJson.BoxDetails>]\n calculatedParcels Json? @map(\"calculated_parcels\") // The calculated parcels for the checkout\n\n // Playing with these fields to see if they are needed\n isValid Boolean @default(true) @map(\"is_valid\") // Whether the checkout is valid and can be completed.\n invalidReason String? @map(\"invalid_reason\") // The reason why the checkout is invalid. Returns null if the checkout is valid.\n\n // Relations\n checkoutLines CheckoutLine[]\n fulfillmentFees FulfillmentFees[]\n customer Customer? @relation(fields: [customerId], references: [id])\n cart Cart @relation(fields: [cartId], references: [id], onDelete: Cascade)\n checkoutGroup CheckoutGroup @relation(fields: [checkoutGroupId], references: [id], onDelete: Cascade)\n eventLog EventLog[]\n\n // Gifting\n isGift Boolean @default(false) @map(\"is_gift\")\n giftFrom String? @map(\"gift_from\")\n giftMessage String? @map(\"gift_message\")\n payments Payment[]\n\n // Indexes & Mappings\n // Indexes & Mappings\n @@map(\"checkouts\")\n}\n\nenum EventLogEvent {\n ORDER_CREATED\n ORDER_ACCEPTED\n OUT_FOR_DELIVERY\n IN_TRANSIT\n FULFILLED\n REFUNDED\n CANCELED\n PACKED\n READY_FOR_PICKUP\n}\n\nmodel EventLog {\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now())\n event EventLogEvent\n eventDate DateTime\n platformId String @map(\"platform_id\")\n storeId String @map(\"store_id\")\n checkoutId BigInt @map(\"checkout_id\")\n\n // Relations\n Checkout Checkout @relation(fields: [checkoutId], references: [id])\n\n @@index([checkoutId, storeId, platformId])\n @@map(\"event_log\")\n}\n\n// For publishing collections to a platform\n\nmodel CollectionToPlatform {\n id BigInt @id @default(autoincrement())\n collectionId BigInt @map(\"collection_id\")\n platformId String? @map(\"platform_id\")\n slug String @map(\"slug\")\n\n // Relations\n collection Collection @relation(fields: [collectionId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n platform Platform? @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([collectionId, platformId])\n @@unique([slug, platformId])\n @@index([slug])\n @@index([platformId])\n @@index([collectionId])\n @@map(\"collection_to_platform\")\n}\n\n// Junction table for many-to-many relationship between Collection and ProductVariant\n\nmodel CollectionToProductVariant {\n collectionId BigInt @map(\"collection_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n collection Collection @relation(fields: [collectionId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@id([collectionId, productVariantId])\n @@index([productVariantId])\n @@index([collectionId])\n @@map(\"collection_to_product_variant\")\n}\n\n// Junction table for many-to-many relationship between Collection and Product (used for pre-calculating the products in a collection, matching the collection rules)\n\nmodel CollectionToProduct {\n platformId String @map(\"platform_id\")\n collectionId BigInt @map(\"collection_id\")\n productId BigInt @map(\"product_id\")\n\n // Relations\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n collection Collection @relation(fields: [collectionId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@id([platformId, collectionId, productId])\n @@index([platformId, collectionId])\n @@index([platformId])\n @@index([productId])\n @@index([collectionId])\n @@map(\"collection_to_product\")\n}\n\nmodel Collection {\n // Fields\n id BigInt @id @default(autoincrement())\n name String\n description String?\n imageId BigInt? @map(\"image_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n rules String?\n isSmart Boolean @default(true) @map(\"is_smart\")\n isActive Boolean @default(true) @map(\"is_active\")\n tags String[]\n\n // Relations\n image Media? @relation(fields: [imageId], references: [id], onDelete: SetNull, onUpdate: Cascade)\n manualCollectionProducts ManualCollectionProduct[]\n collectionToProductVariant CollectionToProductVariant[]\n collectionToPlatforms CollectionToPlatform[]\n collectionToProducts CollectionToProduct[]\n\n // Indexes and Mappings\n @@index([name])\n @@index([imageId])\n @@index(fields: [tags], type: Gin)\n @@map(\"collections\")\n}\n\n// Junction table for many-to-many relationship between Collection and Product (for manual collections)\n\nmodel ManualCollectionProduct {\n collectionId BigInt @map(\"collection_id\")\n productId BigInt @map(\"product_id\")\n position Int? @map(\"position\")\n\n // Relations\n collection Collection @relation(fields: [collectionId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@id([collectionId, productId])\n @@index([productId])\n @@index([collectionId])\n @@map(\"manual_collection_products\")\n}\n\nmodel CustomerGroup {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n name String\n\n // Relations\n customerToCustomerGroups CustomerToCustomerGroup[]\n\n @@map(\"customer_groups\")\n}\n\nmodel CustomerToAddress {\n // Fields\n customerId BigInt @map(\"customer_id\")\n addressId BigInt @map(\"address_id\")\n isDefault Boolean? @default(false) @map(\"is_default\")\n\n // Relations\n customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade)\n address Address @relation(fields: [addressId], references: [id], onDelete: Cascade)\n\n @@id([customerId, addressId])\n @@map(\"customer_to_address\")\n}\n\nmodel CustomerToCustomerGroup {\n customerId BigInt @map(\"customer_id\")\n customerGroupId BigInt @map(\"customer_group_id\")\n\n // Relations\n customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n customerGroup CustomerGroup @relation(fields: [customerGroupId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@id([customerId, customerGroupId])\n @@index([customerGroupId])\n @@map(\"customer_to_customer_group\")\n}\n\nmodel FlaggedPayment {\n // Default Columns\n id BigInt @id @default(autoincrement())\n\n // Columns\n customerEmail String @map(\"customer_email\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n clearedAt DateTime? @map(\"cleared_at\")\n ccHash String? @map(\"cc_hash\")\n metadata Json? @map(\"metadata\")\n\n @@unique([customerEmail, ccHash, clearedAt])\n // Indexes, constraints, mappings\n @@index([customerEmail])\n @@index([ccHash])\n @@index([clearedAt])\n @@index([metadata(ops: JsonbPathOps)], type: Gin)\n @@map(\"flagged_payments\")\n}\n\nmodel DiscountCodeAppliedToCart {\n cartId BigInt @map(\"cart_id\")\n cart Cart @relation(fields: [cartId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n discountCodeId BigInt @map(\"discount_count_id\")\n discountCode DiscountCode @relation(fields: [discountCodeId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n isValid Boolean @default(false) @map(\"is_valid\")\n appliedAt DateTime @default(now()) @map(\"applied_at\")\n warnings String[]\n\n @@id([cartId, discountCodeId])\n @@index([cartId], name: \"idx_discount_code_applied_on_cart_cart_id\")\n @@index([discountCodeId], name: \"idx_discount_code_applied_on_cart_discount_code_id\")\n @@index([appliedAt], name: \"idx_discount_code_applied_on_cart_applied_at\")\n @@map(\"discount_code_applied_on_cart\")\n}\n\nmodel DiscountCodeRedeemedOnCart {\n cartId BigInt @map(\"cart_id\")\n cart Cart @relation(fields: [cartId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n discountCodeRedemptionId BigInt @map(\"discount_count_id\")\n discountCodeRedemption DiscountCodeRedemption @relation(fields: [discountCodeRedemptionId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n discountCodeId BigInt\n discountCode DiscountCode @relation(fields: [discountCodeId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n redeemedAt DateTime @default(now()) @map(\"redeemed_at\")\n\n @@id([cartId, discountCodeRedemptionId])\n @@index([cartId], name: \"idx_discount_code_redeemed_on_cart_cart_id\")\n @@index([discountCodeRedemptionId], name: \"idx_discount_code_redeemed_on_cart_discount_code_redemption_id\")\n @@index([discountCodeId], name: \"idx_discount_code_redeemed_on_cart_discount_code_id\")\n @@index([redeemedAt], name: \"idx_discount_code_redeemed_on_cart_redeemed_at\")\n @@map(\"discount_code_redeemed_on_cart\")\n}\n\nmodel DiscountCodeRedemption {\n id BigInt @id @default(autoincrement())\n customerId BigInt?\n discountCodeId BigInt\n redeemedAt DateTime @default(now())\n\n // Relation Fields\n customer Customer? @relation(fields: [customerId], references: [id], onDelete: SetNull, onUpdate: Cascade)\n discountCode DiscountCode @relation(fields: [discountCodeId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n discountCodeRedeemedOnCart DiscountCodeRedeemedOnCart[]\n cartLine CartLine[]\n\n @@index([customerId], name: \"idx_discount_code_redemption_customer_id\")\n @@index([discountCodeId], name: \"idx_discount_code_redemption_discount_code_id\")\n @@index([redeemedAt], name: \"idx_discount_code_redemption_redeemed_at\")\n @@map(\"discount_code_redemptions\")\n}\n\nenum DiscountType {\n AMOUNT_OFF_TOTAL\n AMOUNT_OFF_PRODUCT\n AMOUNT_OFF_PRODUCT_VARIANT\n PERCENTAGE_OFF_TOTAL\n PERCENTAGE_OFF_PRODUCT\n PERCENTAGE_OFF_PRODUCT_VARIANT\n FREE_DELIVERY\n BUY_X_GET_Y_FREE\n}\n\nenum DiscountTargetType {\n PRODUCT\n PRODUCT_VARIANT\n CATEGORY\n COLLECTION\n}\n\nenum DiscountApplicationType {\n AUTOMATIC\n USER_INPUT\n}\n\nenum ActiveDays {\n SUN\n MON\n TUE\n WED\n THU\n FRI\n SAT\n}\n\nenum ActiveWeeks {\n WEEK_1\n WEEK_2\n WEEK_3\n WEEK_4\n WEEK_5\n}\n\nmodel DiscountCode {\n // Fields\n id BigInt @id @default(autoincrement())\n code String\n name String\n message String?\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Valid at\n platformId String? @map(\"platform_id\")\n storeIds String[] @map(\"store_ids\")\n isActive Boolean @default(true) @map(\"is_active\")\n startDate DateTime @map(\"start_date\")\n expiryDate DateTime @map(\"expiry_date\")\n isGlobal Boolean @default(false) @map(\"is_global\")\n maxGlobalRedemptions Int? @default(1) @map(\"max_global_redemptions\")\n maxRedemptionsPerUser Int? @default(1) @map(\"max_redemptions_per_user\")\n maxRedemptionsPerCart Int? @default(1) @map(\"max_redemptions_per_cart\")\n minCartValue Float? @map(\"min_cart_value\")\n customerOnly Boolean @default(false) @map(\"customer_only\")\n activeDays ActiveDays[] @default([SUN, MON, TUE, WED, THU, FRI, SAT]) @map(\"active_days\")\n activeWeeks ActiveWeeks[] @default([WEEK_1, WEEK_2, WEEK_3, WEEK_4, WEEK_5]) @map(\"active_weeks\")\n timeStart DateTime? @map(\"time_start\")\n timeEnd DateTime? @map(\"time_end\")\n timezone Timezone @default(AMERICA_LOS_ANGELES) @map(\"timezone\")\n\n // Most common type\n discountType DiscountType @default(PERCENTAGE_OFF_TOTAL) @map(\"discount_root_type\")\n discountApplicationType DiscountApplicationType @default(USER_INPUT) @map(\"discount_application_type\")\n discountPercentage Float? @default(0) @map(\"discount_percentage\")\n discountAmount Float? @default(0) @map(\"discount_amount\")\n\n productIds BigInt[] @map(\"product_ids\")\n productVariantIds BigInt[] @map(\"product_variant_ids\")\n categoryIds BigInt[] @map(\"category_ids\")\n collectionIds BigInt[] @map(\"collection_ids\")\n\n // Buy X Get Y free fields\n buyXId BigInt? @map(\"buy_x_id\")\n buyXAmount Int? @map(\"buy_x_amount\")\n buyXQty Int? @map(\"buy_x_qty\")\n buyXTargetType DiscountTargetType? @map(\"buy_x_target_type\")\n\n getYId BigInt? @map(\"get_y_id\")\n getYAmount Int? @map(\"get_y_amount\")\n getYQty Int? @map(\"get_y_qty\")\n getYTargetType DiscountTargetType? @map(\"get_y_target_type\")\n\n // Relations\n redemptions DiscountCodeRedemption[]\n\n discountCodesAppliedToCart DiscountCodeAppliedToCart[]\n discountCodeRedeemedOnCart DiscountCodeRedeemedOnCart[]\n cartLine CartLine[]\n\n @@unique([platformId, code])\n @@index([code], name: \"idx_discount_code_code\")\n @@index([platformId], name: \"idx_discount_code_platform_id\")\n @@index([storeIds], name: \"idx_discount_code_store_ids\")\n @@index([isActive], name: \"idx_discount_code_is_active\")\n @@index([expiryDate], name: \"idx_discount_code_expiry_date\")\n @@index([discountType], name: \"idx_discount_code_discount_type\")\n @@index([discountPercentage], name: \"idx_discount_code_discount_percentage\")\n @@index([discountAmount], name: \"idx_discount_code_discount_amount\")\n @@index([platformId, storeIds], name: \"idx_discount_code_platform_id_store_ids\")\n @@map(\"discount_codes\")\n}\n\n// Junction table for many-to-many relationship between FacetOption and Platform\n\nmodel FacetOptionToPlatform {\n facetOptionId BigInt @map(\"facet_option_id\")\n platformId BigInt @map(\"platform_id\")\n facetOption FacetOption @relation(fields: [facetOptionId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@id([facetOptionId, platformId])\n @@index([platformId])\n @@map(\"facet_option_to_platform\")\n}\n\nmodel FacetOption {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n facetId BigInt @map(\"facet_id\")\n value String @map(\"value\")\n\n // Relations\n facet Facet @relation(fields: [facetId], references: [id])\n facetOptionToPlatform FacetOptionToPlatform[]\n\n @@map(\"facet_options\")\n}\n\n// Junction table for many-to-many relationship between Facet and Platform\n\nmodel FacetToPlatform {\n facetId BigInt @map(\"facet_id\")\n platformId BigInt @map(\"platform_id\")\n facet Facet @relation(fields: [facetId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@id([facetId, platformId])\n @@index([platformId])\n @@map(\"facet_to_platform\")\n}\n\nmodel Facet {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n code String @unique @map(\"code\")\n\n // Relations\n facetOptions FacetOption[]\n facetToPlatform FacetToPlatform[]\n\n @@map(\"facets\")\n}\n\nenum FeatureType {\n ORDER_AUTO_FULFILLMENT\n}\n\nmodel FeatureFlag {\n id BigInt @id @default(autoincrement())\n storeCode String @map(\"store_code\")\n platformCode String @map(\"platform_code\")\n featureType FeatureType @map(\"feature_type\")\n enabled Boolean @default(false) @map(\"enabled\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Relations\n store Store @relation(fields: [storeCode], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformCode], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n\n // Constraints and indexes\n @@unique([storeCode, platformCode, featureType])\n @@index([platformCode, featureType])\n @@index([featureType])\n @@map(\"feature_flags\")\n}\n\nmodel FreeItemRule {\n id BigInt @id @default(autoincrement())\n ruleId BigInt @map(\"rule_id\")\n fromPvid BigInt @map(\"from_pvid\")\n toPvid BigInt @map(\"to_pvid\")\n\n @@map(\"free_item_rules\")\n}\n\nmodel FreeItemToCustomer {\n freeItemRuleId BigInt @map(\"free_item_rule_id\")\n ruleId BigInt @map(\"rule_id\")\n email String\n\n @@id([freeItemRuleId, ruleId, email])\n @@map(\"free_item_rule_to_customer\")\n}\n\nenum FeeCode {\n FULFILLMENT_TYPE\n FULFILLMENT_OPT_IN_OPTION_TYPE\n}\n\nmodel FulfillmentFees {\n // Fields\n id BigInt @id @default(autoincrement())\n checkoutId BigInt @map(\"checkout_id\")\n feeCode FeeCode @map(\"fee_code\")\n fulfillmentType FulfillmentType @map(\"fulfillment_type\")\n fulfillmentOptInOptionType FulfillmentOptInOptionType? @map(\"fulfillment_opt_in_option_type\")\n currencyCode CurrencyCode @map(\"currency_code\")\n fee Decimal\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Relations\n checkout Checkout @relation(fields: [checkoutId], references: [id], onDelete: Cascade)\n\n // Indexes & Mappings\n @@index([checkoutId], name: \"checkout_id\")\n @@map(\"fulfillment_fees\")\n}\n\n// Ingredient model\nmodel Ingredient {\n id BigInt @id @default(autoincrement())\n name String @map(\"name\")\n description String? @map(\"description\")\n categoryId BigInt? @map(\"category_id\")\n linkedProductVariantId BigInt? @map(\"linked_product_variant_id\")\n unitOfMeasurement UnitOfMeasurement @map(\"unit_of_measurement\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @updatedAt @map(\"updated_at\")\n\n // Relations\n category ProductCategory? @relation(fields: [categoryId], references: [id])\n productVariant ProductVariant? @relation(fields: [linkedProductVariantId], references: [id])\n ingredientToProductVariants IngredientToProductVariant[]\n ingredientToStores IngredientToStore[]\n storeRestockingSchedules StoreRestockingSchedule[]\n\n @@index([linkedProductVariantId])\n @@index([categoryId])\n @@index([name(ops: raw(\"gin_trgm_ops\"))], type: Gin)\n @@map(\"ingredients\")\n}\n\n// Junction table between Ingredients and ProductVariants\nmodel IngredientToProductVariant {\n id BigInt @id @default(autoincrement())\n ingredientId BigInt @map(\"ingredient_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n quantity Float @map(\"quantity\")\n isRequired Boolean @default(true) @map(\"is_required\")\n position Int @default(0) @map(\"position\")\n costPerUnit Float @map(\"cost_per_unit\")\n inheritProductVariantPrice Boolean @default(false) @map(\"inherit_product_variant_price\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Relations\n ingredient Ingredient @relation(fields: [ingredientId], references: [id], onDelete: Cascade)\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade)\n\n @@unique([ingredientId, productVariantId])\n @@index([ingredientId])\n @@index([productVariantId])\n @@map(\"ingredients_to_product_variants\")\n}\n\n// Ingredients availability in stores\nmodel IngredientToStore {\n ingredientId BigInt @map(\"ingredient_id\")\n storeId String @map(\"store_id\")\n stock Float? @map(\"stock\")\n inheritStock Boolean @default(false) @map(\"inherit_stock\")\n // availability Boolean @default(true) ?\n mediaId BigInt? @map(\"media_id\")\n isActive Boolean @default(true) @map(\"is_active\")\n\n // Relations\n ingredient Ingredient @relation(fields: [ingredientId], references: [id])\n store Store @relation(fields: [storeId], references: [storeId])\n media Media? @relation(fields: [mediaId], references: [id])\n\n @@id([ingredientId, storeId])\n @@index([ingredientId])\n @@index([storeId])\n @@map(\"ingredients_to_stores\")\n}\n\nmodel AwsBucket {\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n bucketName String @unique @map(\"bucket_name\")\n region String\n accessKeyId String @map(\"access_key_id\")\n encryptionData Json @map(\"encryption_data\")\n secretAccessKeyEncrypted String @map(\"secret_access_key_encrypted\")\n cloudFrontDomain String @map(\"cloud_front_domain\")\n presignedUrlExpiration Int @map(\"presigned_url_expiration\") // in seconds\n maxFileSize Int @map(\"max_file_size\") // in bytes\n maxFilenameLength Int @map(\"max_filename_length\") // in characters\n platformAwsConfigurations PlatformAwsConfiguration[]\n\n @@map(\"aws_buckets\")\n}\n\nenum MediaContentType {\n IMAGE\n VIDEO\n}\n\nmodel Media {\n // Fields\n id BigInt @id @default(autoincrement())\n mediaContentType MediaContentType @map(\"media_content_type\")\n key String // the key of the processed file (hash of the contents of the original file)\n filename String // the original filename (for display purposes)\n resourceUrl String @map(\"resource_url\")\n mime String\n width Int? // in pixels, not set until processed\n height Int? // in pixels, not set until processed\n alt String?\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n processedAt DateTime? @map(\"processed_at\")\n bucket String @default(\"project-platform\") @map(\"bucket\")\n isInternal Boolean @default(true) @map(\"is_internal\")\n\n // Relations\n collections Collection[]\n productVariants ProductVariantToMedia[]\n productVariantListingToMedias ProductVariantListingToMedia[]\n modifiers Modifier[]\n ingredientToStores IngredientToStore[]\n\n @@unique([key, bucket])\n @@unique([resourceUrl, bucket])\n // Indexes and Mappings\n @@index([mediaContentType])\n @@map(\"media\")\n}\n\nmodel PlatformAwsConfiguration {\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n platformId String @unique @map(\"platform_id\")\n awsBucketName String @map(\"aws_bucket_name\")\n uploadPath String @map(\"upload_path\")\n\n // Relations\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n awsBucket AwsBucket @relation(fields: [awsBucketName], references: [bucketName], onDelete: Cascade, onUpdate: Cascade)\n\n @@map(\"platform_aws_configuration\")\n}\n\nmodel ModifierGroupToProduct {\n // Fields\n modifierGroupId BigInt @map(\"modifier_group_id\")\n productId BigInt @map(\"product_id\")\n position Int @default(0) @map(\"position\")\n\n //Relations\n modifierGroup ModifierGroup @relation(fields: [modifierGroupId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n //Indexes and mappings\n @@id([modifierGroupId, productId])\n @@index([productId])\n @@index([modifierGroupId])\n @@index([productId, position], name: \"product_position_idx\")\n @@map(\"modifier_group_to_product\")\n}\n\nmodel ModifierGroup {\n // Fields\n id BigInt @id @default(autoincrement())\n platformId String @map(\"platform_id\")\n storeId String @map(\"store_id\")\n name String\n description String?\n max Int @default(999)\n min Int @default(0)\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n\n // Relations\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n\n modifierToModifierGroup ModifierToModifierGroup[]\n modifierGroupToProduct ModifierGroupToProduct[]\n checkoutLinesModifier CheckoutLinesModifier[]\n cartLineModifier CartLineModifier[]\n\n @@index([platformId])\n @@index([storeId])\n @@map(\"modifier_groups\")\n}\n\nmodel ModifierOption {\n // Fields\n id BigInt @id @default(autoincrement())\n modifierId BigInt @map(\"modifier_id\")\n name String\n price Decimal?\n description String?\n attributes Json?\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n productVariantId BigInt? @map(\"product_variant_id\")\n\n // Relations\n modifier Modifier @relation(fields: [modifierId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n productVariant ProductVariant? @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n cartLineModifierOptions CartLineModifierOption[]\n checkoutLineModifierOption CheckoutLineModifierOption[]\n\n @@index([modifierId])\n @@index([productVariantId])\n @@map(\"modifier_option\")\n}\n\nmodel ModifierToModifierGroup {\n // Fields\n modifierGroupId BigInt @map(\"modifier_group_id\")\n modifierId BigInt @map(\"modifier_id\")\n maxModifierQuantity Int @default(999) @map(\"max_modifier_quantity\")\n minModifierQuantity Int @default(0) @map(\"min_modifier_quantity\")\n position Int @default(0) @map(\"position\")\n\n //Relations\n modifierGroup ModifierGroup @relation(fields: [modifierGroupId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n modifier Modifier @relation(fields: [modifierId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n //Indexes and mappings\n @@id([modifierGroupId, modifierId])\n @@index([modifierId])\n @@index([modifierGroupId])\n @@map(\"modifier_to_modifier_group\")\n}\n\nmodel Modifier {\n // Fields\n id BigInt @id @default(autoincrement())\n name String\n price Decimal?\n description String?\n attributes Json?\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n deletedAt DateTime? @map(\"deleted_at\")\n productVariantId BigInt? @map(\"product_variant_id\")\n mediaId BigInt? @map(\"media_id\")\n matchVariantPrice Boolean @default(false) @map(\"match_variant_price\")\n platformId String? @map(\"platform_id\")\n\n // Relations\n productVariant ProductVariant? @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n modifierOption ModifierOption[]\n cartLineModifier CartLineModifier[]\n CheckoutLinesModifier CheckoutLinesModifier[]\n CheckoutLineModifierOption CheckoutLineModifierOption[]\n media Media? @relation(fields: [mediaId], references: [id], onDelete: SetNull, onUpdate: Cascade)\n modifierToModifierGroup ModifierToModifierGroup[]\n platform Platform? @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n\n @@index([platformId])\n @@index([productVariantId])\n @@map(\"modifier\")\n}\n\nmodel NmiSecurityKey {\n id BigInt @id @default(autoincrement())\n platformId String @unique @map(\"platform_id\")\n isProduction Boolean @default(false) @map(\"is_production\")\n key String // Encrypted security key\n encryptionData Json @map(\"encryption_data\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n @@map(\"nmi_security_keys\")\n}\n\nmodel Payment {\n // Fields\n id BigInt @id @default(autoincrement())\n amount Decimal @map(\"amount\") // In dollars. This will be the amount that the customer paid as it pertains to this checkout. If you want to see the total amount charged to the customer, you can reference the transaction.\n transactionId BigInt @map(\"transaction_id\") // The transaction that this payment is associated with. Not unique because multiple payments can be associated with a single transaction.\n\n /// [KeyValueMetadata]\n metadata Json[] @map(\"metadata\")\n checkoutId BigInt @map(\"checkout_id\")\n\n // Default fields for an entity\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Relations\n checkout Checkout @relation(fields: [checkoutId], references: [id])\n transaction Transaction @relation(fields: [transactionId], references: [id])\n refunds Refund[]\n\n @@map(\"payments\")\n}\n\nmodel RefundLine {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Entity Fields\n quantity Int @map(\"quantity\")\n checkoutLineId BigInt @map(\"checkout_line_id\")\n refundId BigInt @map(\"refund_id\")\n\n // Relations\n checkoutLine CheckoutLine @relation(fields: [checkoutLineId], references: [id])\n refund Refund @relation(fields: [refundId], references: [id])\n\n @@map(\"refund_lines\")\n}\n\nmodel Refund {\n // Entity Fields\n id BigInt @id @default(autoincrement())\n totalAmount Decimal @map(\"amount\") // Sum of all refund lines, and flatAmount, tipAmount, and shippingAmount\n reason String @map(\"reason\")\n metadata Json? @map(\"metadata\")\n paymentId BigInt @map(\"payment_id\")\n flatAmount Decimal @default(0) @map(\"flat_amount\")\n tipAmount Decimal @default(0) @map(\"tip_amount\")\n shippingAmount Decimal @default(0) @map(\"shipping_amount\")\n transactionId BigInt @unique @map(\"transaction_id\")\n\n // Default fields for an entity\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Relations\n payment Payment @relation(fields: [paymentId], references: [id])\n lines RefundLine[]\n transaction Transaction @relation(fields: [transactionId], references: [id])\n\n @@map(\"refunds\")\n}\n\nenum TransactionType {\n SALE\n AUTH\n CAPTURE\n REFUND\n VOID\n}\n\nmodel Transaction {\n // Fields\n id BigInt @id @default(autoincrement())\n type TransactionType @default(SALE) @map(\"type\")\n amount Decimal @map(\"amount\")\n state TransactionState @default(Created) @map(\"state\")\n errorMessage String? @map(\"error_message\")\n nmiTransactionId String @map(\"nmi_transaction_id\")\n nmiMerchantId String @default(\"POS360\") @map(\"nmi_merchant_id\")\n isTokenized Boolean @default(false) @map(\"is_tokenized\")\n tokenProvider String? @map(\"token_provider\")\n\n /// [PaymentMetadata]\n metadata Json @default(\"{}\") @map(\"metadata\")\n\n // Default fields for an entity\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Relations\n payments Payment[]\n refund Refund? // If type is refund, this will be populated\n\n @@map(\"transactions\")\n}\n\nmodel PlatformMailerMessage {\n id BigInt @id @default(autoincrement())\n platformId String @map(\"platform_id\")\n eventType PlatformMailerMessageEventType @map(\"event_type\")\n message String @map(\"message\")\n recipient PlatformMailerMessageRecipient @map(\"recipient\")\n fulfillmentType FulfillmentType @map(\"fulfillment_type\")\n isActive Boolean @map(\"is_active\")\n\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade)\n\n @@unique([platformId, eventType, recipient, fulfillmentType])\n @@index([platformId, eventType])\n @@index([platformId])\n @@map(\"platform_mailer_messages\")\n}\n\nenum PlatformMailerMessageRecipient {\n CUSTOMER\n MERCHANT\n BOTH\n}\n\nenum PlatformMailerMessageEventType {\n NEW_ORDER\n ORDER_REFUND\n ORDER_CANCEL\n ORDER_STATUS_UPDATE\n TRACKING_INFO\n}\n\nmodel Platform {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n platformId String @unique @map(\"platform_id\")\n name String @default(\"\") @map(\"name\")\n displayName String @map(\"display_name\")\n logoUrl String @default(\"\") @map(\"logo_url\")\n domain String @map(\"domain\")\n deletedAt DateTime? @map(\"deleted_at\")\n defaultLanguageCode String @default(\"en\") @map(\"default_language_code\")\n availableLanguages String[] @default([\"en\"]) @map(\"available_languages\")\n defaultCurrencyCode String @default(\"USD\") @map(\"default_currency_code\")\n availableCurrencies String[] @default([\"USD\"]) @map(\"available_currencies\")\n isThirdParty Boolean @default(false) @map(\"is_third_party\")\n thirdPartyType String? @map(\"third_party_type\") // e.g. ubereats, doordash, etc.\n associatedStoreId String? @map(\"associated_store_id\") // if this is a third party platform, this is the store id of the store that is associated with this platform\n mailConfig Json? @map(\"mail_config\")\n phoneConfig Json? @map(\"phone_config\")\n googleMerchantCenterId String? @unique @map(\"google_merchant_center_id\")\n googleMerchantCenterCreds Json? @map(\"google_merchant_center_creds\")\n\n // Relations\n administratorToPlatform AdministratorToPlatform[]\n storeToPlatform StoreToPlatform[]\n facetToPlatform FacetToPlatform[]\n facetOptionToPlatform FacetOptionToPlatform[]\n stockLocationToPlatform StockLocationToPlatform[]\n tags Tag[]\n productVariantListing ProductVariantListing[]\n productVariantPlatformPricing ProductVariantPlatformPricing[]\n productVariantConfigurations ProductVariantConfiguration[]\n platformAwsConfiguration PlatformAwsConfiguration?\n collectionToPlatforms CollectionToPlatform[]\n collectionToProducts CollectionToProduct[]\n associatedStore Store? @relation(fields: [associatedStoreId], references: [storeId])\n productVariantStoreAndPlatformPricings ProductVariantStoreAndPlatformPricing[]\n modifierGroups ModifierGroup[]\n productListings ProductListing[]\n prepTimes PrepTime[]\n storeRestockingSchedules StoreRestockingSchedule[]\n storeToAssociatedStoreTypes StoreToAssociatedStoreType[] @relation(\"AssociatedStoreTypeToPlatform\")\n productVariantStoreRankings ProductVariantStoreRanking[]\n modifiers Modifier[]\n featureFlags FeatureFlag[]\n platformMailerMessages PlatformMailerMessage[]\n pvStoreScheduledAvailability PvStoreScheduledAvailability[]\n\n @@map(\"platforms\")\n}\n\nmodel ProductListing {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n active Boolean @default(true)\n platformCode String @map(\"platform_code\") // FK to Platform.platformId\n productId BigInt @map(\"product_id\") // FK to Product.id\n slug String @map(\"slug\")\n name String? // If set, this will override the name of the product\n brand String? // If set, this will override the brand of the product\n description String? // If set, this will override the description of the product\n categoryId BigInt? @map(\"category_id\") // If set, this will override the category of the product\n\n // Relations\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n category ProductCategory? @relation(fields: [categoryId], references: [id])\n platform Platform @relation(fields: [platformCode], references: [platformId], onUpdate: Cascade)\n\n @@unique([productId, platformCode])\n @@unique([slug, platformCode])\n @@index([platformCode])\n @@index([categoryId, active])\n @@map(\"product_listings\")\n}\n\nmodel ProductToTag {\n // Fields\n productId BigInt @map(\"product_id\")\n tagId BigInt @map(\"tag_id\")\n\n // Relations\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n tag Tag @relation(fields: [tagId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n // Indexes and mappings\n @@id([productId, tagId])\n @@index([tagId])\n @@map(\"product_to_tag\")\n}\n\nmodel ProductVariantListing {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n active Boolean @default(true)\n platformId String @map(\"platform_id\")\n productId BigInt @map(\"product_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n name String? // If set, this will override the name of the product variant\n nameSuffix String? @map(\"name_suffix\")\n description String? // If set, this will override the description of the product variant\n position Int @default(0) // The position of the product variant listing\n attributes Json? // If set, this will override the attributes of the product variant\n packSize Int? @map(\"pack_size\") // If set, this will override the pack size of the product variant\n size Float? // If set, this will override the size of the product variant\n uom UnitOfMeasurement? // If set, this will override the unit of measurement of the product variant\n containerType ContainerType? @map(\"container_type\") // If set, this will override the container type of the product variant\n\n // Relations\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n productVariantListingToMedias ProductVariantListingToMedia[]\n\n @@unique([productVariantId, productId, platformId])\n @@index([productId, platformId])\n @@index([productVariantId, platformId])\n @@index([productId, position])\n @@index([platformId, active])\n @@index([platformId, productVariantId], name: \"pvl_platform_variant_idx\")\n @@map(\"product_variant_listings\")\n}\n\nmodel Product {\n // Fields\n id BigInt @id @default(autoincrement())\n name String\n brand String\n description String?\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n restriction RestrictionType\n categoryId BigInt @map(\"category_id\")\n combined_name_description_tags Unsupported(\"TSVECTOR\")?\n isCustom Boolean @default(false) @map(\"is_custom\")\n storeOwnerId String? @map(\"store_owner_id\") // StoreId of store that created custom product\n\n // Relations\n variants ProductVariant[]\n manualCollections CollectionToProduct[]\n category ProductCategory @relation(fields: [categoryId], references: [id], onUpdate: Cascade)\n ProductVariantRanking ProductVariantRanking[]\n productListings ProductListing[]\n productVariantListings ProductVariantListing[]\n productToTags ProductToTag[]\n storeOwner Store? @relation(fields: [storeOwnerId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n manualCollectionProducts ManualCollectionProduct[]\n modifierGroupToProduct ModifierGroupToProduct[]\n productVariantStoreRankings ProductVariantStoreRanking[]\n\n // Indexes and Mappings\n @@unique([storeOwnerId, name], name: \"store_owner_id_name_unique\")\n @@index([categoryId, id], name: \"category_id_id_index\")\n @@index([name(ops: raw(\"gin_trgm_ops\"))], type: Gin)\n @@index([brand(ops: raw(\"gin_trgm_ops\"))], name: \"brand_gin_index\", type: Gin)\n @@index([combined_name_description_tags], type: Gin)\n @@map(\"products\")\n}\n\n// This model is used to map directly onto the matview `products_with_overrides_ivm` in the database, which is managed by the pg_ivm extension.\n// NOTE: We should not write to this model directly, as it is a view. Instead, we should write to the underlying tables and let the view update automatically.\nmodel ProductsWithOverrides {\n // Fields\n id BigInt @id @default(autoincrement())\n platformId String @map(\"platform_id\")\n productId BigInt @map(\"product_id\")\n productName String? @map(\"product_name\")\n productBrand String? @map(\"product_brand\")\n categoryId BigInt? @map(\"category_id\")\n categoryName String? @map(\"category_name\")\n productDescription String? @map(\"product_description\")\n productActive Boolean? @map(\"product_active\")\n productRestriction RestrictionType? @map(\"product_restriction\")\n productCreatedAt DateTime? @map(\"product_created_at\")\n productUpdatedAt DateTime? @map(\"product_updated_at\")\n productSlug String? @map(\"product_slug\")\n combined_name_description_tags Unsupported(\"TSVECTOR\")?\n isCustom Boolean? @map(\"is_custom\")\n storeOwnerId String? @map(\"store_owner_id\")\n productVariantActive Boolean? @map(\"product_variant_active\")\n productVariantId BigInt @map(\"product_variant_id\")\n displayName String? @map(\"display_name\")\n productVariantPublishedAt DateTime? @map(\"product_variant_published_at\")\n productVariantName String? @map(\"product_variant_name\")\n productVariantDescription String? @map(\"product_variant_description\")\n sku String? @map(\"sku\")\n upc String? @map(\"upc\")\n attributes Json? @map(\"attributes\")\n packSize Int? @map(\"pack_size\")\n size Float? @map(\"size\")\n uom UnitOfMeasurement? @map(\"uom\")\n containerType ContainerType? @map(\"container_type\")\n productVariantListingPosition Int? @map(\"product_variant_listing_position\")\n productVariantPosition Int? @map(\"product_variant_position\")\n\n // Indexes and Mappings\n @@unique([platformId, productVariantId], name: \"pwo_unique_idx\")\n @@index([platformId, productId, productVariantPosition], name: \"pwo_plid_product_id_pos_idx\")\n @@index([platformId, productId, productVariantListingPosition], name: \"pwo_plid_product_id_opos_idx\")\n @@index([categoryId], name: \"pwo_category_id_idx\")\n @@index([storeOwnerId], name: \"pwo_storeid_idx\")\n @@index([productName(ops: raw(\"gin_trgm_ops\"))], name: \"pwo_p_name_idx\", type: Gin)\n @@index([productBrand(ops: raw(\"gin_trgm_ops\"))], name: \"pwo_p_brand_idx\", type: Gin)\n @@index([productVariantName(ops: raw(\"gin_trgm_ops\"))], name: \"pwo_pv_name_idx\", type: Gin)\n @@index([categoryName(ops: raw(\"gin_trgm_ops\"))], name: \"pwo_category_name_idx\", type: Gin)\n @@index([packSize], name: \"pwo_pack_size_idx\")\n @@index([size], name: \"pwo_size_idx\")\n @@index([uom], name: \"pwo_uom_idx\")\n @@index([containerType], name: \"pwo_container_type_idx\")\n @@index([platformId, productId, productVariantId], name: \"pwo_composite_lookup_idx\")\n @@index([combined_name_description_tags], type: Gin)\n @@index([attributes(ops: JsonbPathOps)], name: \"pwo_attributes_idx\", type: Gin)\n @@index([platformId, productSlug, productActive, productVariantActive])\n @@index([productId, platformId, productActive, productVariantActive])\n @@index([sku, productActive, productVariantActive])\n @@index([platformId, productId, productVariantPublishedAt(sort: Desc)])\n @@index([platformId, productId, productCreatedAt])\n @@index([productId, productVariantId, productVariantPublishedAt(sort: Desc)], name: \"pwo_product_variant_window_idx\")\n @@index([platformId, productId, productActive, productVariantActive], name: \"pwo_platform_products_active_idx\")\n @@index([id, platformId, productName, productBrand, productDescription, categoryName, sku, upc, uom, productCreatedAt], map: \"pvo_search_idx\")\n @@map(\"products_with_overrides\")\n}\n\nmodel ProductCategoryToTag {\n // Fields\n categoryId BigInt @map(\"category_id\")\n tagId BigInt @map(\"tag_id\")\n\n // Relations\n category ProductCategory @relation(fields: [categoryId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n tag Tag @relation(fields: [tagId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n // Indexes and mappings\n @@id([categoryId, tagId])\n @@index([tagId])\n @@map(\"category_to_tag\")\n}\n\nmodel ProductCategory {\n // Fields\n id BigInt @id @default(autoincrement())\n name String @unique\n displayName String? @map(\"display_name\")\n restriction RestrictionType\n products Product[]\n taxCategoryId BigInt @map(\"tax_category_id\")\n\n // Relations\n ingredients Ingredient[]\n subcategories ProductCategory[] @relation(\"CategoryToCategory\")\n parentCategoryId BigInt? @map(\"parent_category_id\")\n parentCategory ProductCategory? @relation(\"CategoryToCategory\", fields: [parentCategoryId], references: [id], onDelete: SetNull, onUpdate: Cascade)\n taxCategory TaxCategory? @relation(fields: [taxCategoryId], references: [id], onDelete: SetNull, onUpdate: Cascade)\n productListing ProductListing[]\n productCategoryToTags ProductCategoryToTag[]\n\n @@index([parentCategoryId], name: \"parent_category_id\")\n @@map(\"categories\")\n}\n\nmodel ProductVariantConfiguration {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n platformId String @map(\"platform_id\")\n storeId String @map(\"store_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n hideFromListing Boolean @default(false) @map(\"hide_from_listing\")\n trackQuantity Boolean @default(true) @map(\"track_quantity\")\n allowedFulfillmentTypes FulfillmentType[] @default([]) @map(\"allowed_fulfillment_types\")\n overrideFulfillmentType Boolean @default(false) @map(\"override_fulfillment_type\")\n continueSellingWhenOutOfStock Boolean @default(false) @map(\"continue_selling_when_out_of_stock\")\n overrideMedia Boolean @default(false) @map(\"override_media\")\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([productVariantId, platformId, storeId])\n @@index([productVariantId, storeId])\n @@index([storeId])\n // New index for stock level filtering with hideFromListing\n @@index([productVariantId, storeId, hideFromListing], name: \"idx_pvc_variant_store_hide\")\n @@index([platformId, storeId, productVariantId, hideFromListing], name: \"pvc_platform_store_listing_idx\")\n @@map(\"product_variant_configuration\")\n}\n\n// Junction table for many-to-many relationship between ProductVariantListing and Media\n\nmodel ProductVariantListingToMedia {\n // Fields\n productVariantListingId BigInt @map(\"product_variant_listing_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n mediaId BigInt @map(\"media_id\")\n position Int @default(0)\n\n // Relations\n productVariantListing ProductVariantListing @relation(fields: [productVariantListingId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n media Media @relation(fields: [mediaId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n // Indexes and mappings\n @@id([productVariantListingId, mediaId, position])\n @@unique([productVariantListingId, mediaId])\n @@index([productVariantId, mediaId])\n @@index([productVariantId, position, mediaId])\n @@index([productVariantListingId, position, mediaId], name: \"pvltm_listing_position_idx\")\n @@map(\"product_variant_listing_to_media\")\n}\n\n// if set, this will override the price of the product variant (from product_variant_store_pricing)\n// unless, the platform is a third party platform, then this acts as a default price\n\nmodel ProductVariantPlatformPricing {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n productVariantId BigInt @map(\"product_variant_id\")\n platformId String @map(\"platform_id\")\n price Decimal @map(\"price\")\n currencyCode String @default(\"USD\") @map(\"currency_code\")\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([productVariantId, platformId, currencyCode])\n @@index([platformId])\n @@index([currencyCode, platformId, productVariantId, price])\n @@index([platformId, productVariantId, price], name: \"pvpp_platform_variant_price_idx\")\n @@index([productVariantId, price], name: \"pvpp_price_filtering_idx\")\n @@map(\"product_variant_platform_pricing\")\n}\n\n// This is used to give a path to allow a store to dictate a pricing override for a product variant on a platform\n\nmodel ProductVariantStoreAndPlatformPricing {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n productVariantId BigInt @map(\"product_variant_id\")\n storeId String @map(\"store_id\")\n platformId String @map(\"platform_id\")\n price Decimal? @map(\"price\")\n compareAtPrice Decimal? @map(\"compare_at_price\")\n currencyCode String @default(\"USD\") @map(\"currency_code\")\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([productVariantId, storeId, platformId, currencyCode])\n @@index([platformId, storeId, currencyCode, productVariantId])\n @@index([productVariantId, platformId, storeId], name: \"pvp_pvariant_id_platform_id_store_id_idx\")\n @@index([productVariantId, price], name: \"pvp_pvariant_id_price_idx\")\n @@index([platformId, storeId, productVariantId, price], name: \"pvp_platform_id_store_id_pvariant_id_price_idx\")\n @@map(\"product_variant_store_platform_pricing\")\n}\n\nmodel ProductVariantStorePricing {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n storeId String @map(\"store_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n compareAtPrice Decimal? @map(\"compare_at_price\")\n price Decimal @map(\"price\")\n currencyCode String @default(\"USD\") @map(\"currency_code\")\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([productVariantId, storeId, currencyCode])\n @@index([price, productVariantId, storeId])\n @@index([storeId, currencyCode, productVariantId])\n @@index([productVariantId, price])\n @@index([currencyCode, storeId, productVariantId, price])\n @@index([productVariantId, price], name: \"pvsp_price_filtering_idx\")\n @@map(\"product_variant_store_pricing\")\n}\n\n// Junction table for many-to-many relationship between ProductVariant and Media\n\nmodel ProductVariantToMedia {\n // Fields\n productVariantId BigInt @map(\"product_variant_id\")\n mediaId BigInt @map(\"media_id\")\n position Int @default(0)\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n media Media @relation(fields: [mediaId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n // Indexes and mappings\n @@id([productVariantId, mediaId, position])\n @@index([productVariantId, mediaId])\n @@index([productVariantId, position, mediaId])\n @@map(\"product_variant_to_media\")\n}\n\nmodel ProductVariantToTag {\n // Fields\n productVariantId BigInt @map(\"product_variant_id\")\n tagId BigInt @map(\"tag_id\")\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n tag Tag @relation(fields: [tagId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n // Indexes and mappings\n @@id([productVariantId, tagId])\n @@index([tagId])\n @@index([productVariantId])\n @@map(\"product_variant_to_tag\")\n}\n\nmodel ProductVariant {\n // Fields\n id BigInt @id @default(autoincrement())\n position Int @default(0)\n name String\n nameSuffix String? @map(\"name_suffix\")\n upc String\n sku String\n description String?\n\n /// [ProductVariantAttributes]\n attributes Json?\n\n packSize Int @default(1) @map(\"pack_size\")\n size Float\n uom UnitOfMeasurement\n containerType ContainerType @map(\"container_type\")\n displayName String? @map(\"display_name\")\n productId BigInt @map(\"product_id\")\n isCustom Boolean @default(false) @map(\"is_custom\")\n storeOwnerId String? @map(\"store_owner_id\") // StoreId of store that created custom product variant\n\n // Relations\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n fromRelatedItems RelatedItems[] @relation(\"fromProductVariant\")\n toRelatedItems RelatedItems[] @relation(\"toProductVariant\")\n\n media ProductVariantToMedia[]\n cartLines CartLine[]\n checkoutLines CheckoutLine[]\n ProductVariantRanking ProductVariantRanking?\n productVarietal ProductVarietal[]\n collectionToProductVariant CollectionToProductVariant[]\n stockLevels StockLevel[]\n productVariantListing ProductVariantListing[]\n productVariantPlatformPricing ProductVariantPlatformPricing[]\n productVariantStorePricing ProductVariantStorePricing[]\n stockMovement StockMovement[]\n productVariantConfigurations ProductVariantConfiguration[]\n productVariantToTags ProductVariantToTag[]\n productVariantListingToMedias ProductVariantListingToMedia[]\n productVariantStoreAndPlatformPricings ProductVariantStoreAndPlatformPricing[]\n modifier Modifier[]\n modifierOption ModifierOption[]\n productVariantStoreRankings ProductVariantStoreRanking[]\n ingredientToProductVariants IngredientToProductVariant[]\n ingredients Ingredient[]\n pvStoreScheduledAvailability PvStoreScheduledAvailability[]\n\n @@unique([storeOwnerId, sku])\n // Indexes and Mapppings\n @@index([upc])\n @@index([productId, position])\n @@index([sku, position])\n @@index([storeOwnerId])\n @@index([name(ops: raw(\"gin_trgm_ops\"))], type: Gin)\n @@index([upc(ops: raw(\"gin_trgm_ops\"))], name: \"upc_gin_index\", type: Gin)\n @@index([sku(ops: raw(\"gin_trgm_ops\"))], name: \"sku_gin_index\", type: Gin)\n @@map(\"product_variants\")\n}\n\nmodel ProductVariantRanking {\n // Fields\n id BigInt @id @default(autoincrement())\n productId BigInt @map(\"product_id\")\n productVariantId BigInt @unique @map(\"product_variant_id\")\n sku String @unique\n ranking Int\n grossRevenue Float @map(\"gross_revenue\")\n numOrders Float @map(\"num_orders\")\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@index([productVariantId, ranking])\n @@index([productId, ranking], name: \"idx_product_variant_ranking_product_and_ranking\")\n @@index([productId, productVariantId], name: \"idx_product_variant_ranking_product_and_variant\")\n @@index([sku], name: \"idx_product_variant_ranking_sku\")\n @@map(\"product_variant_ranking\")\n}\n\nmodel ProductVariantStoreRanking {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n productId BigInt @map(\"product_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n storeId String @map(\"store_id\")\n platformId String @map(\"platform_id\")\n ranking Int @default(0)\n boostValue Float @default(0) @map(\"boost_value\")\n grossRevenue Float @default(0) @map(\"gross_revenue\")\n numOrders Float @default(0) @map(\"num_orders\")\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n product Product @relation(fields: [productId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([productVariantId, storeId, platformId])\n @@index([storeId, platformId, productId])\n @@index([storeId, platformId, ranking])\n @@index([productId, storeId])\n @@map(\"product_variant_store_ranking\")\n}\n\nmodel ProductVarietal {\n // Fields\n id BigInt @id @default(autoincrement())\n sku String\n vintage Int\n packSize Int @default(1) @map(\"pack_size\")\n size Float\n uom UnitOfMeasurement\n region String?\n country String?\n productVariantId BigInt @map(\"product_variant_id\")\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n // Indexes\n @@unique([sku, vintage]) // NOTE: Made this a unique constraint because there should only be one product varietal for a single sku and single vintage\n @@index([sku])\n @@index([vintage])\n @@index([productVariantId])\n @@map(\"product_varietals\")\n}\n\nmodel RelatedItems {\n // Fields\n id BigInt @id @default(autoincrement())\n fromProductVariantId BigInt @map(\"from_product_variant_id\")\n toProductVariantId BigInt @map(\"to_product_variant_id\")\n // weight Int // 0-100\n\n fromSku String @map(\"from_sku\")\n toSku String @map(\"to_sku\")\n frequency Int @map(\"frequency\")\n quantityTo Int @map(\"quantity_to\")\n\n // Relations\n fromProductVariant ProductVariant @relation(\"fromProductVariant\", fields: [fromProductVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n toProductVariant ProductVariant @relation(\"toProductVariant\", fields: [toProductVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([fromSku, toSku])\n @@index([toSku, toProductVariantId], name: \"idx_related_items_sku_product_variant_id\")\n @@index([fromProductVariantId], name: \"idx_related_items_from_product_variant_id\")\n @@index([frequency], name: \"idx_related_items_frequency\")\n @@map(\"related_items\")\n}\n\nmodel ScheduledTask {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Fields\n taskId String @unique @map(\"task_id\")\n enabled Boolean @default(true) @map(\"enabled\")\n lockedAt DateTime? @map(\"locked_at\")\n lastExecutedAt DateTime? @map(\"last_executed_at\")\n manuallyTriggeredAt DateTime? @map(\"manually_triggered_at\")\n\n /// ![Record<string, any> | string | number | null]\n lastResult Json? @map(\"last_result\")\n\n @@map(\"scheduled_task\")\n}\n\nmodel Address {\n // Fields\n id BigInt @id @default(autoincrement())\n line1 String\n line2 String?\n city String\n state String\n zip String\n country String\n latitude Float\n longitude Float\n\n customers CustomerToAddress[]\n\n @@map(\"addresses\")\n}\n\nenum RestrictionType {\n NONE\n ALCOHOL\n TOBACCO\n CBD\n THC\n}\n\nenum ContainerType {\n CAN\n BOTTLE\n KEG\n BAG\n BOX\n BOTTLE_CAN\n NOT_APPLICABLE\n POUCH\n CARTON\n JUG\n PLASTIC_BOTTLE\n GLASS_BOTTLE\n JAR\n BUNDLE\n}\n\nenum UnitOfMeasurement {\n FL_OZ\n OZ\n ML\n L\n GAL\n LB\n CT\n PT\n QT\n KG\n G\n MG\n BUNDLE\n}\n\nenum CurrencyCode {\n USD\n CAD\n}\n\nenum FulfillmentType {\n SHIPPING\n DELIVERY\n PICKUP\n NONE\n}\n\nenum merchantSmsPurpose {\n ORDER_CONFIRMATION\n ORDER_DELIVERY\n ORDER_PICKUP\n}\n\nenum FulfillmentOptInOptionType {\n NONE\n STANDARD_DELIVERY\n EXPRESS_DELIVERY\n SCHEDULED_DELIVERY\n STANDARD_PICKUP\n NO_RUSH_PICKUP\n SCHEDULED_PICKUP\n HANDOFF_PICKUP\n NO_RUSH_SHIPPING // OBFUSCATED SHIPPING TYPE\n STANDARD_SHIPPING // OBFUSCATED SHIPPING TYPE\n EXPRESS_SHIPPING // OBFUSCATED SHIPPING TYPE\n TELEPORTED_SHIPPING\n FEDEX_FIRST_OVERNIGHT // Maps to Shippo: fedex_first_overnight\n FEDEX_PRIORITY_OVERNIGHT // Maps to Shippo: fedex_priority_overnight\n FEDEX_STANDARD_OVERNIGHT // Maps to Shippo: fedex_standard_overnight\n FEDEX_TWO_DAY\n FEDEX_TWO_DAY_AM\n FEDEX_EXPRESS_SAVER\n FEDEX_GROUND\n FEDEX_GROUND_ECONOMY // NEW FOR SHIPPO\n FEDEX_HOME_DELIVERY // NEW FOR SHIPPO\n UPS_GROUND\n UPS_3_DAY_SELECT\n UPS_NEXT_DAY_AIR\n UPS_NEXT_DAY_AIR_SAVER\n UPS_NEXT_DAY_AIR_EARLY\n UPS_2ND_DAY_AIR\n UPS_2ND_DAY_AIR_AM\n UPS_SUREPOST // NEW FOR SHIPPO\n}\n\nenum AssociatedStoreType {\n RETAIL\n DELI\n}\n\nenum TransactionState {\n Created\n Pending\n Settled\n Error\n Cancelled\n}\n\nmodel ShippingConfiguration {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n\n // Fields\n storeCode String @unique @map(\"store_code\")\n\n /// ![('FEDEX' | 'UPS')[]]\n activeCarriers Json @map(\"active_carriers\") // Used to determine which carriers are active for the store (when not using a managed account)\n\n /// [ShippoCarrierAccount]\n shippoCarrierAccounts Json[] @map(\"shippo_carrier_accounts\") // Used for storing Shippo carrier account data, so we can use it to manage it internally to get around Shippo's shortcomings\n\n /// [CarrierConfigurationInternal]\n carrierConfigurations Json[] @map(\"carrier_configurations\")\n\n /// [ShippingConfigurationShippingAddon]\n shippingAddons Json[] @map(\"shipping_addons\")\n\n /// [ShippingConfigurationFullfillmentTypeRestriction]\n fulfillmentTypeRestrictions Json[] @map(\"fulfillment_type_restrictions\")\n\n /// [USStateName]\n stateBlockList String[] @map(\"state_block_list\") // List of states to block shipping to\n\n isShippingEnabled Boolean @default(true) @map(\"is_shipping_enabled\") // Whether to show shipping options to customers on checkout page\n isPurchasingLabelsManually Boolean @map(\"is_purchasing_labels_manually\")\n isAutoPurchasingLabels Boolean @map(\"is_auto_purchasing_labels\") // Always false if no shippoAccountId is configured\n shippoAccountId String? @map(\"shippo_account_id\") // Optional Shippo account ID for label purchasing\n shippoServiceUpcharge Float? @map(\"shippo_service_upcharge\") // Optional Shippo service upcharge (in USD) for label purchasing, will get passed onto customer\n passServiceUpchargeToCustomer Boolean @default(true) @map(\"pass_service_upcharge_to_customer\") // Flag on whether pass service upcharge to customer or not\n\n isObfuscatingRates Boolean @default(true) @map(\"is_obfuscating_rates\")\n\n // Relationships\n store Store @relation(fields: [storeCode], references: [storeId], onDelete: Cascade)\n\n @@map(\"shipping_configurations\")\n}\n\nmodel ShippingLabelFee {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n storeCode String @map(\"store_code\")\n state TransactionState @default(Pending) @map(\"state\")\n\n labelCostAmount Decimal @map(\"label_cost_amount\") @db.Decimal(7, 2)\n serviceChargeAmount Decimal @map(\"service_charge_amount\") @db.Decimal(7, 2)\n totalAmount Decimal @map(\"total_amount\") @db.Decimal(7, 2)\n\n // Additional tracking information\n orderId String? @map(\"order_id\") // Reference to the order that this label fee is associated with\n rateId String @map(\"rate_id\") // Reference to the rate that was used for this label purchase\n labelPurchasedAt DateTime @map(\"label_purchased_at\") // When the label was purchased from Shippo\n billedAt DateTime? @map(\"billed_at\") // When we billed the merchant\n shippoAccountId String @map(\"shippo_account_id\") // Reference to the Shippo account that was used for this label purchase\n wasLabelPurchasedManually Boolean @default(true) @map(\"was_label_purchased_manually\")\n didMerchantMarkOrderAsContainingAlcohol Boolean? @map(\"did_merchant_mark_order_as_containing_alcohol\")\n didMerchantMarkOrderAsRequiringSignature Boolean? @map(\"did_merchant_mark_order_as_requiring_signature\")\n\n /// ![Array<{ transactionId: string; trackingNumber: string }>]\n labels Json @default(\"[]\") @map(\"labels\")\n\n // Relationships\n store Store @relation(fields: [storeCode], references: [storeId], onDelete: Cascade)\n\n @@unique([storeCode, shippoAccountId, rateId])\n @@index([labels(ops: JsonbPathOps)], type: Gin)\n @@map(\"shipping_label_fees\")\n}\n\nmodel ShippingLabelRefund {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n storeCode String @map(\"store_code\")\n state TransactionState @default(Pending) @map(\"state\") // State of the transaction (pending, completed)\n\n labelRefundAmount Decimal @map(\"label_refund_amount\") @db.Decimal(7, 2)\n serviceChargeRefundAmount Decimal @map(\"service_charge_refund_amount\") @db.Decimal(7, 2)\n totalRefundAmount Decimal @map(\"total_refund_amount\") @db.Decimal(7, 2)\n\n // Additional tracking information\n orderId String? @map(\"order_id\") // Reference to the order that this label was associated with\n rateId String @map(\"rate_id\") // Reference to the rate that was used for this label purchase\n shippoTransactionId String @map(\"shippo_transaction_id\") // This reference is to the Shippo transaction that was used for the refund (pertains to a single label, not all labels under the original order)\n processedAt DateTime? @map(\"processed_at\") // When we refunded the merchant\n shippoAccountId String @map(\"shippo_account_id\") // Reference to the Shippo account that was used for this label purchase\n\n // Relationships\n store Store @relation(fields: [storeCode], references: [storeId], onDelete: Cascade)\n\n @@unique([storeCode, shippoAccountId, shippoTransactionId])\n @@map(\"shipping_label_refunds\")\n}\n\nmodel SmsConversationMessage {\n // Fields\n id BigInt @id @default(autoincrement())\n conversationId BigInt @map(\"conversation_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n didSendSuccessfully Boolean @default(true) @map(\"did_send_successfully\")\n errorMessage String? @map(\"error_message\")\n\n // Message fields\n body String\n direction String // 'INBOUND' or 'OUTBOUND'\n\n // Relations\n conversation SmsConversation @relation(fields: [conversationId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@map(\"sms_conversation_messages\")\n}\n\nmodel SmsConversation {\n // Fields\n id BigInt @id @default(autoincrement())\n customerId BigInt @map(\"customer_id\")\n customerPhone String @map(\"customer_phone\")\n\n /// !['CUSTOMER_PAYMENT_VALIDATION']\n purpose String\n\n /// !['Cancelled' | 'AskingForChargeAuthorization' | 'ConsentGranted' | 'ConsentDenied' | 'VerificationAmountCorrect' | 'VerificationAmountIncorrect' | 'AskingForVerificationAmount' | 'Completed']\n state String\n\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n closedAt DateTime? @map(\"closed_at\")\n smsMessage SmsConversationMessage[]\n\n /// [KeyValueMetadata]\n metadata Json[] @default([])\n\n errorMessage String? @map(\"error_message\") // Should be set if the conversation is cancelled\n\n // Relations\n customer Customer @relation(fields: [customerId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@map(\"sms_conversations\")\n}\n\nmodel SmsMerchantNotificationMessage {\n // Fields\n id BigInt @id @default(autoincrement())\n platformId String @map(\"platform_id\")\n storeId String @map(\"store_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n purpose merchantSmsPurpose\n orderNumber String @map(\"order_number\")\n body String\n sid String\n\n @@map(\"sms_merchant_notification_messages\")\n}\n\nmodel StockLevel {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n stockOnHand Int @map(\"stock_on_hand\") // Stock that is currently available for sale\n stockOnHold Int @map(\"stock_on_hold\") // Stock that is currently held by customers in their checkouts\n productVariantId BigInt @map(\"product_variant_id\")\n stockLocationId BigInt @map(\"stock_location_id\")\n\n // Relations\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n stockLocation StockLocation @relation(fields: [stockLocationId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([productVariantId, stockLocationId])\n @@index([stockLocationId])\n @@index([productVariantId])\n @@map(\"stock_levels\")\n}\n\nmodel StockLocationToPlatform {\n stockLocationId BigInt @map(\"stock_location_id\")\n platformId String @map(\"platform_id\")\n\n // Relations\n stockLocation StockLocation @relation(fields: [stockLocationId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n\n @@id([stockLocationId, platformId])\n @@index([platformId])\n @@index([stockLocationId])\n @@map(\"stock_location_to_platform\")\n}\n\nmodel StockLocation {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n name String\n storeId String @map(\"store_id\")\n description String @default(\"\")\n isDefault Boolean @default(false) @map(\"is_default\")\n\n // Relations\n stockLevels StockLevel[]\n stockLocationToPlatform StockLocationToPlatform[]\n stockMovement StockMovement[]\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n\n @@index([storeId, isDefault])\n @@index([storeId])\n @@index([id, storeId])\n @@map(\"stock_locations\")\n}\n\n// StockMovement type explanations:\n// - ALLOCATION: When stock is allocated to a checkout (upon completion)\n// - CANCELLATION: When items from a fulfilled checkout are cancelled\n// - RELEASE: When items which have been allocated (but not yet fulfilled) are cancelled\n// - SALE: When the checkout is fulfilled and the stock is reduced\n// - ADJUSTMENT: When stock is manually adjusted\n\nmodel StockMovement {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n stockLocationId BigInt @map(\"stock_location_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n type String // Enum: ALLOCATION | CANCELLATION | RELEASE | RETURN | SALE | ADJUSTMENT\n checkoutLineId BigInt? @map(\"checkout_line_id\") // The checkout line that this stock movement is associated with, if any\n quantity BigInt // The quantity of items that were moved\n\n // Relations\n stockLocation StockLocation @relation(fields: [stockLocationId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n checkoutLine CheckoutLine? @relation(fields: [checkoutLineId], references: [id], onDelete: SetNull, onUpdate: Cascade)\n\n // Indexes & Mappings\n @@index([stockLocationId])\n @@index([productVariantId])\n @@index([checkoutLineId])\n @@index([type])\n @@map(\"stock_movements\")\n}\n\nmodel PrepTime {\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n storeId String @map(\"store_id\")\n platformId String @map(\"platform_id\")\n orderSubtotal Decimal @map(\"order_subtotal\")\n prepTimeInMinutes Int @map(\"prep_time_in_minutes\")\n\n // Relations\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([storeId, platformId, orderSubtotal], name: \"store_platform_order_subtotal_unique\")\n @@index([storeId, platformId], name: \"store_platform_index\")\n @@map(\"prep_times\")\n}\n\nmodel PvStoreScheduledAvailabilityLog {\n id BigInt @id @default(autoincrement())\n scheduledAvailabilityId BigInt @map(\"scheduled_availability_id\")\n jobId String @map(\"job_id\")\n startTime DateTime @map(\"start_time\")\n endTime DateTime? @map(\"end_time\")\n isAvailable Boolean @default(true) @map(\"is_available\")\n status RestockingStatus @default(PENDING) @map(\"status\")\n reason String? @default(\"\") @map(\"reason\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Relations\n pvStoreScheduledAvailability PvStoreScheduledAvailability @relation(fields: [scheduledAvailabilityId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([scheduledAvailabilityId, jobId])\n @@index([scheduledAvailabilityId, jobId], name: \"pv_store_scheduled_availability_log_id_job_id_index\")\n @@map(\"pv_store_scheduled_availability_logs\")\n}\n\nmodel PvStoreScheduledAvailability {\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @updatedAt @map(\"updated_at\")\n storeId String @map(\"store_id\")\n platformId String @map(\"platform_id\")\n productVariantId BigInt @map(\"product_variant_id\")\n\n activeDays ActiveDays[] @default([SUN, MON, TUE, WED, THU, FRI, SAT]) @map(\"active_days\")\n activeWeeks ActiveWeeks[] @default([WEEK_1, WEEK_2, WEEK_3, WEEK_4, WEEK_5]) @map(\"active_weeks\")\n startTime DateTime @map(\"start_time\")\n endTime DateTime @map(\"end_time\")\n\n isAvailable Boolean @default(true) @map(\"is_available\")\n isActive Boolean @default(true) @map(\"is_active\")\n\n // Relations\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n productVariant ProductVariant @relation(fields: [productVariantId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n pvStoreScheduledAvailabilityLog PvStoreScheduledAvailabilityLog[]\n\n @@unique([storeId, platformId, productVariantId, isAvailable, activeDays, activeWeeks, startTime, endTime])\n @@index([storeId, platformId, productVariantId], name: \"store_platform_product_variant_index\")\n @@map(\"pv_store_scheduled_availability\")\n}\n\nmodel StoreRestockingLog {\n id BigInt @id @default(autoincrement())\n restockingId BigInt @map(\"restocking_id\")\n jobId String @map(\"job_id\")\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n restockingTime DateTime @map(\"restocking_time\")\n status RestockingStatus @map(\"status\")\n\n // Relations\n storeRestockingSchedule StoreRestockingSchedule @relation(fields: [restockingId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n\n @@unique([restockingId, jobId])\n @@index([restockingId, jobId], name: \"store_restocking_log_restocking_id_job_id_index\")\n @@index([restockingId], name: \"store_restocking_log_restocking_id_index\")\n @@map(\"store_restocking_logs\")\n}\n\nenum RestockingStatus {\n PENDING\n COMPLETED\n FAILED\n}\n\nmodel StoreRestockingSchedule {\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n storeId String @map(\"store_id\")\n platformId String @map(\"platform_id\")\n activeDays ActiveDays[] @default([SUN, MON, TUE, WED, THU, FRI, SAT]) @map(\"active_days\")\n activeWeeks ActiveWeeks[] @default([WEEK_1, WEEK_2, WEEK_3, WEEK_4, WEEK_5]) @map(\"active_weeks\")\n restockingTime DateTime @map(\"restocking_time\")\n isActive Boolean @default(true) @map(\"is_active\")\n ingredientId BigInt @map(\"ingredient_id\")\n timezone Timezone @default(AMERICA_LOS_ANGELES) @map(\"timezone\")\n restockingAmount Int @default(1000) @map(\"restocking_amount\")\n\n // Relations\n store Store @relation(fields: [storeId], references: [storeId], onDelete: Cascade, onUpdate: Cascade)\n platform Platform @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n ingredient Ingredient @relation(fields: [ingredientId], references: [id], onDelete: Cascade, onUpdate: Cascade)\n storeRestockingLog StoreRestockingLog[]\n\n @@unique([storeId, platformId, ingredientId])\n @@index([storeId, platformId, ingredientId], name: \"store_platform_ingredient_index\")\n @@index([id, isActive], name: \"store_restocking_schedule_id_is_active_index\")\n @@map(\"store_restocking_schedules\")\n}\n\nenum Timezone {\n AMERICA_NEW_YORK\n AMERICA_LOS_ANGELES\n AMERICA_CHICAGO\n AMERICA_DENVER\n AMERICA_PHOENIX\n AMERICA_ANCHORAGE\n PACIFIC_HONOLULU\n}\n\nmodel StoreToAssociatedStoreType {\n // Fields\n storeRecordId BigInt @map(\"store_id\")\n platformRecordId BigInt @map(\"platform_id\")\n associatedStoreType AssociatedStoreType @map(\"associated_store_type\")\n associatedStoreCode String @map(\"associated_store_code\")\n\n // Relations\n store Store @relation(\"StoreToAssociatedStoreTypes\", fields: [storeRecordId], references: [id], onUpdate: Cascade, onDelete: Cascade)\n platform Platform @relation(\"AssociatedStoreTypeToPlatform\", fields: [platformRecordId], references: [id], onUpdate: Cascade, onDelete: Cascade)\n\n @@id([storeRecordId, platformRecordId])\n @@index([platformRecordId])\n @@index([storeRecordId])\n @@map(\"store_to_associated_store_type\")\n}\n\nmodel StoreToPlatform {\n // Fields\n storeRecordId BigInt @map(\"store_id\")\n platformRecordId BigInt @map(\"platform_id\")\n trackInventory Boolean @default(true) @map(\"track_inventory\")\n outOfStockThreshold Int @default(0) @map(\"out_of_stock_threshold\")\n pricesIncludeTax Boolean @default(false) @map(\"prices_include_tax\")\n\n // Relations\n store Store @relation(fields: [storeRecordId], references: [id], onUpdate: Cascade, onDelete: Cascade)\n platform Platform @relation(fields: [platformRecordId], references: [id], onUpdate: Cascade, onDelete: Cascade)\n\n @@id([storeRecordId, platformRecordId])\n @@index([platformRecordId])\n @@index([storeRecordId])\n @@map(\"store_to_platform\")\n}\n\nmodel Store {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n storeId String @unique @map(\"store_id\")\n name String @map(\"name\")\n phone String @map(\"phone\")\n address Json @map(\"address\")\n\n storeToPlatform StoreToPlatform[]\n administratorToStore AdministratorToStore[]\n productVariantStorePricing ProductVariantStorePricing[]\n stockLocations StockLocation[]\n productVariantConfigurations ProductVariantConfiguration[]\n customProducts Product[]\n thirdPartyPlatforms Platform[]\n productVariantStoreAndPlatformPricings ProductVariantStoreAndPlatformPricing[]\n ingredientToStores IngredientToStore[]\n\n // Relationships\n storeRestockingSchedules StoreRestockingSchedule[]\n shippingConfigurations ShippingConfiguration[]\n storeToAssociatedStoreTypes StoreToAssociatedStoreType[] @relation(\"StoreToAssociatedStoreTypes\")\n modifierGroups ModifierGroup[]\n prepTimes PrepTime[]\n productVariantStoreRankings ProductVariantStoreRanking[]\n shippingLabelFees ShippingLabelFee[]\n shippingLabelRefunds ShippingLabelRefund[]\n featureFlags FeatureFlag[]\n pvStoreScheduledAvailability PvStoreScheduledAvailability[]\n\n @@map(\"stores\")\n}\n\nmodel Tag {\n // Default fields for an entity\n id BigInt @id @default(autoincrement())\n createdAt DateTime @default(now()) @map(\"created_at\")\n updatedAt DateTime @default(now()) @map(\"updated_at\")\n\n // Fields\n platformId String? @map(\"platform_id\")\n value String\n\n // Relations\n platform Platform? @relation(fields: [platformId], references: [platformId], onDelete: Cascade, onUpdate: Cascade)\n productVariantToTags ProductVariantToTag[]\n productToTags ProductToTag[]\n productCategoryToTags ProductCategoryToTag[]\n\n @@unique([value, platformId])\n @@index([platformId])\n @@map(\"tags\")\n}\n\nmodel TaxCategory {\n // Fields\n id BigInt @id @default(autoincrement())\n name String\n taxcode String? @unique\n description String\n\n // Relations\n productCategory ProductCategory[]\n\n // Indexes and Mappings\n @@index([taxcode])\n @@map(\"tax_categories\")\n}\n",
57
+ "runtimeDataModel": {
58
+ "models": {},
59
+ "enums": {},
60
+ "types": {}
61
+ }
62
+ };
63
+ config.runtimeDataModel = JSON.parse("{\"models\":{\"AdministratorToPlatform\":{\"fields\":[{\"name\":\"administratorId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"administrator_id\"},{\"name\":\"platformRecordId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"platform_record_id\"},{\"name\":\"administrator\",\"kind\":\"object\",\"type\":\"Administrator\",\"relationName\":\"AdministratorToAdministratorToPlatform\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"AdministratorToPlatformToPlatform\"}],\"dbName\":\"administrators_to_platforms\"},\"AdministratorToStore\":{\"fields\":[{\"name\":\"administratorId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"administrator_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"store_id\"},{\"name\":\"administrator\",\"kind\":\"object\",\"type\":\"Administrator\",\"relationName\":\"AdministratorToAdministratorToStore\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"AdministratorToStoreToStore\"}],\"dbName\":\"administrator_to_store\"},\"Administrator\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"firstName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"first_name\"},{\"name\":\"lastName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"last_name\"},{\"name\":\"displayName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"display_name\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"user_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"AdministratorToUser\"},{\"name\":\"administratorToPlatform\",\"kind\":\"object\",\"type\":\"AdministratorToPlatform\",\"relationName\":\"AdministratorToAdministratorToPlatform\"},{\"name\":\"administratorToStore\",\"kind\":\"object\",\"type\":\"AdministratorToStore\",\"relationName\":\"AdministratorToAdministratorToStore\"}],\"dbName\":\"administrators\"},\"ApiToken\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"purpose\",\"kind\":\"enum\",\"type\":\"ApiTokenPurpose\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"expriresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":\"api_tokens\"},\"Customer\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"firstName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"first_name\"},{\"name\":\"lastName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"last_name\"},{\"name\":\"displayName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"display_name\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"nmiId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"nmi_id\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"user_id\"},{\"name\":\"doesConsentToSmsCommunication\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"does_consent_to_sms_communication\"},{\"name\":\"discriminator\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"discriminator\"},{\"name\":\"carts\",\"kind\":\"object\",\"type\":\"Cart\",\"relationName\":\"CartToCustomer\"},{\"name\":\"checkouts\",\"kind\":\"object\",\"type\":\"Checkout\",\"relationName\":\"CheckoutToCustomer\"},{\"name\":\"addresses\",\"kind\":\"object\",\"type\":\"CustomerToAddress\",\"relationName\":\"CustomerToCustomerToAddress\"},{\"name\":\"cards\",\"kind\":\"object\",\"type\":\"Card\",\"relationName\":\"CardToCustomer\"},{\"name\":\"checkoutGroup\",\"kind\":\"object\",\"type\":\"CheckoutGroup\",\"relationName\":\"CheckoutGroupToCustomer\"},{\"name\":\"redemptions\",\"kind\":\"object\",\"type\":\"DiscountCodeRedemption\",\"relationName\":\"CustomerToDiscountCodeRedemption\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"CustomerToUser\"},{\"name\":\"SmsConversation\",\"kind\":\"object\",\"type\":\"SmsConversation\",\"relationName\":\"CustomerToSmsConversation\"},{\"name\":\"customerToCustomerGroups\",\"kind\":\"object\",\"type\":\"CustomerToCustomerGroup\",\"relationName\":\"CustomerToCustomerToCustomerGroup\"}],\"dbName\":\"customers\"},\"FirebaseAdminConfiguration\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"projectId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"project_id\"},{\"name\":\"cipherText\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"cipher_text\"},{\"name\":\"encryptionData\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"encryption_data\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"firebase_configuration\"},\"OneTimeToken\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"purpose\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"purpose\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"expires_at\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"token\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"metadata\"}],\"dbName\":\"one_time_tokens\"},\"Role\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"permissions\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"userToRole\",\"kind\":\"object\",\"type\":\"UserToRole\",\"relationName\":\"RoleToUserToRole\"}],\"dbName\":\"roles\"},\"UserToRole\":{\"fields\":[{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"user_id\"},{\"name\":\"roleId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"role_id\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToUserToRole\"},{\"name\":\"role\",\"kind\":\"object\",\"type\":\"Role\",\"relationName\":\"RoleToUserToRole\"}],\"dbName\":\"user_roles_role\"},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isVerified\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_verified\"},{\"name\":\"isAnonymous\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_anonymous\"},{\"name\":\"firebaseUid\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"firebase_uid\"},{\"name\":\"firebaseProjectId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"firebase_project_id\"},{\"name\":\"associatedGuestUserId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"associated_guest_user_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"userToRole\",\"kind\":\"object\",\"type\":\"UserToRole\",\"relationName\":\"UserToUserToRole\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CustomerToUser\"},{\"name\":\"administrator\",\"kind\":\"object\",\"type\":\"Administrator\",\"relationName\":\"AdministratorToUser\"},{\"name\":\"guestUser\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToGuestUser\"},{\"name\":\"registeredUser\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToGuestUser\"}],\"dbName\":\"users\"},\"Card\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customerId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"customer_id\"},{\"name\":\"billingId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"billing_id\"},{\"name\":\"brand\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"lastDigits\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"last_digits\"},{\"name\":\"expiryDate\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"expiry_date\"},{\"name\":\"isDefault\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_default\"},{\"name\":\"hasCvvBeenProvided\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"has_cvv_been_provided\"},{\"name\":\"billingFirstName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"billing_first_name\"},{\"name\":\"billingLastName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"billing_last_name\"},{\"name\":\"isTemporary\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_temporary\"},{\"name\":\"bin\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"bin\"},{\"name\":\"hash\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"hash\"},{\"name\":\"billingAddress\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CardToCustomer\"}],\"dbName\":\"cards\"},\"CartCost\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"discountAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"discount_amount\"},{\"name\":\"checkoutChargeAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"checkout_charge_amount\"},{\"name\":\"subtotalAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"subtotal_amount\"},{\"name\":\"isSubtotalAmountEstimated\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_subtotal_amount_estimated\"},{\"name\":\"totalAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_amount\"},{\"name\":\"isTotalAmountEstimated\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_total_amount_estimated\"},{\"name\":\"totalTaxAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_tax_amount\"},{\"name\":\"isTotalTaxAmountEstimated\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_total_tax_amount_estimated\"},{\"name\":\"cartId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"cart_id\"},{\"name\":\"cart\",\"kind\":\"object\",\"type\":\"Cart\",\"relationName\":\"CartToCartCost\"}],\"dbName\":\"cart_costs\"},\"CartLineModifierOption\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"modifierOptionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_option_id\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"cartLineModifiers\",\"kind\":\"object\",\"type\":\"CartLineModifier\",\"relationName\":\"CartLineModifierToCartLineModifierOption\"},{\"name\":\"modifierOption\",\"kind\":\"object\",\"type\":\"ModifierOption\",\"relationName\":\"CartLineModifierOptionToModifierOption\"}],\"dbName\":\"cart_line_modifier_options\"},\"CartLineModifier\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"modifierId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_id\"},{\"name\":\"modifierGroupId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_group_id\"},{\"name\":\"cartLineId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"cart_line_id\"},{\"name\":\"cartLineModifierOptionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"cart_line_modifier_option_id\"},{\"name\":\"checkoutLineModifierId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_line_modifier_id\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"cartLine\",\"kind\":\"object\",\"type\":\"CartLine\",\"relationName\":\"CartLineToCartLineModifier\"},{\"name\":\"modifier\",\"kind\":\"object\",\"type\":\"Modifier\",\"relationName\":\"CartLineModifierToModifier\"},{\"name\":\"modifierGroup\",\"kind\":\"object\",\"type\":\"ModifierGroup\",\"relationName\":\"CartLineModifierToModifierGroup\"},{\"name\":\"cartLineModifierOption\",\"kind\":\"object\",\"type\":\"CartLineModifierOption\",\"relationName\":\"CartLineModifierToCartLineModifierOption\"},{\"name\":\"checkoutLineModifier\",\"kind\":\"object\",\"type\":\"CheckoutLinesModifier\",\"relationName\":\"CartLineModifierToCheckoutLinesModifier\"}],\"dbName\":\"cart_lines_modifiers\"},\"CartLine\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"cartId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"cart_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"discountCodeId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"discount_code_id\"},{\"name\":\"discountCodeRedemptionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"discount_code_redemption_id\"},{\"name\":\"cost\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"cart\",\"kind\":\"object\",\"type\":\"Cart\",\"relationName\":\"CartToCartLine\"},{\"name\":\"merchandise\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"CartLineToProductVariant\"},{\"name\":\"discountCode\",\"kind\":\"object\",\"type\":\"DiscountCode\",\"relationName\":\"CartLineToDiscountCode\"},{\"name\":\"discountCodeRedemption\",\"kind\":\"object\",\"type\":\"DiscountCodeRedemption\",\"relationName\":\"CartLineToDiscountCodeRedemption\"},{\"name\":\"cartLineModifier\",\"kind\":\"object\",\"type\":\"CartLineModifier\",\"relationName\":\"CartLineToCartLineModifier\"}],\"dbName\":\"cart_lines\"},\"Cart\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customerId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"customer_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"openedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"opened_at\"},{\"name\":\"active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"closedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"closed_at\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"currencyCode\",\"kind\":\"enum\",\"type\":\"CurrencyCode\",\"dbName\":\"currency_code\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CartToCustomer\"},{\"name\":\"cartLines\",\"kind\":\"object\",\"type\":\"CartLine\",\"relationName\":\"CartToCartLine\"},{\"name\":\"cost\",\"kind\":\"object\",\"type\":\"CartCost\",\"relationName\":\"CartToCartCost\"},{\"name\":\"checkout\",\"kind\":\"object\",\"type\":\"Checkout\",\"relationName\":\"CartToCheckout\"},{\"name\":\"discountCodeAppliedToCart\",\"kind\":\"object\",\"type\":\"DiscountCodeAppliedToCart\",\"relationName\":\"CartToDiscountCodeAppliedToCart\"},{\"name\":\"discountCodeRedeemedOnCart\",\"kind\":\"object\",\"type\":\"DiscountCodeRedeemedOnCart\",\"relationName\":\"CartToDiscountCodeRedeemedOnCart\"},{\"name\":\"isValid\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_valid\"},{\"name\":\"invalidReason\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"invalid_reason\"}],\"dbName\":\"carts\"},\"CheckoutGroup\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"completedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"completed_at\"},{\"name\":\"customerId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"customer_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"fulfillmentType\",\"kind\":\"enum\",\"type\":\"FulfillmentType\",\"dbName\":\"fulfillment_type\"},{\"name\":\"fulfillmentOptInOptionType\",\"kind\":\"enum\",\"type\":\"FulfillmentOptInOptionType\",\"dbName\":\"fulfillment_opt_in_option_type\"},{\"name\":\"discountCodes\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"discount_codes\"},{\"name\":\"firstName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"customer_first_name\"},{\"name\":\"lastName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"customer_last_name\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"customer_email\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"customer_phone\"},{\"name\":\"billingAddress\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"billing_address\"},{\"name\":\"deliveryAddress\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"delivery_address\"},{\"name\":\"total\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total\"},{\"name\":\"totalSubtotal\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_subtotal\"},{\"name\":\"totalTax\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_tax\"},{\"name\":\"totalTaxBreakdown\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"total_tax_breakdown\"},{\"name\":\"totalDeliveryFee\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_delivery_fee\"},{\"name\":\"totalDiscount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_discount\"},{\"name\":\"currencyCode\",\"kind\":\"enum\",\"type\":\"CurrencyCode\",\"dbName\":\"currency_code\"},{\"name\":\"tip\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"tip\"},{\"name\":\"confirmationId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"confirmation_id\"},{\"name\":\"accessTokenHash\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"access_token_hash\"},{\"name\":\"billingFirstName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"billing_first_name\"},{\"name\":\"billingLastName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"billing_last_name\"},{\"name\":\"cardBrand\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"card_brand\"},{\"name\":\"cardLastDigits\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"card_last_digits\"},{\"name\":\"express\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"scheduled\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"validatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"validated_at\"},{\"name\":\"isGift\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_gift\"},{\"name\":\"giftFrom\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"gift_from\"},{\"name\":\"giftMessage\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"gift_message\"},{\"name\":\"fraudEvaluation\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"fraud_evaluation\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CheckoutGroupToCustomer\"},{\"name\":\"checkout\",\"kind\":\"object\",\"type\":\"Checkout\",\"relationName\":\"CheckoutToCheckoutGroup\"}],\"dbName\":\"checkout_group\"},\"CheckoutLineModifierOption\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"modifierId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_id\"},{\"name\":\"modifierOptionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_option_id\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"tax\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"total\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"modifierOption\",\"kind\":\"object\",\"type\":\"ModifierOption\",\"relationName\":\"CheckoutLineModifierOptionToModifierOption\"},{\"name\":\"modifier\",\"kind\":\"object\",\"type\":\"Modifier\",\"relationName\":\"CheckoutLineModifierOptionToModifier\"},{\"name\":\"checkoutLineModifiers\",\"kind\":\"object\",\"type\":\"CheckoutLinesModifier\",\"relationName\":\"CheckoutLineModifierOptionToCheckoutLinesModifier\"}],\"dbName\":\"checkout_line_modifier_option\"},\"CheckoutLinesModifier\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"modifierId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_id\"},{\"name\":\"modifierGroupId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_group_id\"},{\"name\":\"checkoutLineId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_line_id\"},{\"name\":\"checkoutLineModifierOptionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_line_modifier_option_id\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"tax\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"total\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"cartLineModifiers\",\"kind\":\"object\",\"type\":\"CartLineModifier\",\"relationName\":\"CartLineModifierToCheckoutLinesModifier\"},{\"name\":\"modifier\",\"kind\":\"object\",\"type\":\"Modifier\",\"relationName\":\"CheckoutLinesModifierToModifier\"},{\"name\":\"modifierGroup\",\"kind\":\"object\",\"type\":\"ModifierGroup\",\"relationName\":\"CheckoutLinesModifierToModifierGroup\"},{\"name\":\"checkoutLine\",\"kind\":\"object\",\"type\":\"CheckoutLine\",\"relationName\":\"CheckoutLineToCheckoutLinesModifier\"},{\"name\":\"checkoutLineModifierOption\",\"kind\":\"object\",\"type\":\"CheckoutLineModifierOption\",\"relationName\":\"CheckoutLineModifierOptionToCheckoutLinesModifier\"}],\"dbName\":\"checkout_lines_modifiers\"},\"CheckoutLine\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"checkoutId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"unitPrice\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"unit_price\"},{\"name\":\"totalTax\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_tax\"},{\"name\":\"taxRateBreakdown\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"checkout\",\"kind\":\"object\",\"type\":\"Checkout\",\"relationName\":\"CheckoutToCheckoutLine\"},{\"name\":\"merchandise\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"CheckoutLineToProductVariant\"},{\"name\":\"refundLines\",\"kind\":\"object\",\"type\":\"RefundLine\",\"relationName\":\"CheckoutLineToRefundLine\"},{\"name\":\"stockMovement\",\"kind\":\"object\",\"type\":\"StockMovement\",\"relationName\":\"CheckoutLineToStockMovement\"},{\"name\":\"checkoutLinesModifier\",\"kind\":\"object\",\"type\":\"CheckoutLinesModifier\",\"relationName\":\"CheckoutLineToCheckoutLinesModifier\"}],\"dbName\":\"checkout_lines\"},\"Checkout\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customerId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"customer_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"completedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"completed_at\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"fulfillmentType\",\"kind\":\"enum\",\"type\":\"FulfillmentType\",\"dbName\":\"fulfillment_type\"},{\"name\":\"note\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"includeUtensils\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"include_utensils\"},{\"name\":\"orderId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"order_id\"},{\"name\":\"isReady\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_ready\"},{\"name\":\"lineItemsSubtotal\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"line_items_subtotal\"},{\"name\":\"subtotalPrice\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"subtotal_price\"},{\"name\":\"isTaxExempt\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_tax_exempt\"},{\"name\":\"isTaxesIncluded\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_taxes_included\"},{\"name\":\"totalPrice\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_price\"},{\"name\":\"totalTax\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_tax\"},{\"name\":\"paymentDue\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"payment_due\"},{\"name\":\"cartId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"cart_id\"},{\"name\":\"checkoutGroupId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_group_id\"},{\"name\":\"deliveryFee\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"delivery_fee\"},{\"name\":\"currencyCode\",\"kind\":\"enum\",\"type\":\"CurrencyCode\",\"dbName\":\"currency_code\"},{\"name\":\"totalTaxBreakdown\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"total_tax_breakdown\"},{\"name\":\"tip\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"expressFee\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"express_fee\"},{\"name\":\"discountAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"discount_amount\"},{\"name\":\"fulfillmentOptInOptionType\",\"kind\":\"enum\",\"type\":\"FulfillmentOptInOptionType\",\"dbName\":\"fulfillment_opt_in_option_type\"},{\"name\":\"shippoShipment\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"shippo_shipment\"},{\"name\":\"purchasedRateId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"purchased_rate_id\"},{\"name\":\"calculatedShippingRates\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"calculated_shipping_rates\"},{\"name\":\"shipmentServiceCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"shipment_service_code\"},{\"name\":\"calculatedParcels\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"calculated_parcels\"},{\"name\":\"isValid\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_valid\"},{\"name\":\"invalidReason\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"invalid_reason\"},{\"name\":\"checkoutLines\",\"kind\":\"object\",\"type\":\"CheckoutLine\",\"relationName\":\"CheckoutToCheckoutLine\"},{\"name\":\"fulfillmentFees\",\"kind\":\"object\",\"type\":\"FulfillmentFees\",\"relationName\":\"CheckoutToFulfillmentFees\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CheckoutToCustomer\"},{\"name\":\"cart\",\"kind\":\"object\",\"type\":\"Cart\",\"relationName\":\"CartToCheckout\"},{\"name\":\"checkoutGroup\",\"kind\":\"object\",\"type\":\"CheckoutGroup\",\"relationName\":\"CheckoutToCheckoutGroup\"},{\"name\":\"eventLog\",\"kind\":\"object\",\"type\":\"EventLog\",\"relationName\":\"CheckoutToEventLog\"},{\"name\":\"isGift\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_gift\"},{\"name\":\"giftFrom\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"gift_from\"},{\"name\":\"giftMessage\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"gift_message\"},{\"name\":\"payments\",\"kind\":\"object\",\"type\":\"Payment\",\"relationName\":\"CheckoutToPayment\"}],\"dbName\":\"checkouts\"},\"EventLog\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"event\",\"kind\":\"enum\",\"type\":\"EventLogEvent\"},{\"name\":\"eventDate\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"checkoutId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_id\"},{\"name\":\"Checkout\",\"kind\":\"object\",\"type\":\"Checkout\",\"relationName\":\"CheckoutToEventLog\"}],\"dbName\":\"event_log\"},\"CollectionToPlatform\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"collectionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"collection_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"slug\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"slug\"},{\"name\":\"collection\",\"kind\":\"object\",\"type\":\"Collection\",\"relationName\":\"CollectionToCollectionToPlatform\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"CollectionToPlatformToPlatform\"}],\"dbName\":\"collection_to_platform\"},\"CollectionToProductVariant\":{\"fields\":[{\"name\":\"collectionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"collection_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"collection\",\"kind\":\"object\",\"type\":\"Collection\",\"relationName\":\"CollectionToCollectionToProductVariant\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"CollectionToProductVariantToProductVariant\"}],\"dbName\":\"collection_to_product_variant\"},\"CollectionToProduct\":{\"fields\":[{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"collectionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"collection_id\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"CollectionToProductToPlatform\"},{\"name\":\"collection\",\"kind\":\"object\",\"type\":\"Collection\",\"relationName\":\"CollectionToCollectionToProduct\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"CollectionToProductToProduct\"}],\"dbName\":\"collection_to_product\"},\"Collection\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"imageId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"image_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"rules\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isSmart\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_smart\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_active\"},{\"name\":\"tags\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"image\",\"kind\":\"object\",\"type\":\"Media\",\"relationName\":\"CollectionToMedia\"},{\"name\":\"manualCollectionProducts\",\"kind\":\"object\",\"type\":\"ManualCollectionProduct\",\"relationName\":\"CollectionToManualCollectionProduct\"},{\"name\":\"collectionToProductVariant\",\"kind\":\"object\",\"type\":\"CollectionToProductVariant\",\"relationName\":\"CollectionToCollectionToProductVariant\"},{\"name\":\"collectionToPlatforms\",\"kind\":\"object\",\"type\":\"CollectionToPlatform\",\"relationName\":\"CollectionToCollectionToPlatform\"},{\"name\":\"collectionToProducts\",\"kind\":\"object\",\"type\":\"CollectionToProduct\",\"relationName\":\"CollectionToCollectionToProduct\"}],\"dbName\":\"collections\"},\"ManualCollectionProduct\":{\"fields\":[{\"name\":\"collectionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"collection_id\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"position\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"position\"},{\"name\":\"collection\",\"kind\":\"object\",\"type\":\"Collection\",\"relationName\":\"CollectionToManualCollectionProduct\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ManualCollectionProductToProduct\"}],\"dbName\":\"manual_collection_products\"},\"CustomerGroup\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"customerToCustomerGroups\",\"kind\":\"object\",\"type\":\"CustomerToCustomerGroup\",\"relationName\":\"CustomerGroupToCustomerToCustomerGroup\"}],\"dbName\":\"customer_groups\"},\"CustomerToAddress\":{\"fields\":[{\"name\":\"customerId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"customer_id\"},{\"name\":\"addressId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"address_id\"},{\"name\":\"isDefault\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_default\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CustomerToCustomerToAddress\"},{\"name\":\"address\",\"kind\":\"object\",\"type\":\"Address\",\"relationName\":\"AddressToCustomerToAddress\"}],\"dbName\":\"customer_to_address\"},\"CustomerToCustomerGroup\":{\"fields\":[{\"name\":\"customerId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"customer_id\"},{\"name\":\"customerGroupId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"customer_group_id\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CustomerToCustomerToCustomerGroup\"},{\"name\":\"customerGroup\",\"kind\":\"object\",\"type\":\"CustomerGroup\",\"relationName\":\"CustomerGroupToCustomerToCustomerGroup\"}],\"dbName\":\"customer_to_customer_group\"},\"FlaggedPayment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customerEmail\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"customer_email\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"clearedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"cleared_at\"},{\"name\":\"ccHash\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"cc_hash\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"metadata\"}],\"dbName\":\"flagged_payments\"},\"DiscountCodeAppliedToCart\":{\"fields\":[{\"name\":\"cartId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"cart_id\"},{\"name\":\"cart\",\"kind\":\"object\",\"type\":\"Cart\",\"relationName\":\"CartToDiscountCodeAppliedToCart\"},{\"name\":\"discountCodeId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"discount_count_id\"},{\"name\":\"discountCode\",\"kind\":\"object\",\"type\":\"DiscountCode\",\"relationName\":\"DiscountCodeToDiscountCodeAppliedToCart\"},{\"name\":\"isValid\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_valid\"},{\"name\":\"appliedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"applied_at\"},{\"name\":\"warnings\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":\"discount_code_applied_on_cart\"},\"DiscountCodeRedeemedOnCart\":{\"fields\":[{\"name\":\"cartId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"cart_id\"},{\"name\":\"cart\",\"kind\":\"object\",\"type\":\"Cart\",\"relationName\":\"CartToDiscountCodeRedeemedOnCart\"},{\"name\":\"discountCodeRedemptionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"discount_count_id\"},{\"name\":\"discountCodeRedemption\",\"kind\":\"object\",\"type\":\"DiscountCodeRedemption\",\"relationName\":\"DiscountCodeRedeemedOnCartToDiscountCodeRedemption\"},{\"name\":\"discountCodeId\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"discountCode\",\"kind\":\"object\",\"type\":\"DiscountCode\",\"relationName\":\"DiscountCodeToDiscountCodeRedeemedOnCart\"},{\"name\":\"redeemedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"redeemed_at\"}],\"dbName\":\"discount_code_redeemed_on_cart\"},\"DiscountCodeRedemption\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customerId\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"discountCodeId\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"redeemedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CustomerToDiscountCodeRedemption\"},{\"name\":\"discountCode\",\"kind\":\"object\",\"type\":\"DiscountCode\",\"relationName\":\"DiscountCodeToDiscountCodeRedemption\"},{\"name\":\"discountCodeRedeemedOnCart\",\"kind\":\"object\",\"type\":\"DiscountCodeRedeemedOnCart\",\"relationName\":\"DiscountCodeRedeemedOnCartToDiscountCodeRedemption\"},{\"name\":\"cartLine\",\"kind\":\"object\",\"type\":\"CartLine\",\"relationName\":\"CartLineToDiscountCodeRedemption\"}],\"dbName\":\"discount_code_redemptions\"},\"DiscountCode\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"message\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"storeIds\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_ids\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_active\"},{\"name\":\"startDate\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"start_date\"},{\"name\":\"expiryDate\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"expiry_date\"},{\"name\":\"isGlobal\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_global\"},{\"name\":\"maxGlobalRedemptions\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"max_global_redemptions\"},{\"name\":\"maxRedemptionsPerUser\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"max_redemptions_per_user\"},{\"name\":\"maxRedemptionsPerCart\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"max_redemptions_per_cart\"},{\"name\":\"minCartValue\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"min_cart_value\"},{\"name\":\"customerOnly\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"customer_only\"},{\"name\":\"activeDays\",\"kind\":\"enum\",\"type\":\"ActiveDays\",\"dbName\":\"active_days\"},{\"name\":\"activeWeeks\",\"kind\":\"enum\",\"type\":\"ActiveWeeks\",\"dbName\":\"active_weeks\"},{\"name\":\"timeStart\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"time_start\"},{\"name\":\"timeEnd\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"time_end\"},{\"name\":\"timezone\",\"kind\":\"enum\",\"type\":\"Timezone\",\"dbName\":\"timezone\"},{\"name\":\"discountType\",\"kind\":\"enum\",\"type\":\"DiscountType\",\"dbName\":\"discount_root_type\"},{\"name\":\"discountApplicationType\",\"kind\":\"enum\",\"type\":\"DiscountApplicationType\",\"dbName\":\"discount_application_type\"},{\"name\":\"discountPercentage\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"discount_percentage\"},{\"name\":\"discountAmount\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"discount_amount\"},{\"name\":\"productIds\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_ids\"},{\"name\":\"productVariantIds\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_ids\"},{\"name\":\"categoryIds\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"category_ids\"},{\"name\":\"collectionIds\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"collection_ids\"},{\"name\":\"buyXId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"buy_x_id\"},{\"name\":\"buyXAmount\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"buy_x_amount\"},{\"name\":\"buyXQty\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"buy_x_qty\"},{\"name\":\"buyXTargetType\",\"kind\":\"enum\",\"type\":\"DiscountTargetType\",\"dbName\":\"buy_x_target_type\"},{\"name\":\"getYId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"get_y_id\"},{\"name\":\"getYAmount\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"get_y_amount\"},{\"name\":\"getYQty\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"get_y_qty\"},{\"name\":\"getYTargetType\",\"kind\":\"enum\",\"type\":\"DiscountTargetType\",\"dbName\":\"get_y_target_type\"},{\"name\":\"redemptions\",\"kind\":\"object\",\"type\":\"DiscountCodeRedemption\",\"relationName\":\"DiscountCodeToDiscountCodeRedemption\"},{\"name\":\"discountCodesAppliedToCart\",\"kind\":\"object\",\"type\":\"DiscountCodeAppliedToCart\",\"relationName\":\"DiscountCodeToDiscountCodeAppliedToCart\"},{\"name\":\"discountCodeRedeemedOnCart\",\"kind\":\"object\",\"type\":\"DiscountCodeRedeemedOnCart\",\"relationName\":\"DiscountCodeToDiscountCodeRedeemedOnCart\"},{\"name\":\"cartLine\",\"kind\":\"object\",\"type\":\"CartLine\",\"relationName\":\"CartLineToDiscountCode\"}],\"dbName\":\"discount_codes\"},\"FacetOptionToPlatform\":{\"fields\":[{\"name\":\"facetOptionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"facet_option_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"platform_id\"},{\"name\":\"facetOption\",\"kind\":\"object\",\"type\":\"FacetOption\",\"relationName\":\"FacetOptionToFacetOptionToPlatform\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"FacetOptionToPlatformToPlatform\"}],\"dbName\":\"facet_option_to_platform\"},\"FacetOption\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"facetId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"facet_id\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"value\"},{\"name\":\"facet\",\"kind\":\"object\",\"type\":\"Facet\",\"relationName\":\"FacetToFacetOption\"},{\"name\":\"facetOptionToPlatform\",\"kind\":\"object\",\"type\":\"FacetOptionToPlatform\",\"relationName\":\"FacetOptionToFacetOptionToPlatform\"}],\"dbName\":\"facet_options\"},\"FacetToPlatform\":{\"fields\":[{\"name\":\"facetId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"facet_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"platform_id\"},{\"name\":\"facet\",\"kind\":\"object\",\"type\":\"Facet\",\"relationName\":\"FacetToFacetToPlatform\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"FacetToPlatformToPlatform\"}],\"dbName\":\"facet_to_platform\"},\"Facet\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"code\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"code\"},{\"name\":\"facetOptions\",\"kind\":\"object\",\"type\":\"FacetOption\",\"relationName\":\"FacetToFacetOption\"},{\"name\":\"facetToPlatform\",\"kind\":\"object\",\"type\":\"FacetToPlatform\",\"relationName\":\"FacetToFacetToPlatform\"}],\"dbName\":\"facets\"},\"FeatureFlag\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"storeCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_code\"},{\"name\":\"platformCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_code\"},{\"name\":\"featureType\",\"kind\":\"enum\",\"type\":\"FeatureType\",\"dbName\":\"feature_type\"},{\"name\":\"enabled\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"enabled\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"FeatureFlagToStore\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"FeatureFlagToPlatform\"}],\"dbName\":\"feature_flags\"},\"FreeItemRule\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"ruleId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"rule_id\"},{\"name\":\"fromPvid\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"from_pvid\"},{\"name\":\"toPvid\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"to_pvid\"}],\"dbName\":\"free_item_rules\"},\"FreeItemToCustomer\":{\"fields\":[{\"name\":\"freeItemRuleId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"free_item_rule_id\"},{\"name\":\"ruleId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"rule_id\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":\"free_item_rule_to_customer\"},\"FulfillmentFees\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"checkoutId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_id\"},{\"name\":\"feeCode\",\"kind\":\"enum\",\"type\":\"FeeCode\",\"dbName\":\"fee_code\"},{\"name\":\"fulfillmentType\",\"kind\":\"enum\",\"type\":\"FulfillmentType\",\"dbName\":\"fulfillment_type\"},{\"name\":\"fulfillmentOptInOptionType\",\"kind\":\"enum\",\"type\":\"FulfillmentOptInOptionType\",\"dbName\":\"fulfillment_opt_in_option_type\"},{\"name\":\"currencyCode\",\"kind\":\"enum\",\"type\":\"CurrencyCode\",\"dbName\":\"currency_code\"},{\"name\":\"fee\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"checkout\",\"kind\":\"object\",\"type\":\"Checkout\",\"relationName\":\"CheckoutToFulfillmentFees\"}],\"dbName\":\"fulfillment_fees\"},\"Ingredient\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"name\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"description\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"category_id\"},{\"name\":\"linkedProductVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"linked_product_variant_id\"},{\"name\":\"unitOfMeasurement\",\"kind\":\"enum\",\"type\":\"UnitOfMeasurement\",\"dbName\":\"unit_of_measurement\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ProductCategory\",\"relationName\":\"IngredientToProductCategory\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"IngredientToProductVariant\"},{\"name\":\"ingredientToProductVariants\",\"kind\":\"object\",\"type\":\"IngredientToProductVariant\",\"relationName\":\"IngredientToIngredientToProductVariant\"},{\"name\":\"ingredientToStores\",\"kind\":\"object\",\"type\":\"IngredientToStore\",\"relationName\":\"IngredientToIngredientToStore\"},{\"name\":\"storeRestockingSchedules\",\"kind\":\"object\",\"type\":\"StoreRestockingSchedule\",\"relationName\":\"IngredientToStoreRestockingSchedule\"}],\"dbName\":\"ingredients\"},\"IngredientToProductVariant\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"ingredientId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"ingredient_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"quantity\"},{\"name\":\"isRequired\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_required\"},{\"name\":\"position\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"position\"},{\"name\":\"costPerUnit\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"cost_per_unit\"},{\"name\":\"inheritProductVariantPrice\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"inherit_product_variant_price\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"ingredient\",\"kind\":\"object\",\"type\":\"Ingredient\",\"relationName\":\"IngredientToIngredientToProductVariant\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"IngredientToProductVariantToProductVariant\"}],\"dbName\":\"ingredients_to_product_variants\"},\"IngredientToStore\":{\"fields\":[{\"name\":\"ingredientId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"ingredient_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"stock\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"stock\"},{\"name\":\"inheritStock\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"inherit_stock\"},{\"name\":\"mediaId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"media_id\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_active\"},{\"name\":\"ingredient\",\"kind\":\"object\",\"type\":\"Ingredient\",\"relationName\":\"IngredientToIngredientToStore\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"IngredientToStoreToStore\"},{\"name\":\"media\",\"kind\":\"object\",\"type\":\"Media\",\"relationName\":\"IngredientToStoreToMedia\"}],\"dbName\":\"ingredients_to_stores\"},\"AwsBucket\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"bucketName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"bucket_name\"},{\"name\":\"region\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"accessKeyId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"access_key_id\"},{\"name\":\"encryptionData\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"encryption_data\"},{\"name\":\"secretAccessKeyEncrypted\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"secret_access_key_encrypted\"},{\"name\":\"cloudFrontDomain\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"cloud_front_domain\"},{\"name\":\"presignedUrlExpiration\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"presigned_url_expiration\"},{\"name\":\"maxFileSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"max_file_size\"},{\"name\":\"maxFilenameLength\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"max_filename_length\"},{\"name\":\"platformAwsConfigurations\",\"kind\":\"object\",\"type\":\"PlatformAwsConfiguration\",\"relationName\":\"AwsBucketToPlatformAwsConfiguration\"}],\"dbName\":\"aws_buckets\"},\"Media\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"mediaContentType\",\"kind\":\"enum\",\"type\":\"MediaContentType\",\"dbName\":\"media_content_type\"},{\"name\":\"key\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"filename\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"resourceUrl\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"resource_url\"},{\"name\":\"mime\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"width\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"height\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"alt\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"processedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"processed_at\"},{\"name\":\"bucket\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"bucket\"},{\"name\":\"isInternal\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_internal\"},{\"name\":\"collections\",\"kind\":\"object\",\"type\":\"Collection\",\"relationName\":\"CollectionToMedia\"},{\"name\":\"productVariants\",\"kind\":\"object\",\"type\":\"ProductVariantToMedia\",\"relationName\":\"MediaToProductVariantToMedia\"},{\"name\":\"productVariantListingToMedias\",\"kind\":\"object\",\"type\":\"ProductVariantListingToMedia\",\"relationName\":\"MediaToProductVariantListingToMedia\"},{\"name\":\"modifiers\",\"kind\":\"object\",\"type\":\"Modifier\",\"relationName\":\"MediaToModifier\"},{\"name\":\"ingredientToStores\",\"kind\":\"object\",\"type\":\"IngredientToStore\",\"relationName\":\"IngredientToStoreToMedia\"}],\"dbName\":\"media\"},\"PlatformAwsConfiguration\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"awsBucketName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"aws_bucket_name\"},{\"name\":\"uploadPath\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"upload_path\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToPlatformAwsConfiguration\"},{\"name\":\"awsBucket\",\"kind\":\"object\",\"type\":\"AwsBucket\",\"relationName\":\"AwsBucketToPlatformAwsConfiguration\"}],\"dbName\":\"platform_aws_configuration\"},\"ModifierGroupToProduct\":{\"fields\":[{\"name\":\"modifierGroupId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_group_id\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"position\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"position\"},{\"name\":\"modifierGroup\",\"kind\":\"object\",\"type\":\"ModifierGroup\",\"relationName\":\"ModifierGroupToModifierGroupToProduct\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ModifierGroupToProductToProduct\"}],\"dbName\":\"modifier_group_to_product\"},\"ModifierGroup\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"max\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"min\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"ModifierGroupToPlatform\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ModifierGroupToStore\"},{\"name\":\"modifierToModifierGroup\",\"kind\":\"object\",\"type\":\"ModifierToModifierGroup\",\"relationName\":\"ModifierGroupToModifierToModifierGroup\"},{\"name\":\"modifierGroupToProduct\",\"kind\":\"object\",\"type\":\"ModifierGroupToProduct\",\"relationName\":\"ModifierGroupToModifierGroupToProduct\"},{\"name\":\"checkoutLinesModifier\",\"kind\":\"object\",\"type\":\"CheckoutLinesModifier\",\"relationName\":\"CheckoutLinesModifierToModifierGroup\"},{\"name\":\"cartLineModifier\",\"kind\":\"object\",\"type\":\"CartLineModifier\",\"relationName\":\"CartLineModifierToModifierGroup\"}],\"dbName\":\"modifier_groups\"},\"ModifierOption\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"modifierId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attributes\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"modifier\",\"kind\":\"object\",\"type\":\"Modifier\",\"relationName\":\"ModifierToModifierOption\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ModifierOptionToProductVariant\"},{\"name\":\"cartLineModifierOptions\",\"kind\":\"object\",\"type\":\"CartLineModifierOption\",\"relationName\":\"CartLineModifierOptionToModifierOption\"},{\"name\":\"checkoutLineModifierOption\",\"kind\":\"object\",\"type\":\"CheckoutLineModifierOption\",\"relationName\":\"CheckoutLineModifierOptionToModifierOption\"}],\"dbName\":\"modifier_option\"},\"ModifierToModifierGroup\":{\"fields\":[{\"name\":\"modifierGroupId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_group_id\"},{\"name\":\"modifierId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"modifier_id\"},{\"name\":\"maxModifierQuantity\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"max_modifier_quantity\"},{\"name\":\"minModifierQuantity\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"min_modifier_quantity\"},{\"name\":\"position\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"position\"},{\"name\":\"modifierGroup\",\"kind\":\"object\",\"type\":\"ModifierGroup\",\"relationName\":\"ModifierGroupToModifierToModifierGroup\"},{\"name\":\"modifier\",\"kind\":\"object\",\"type\":\"Modifier\",\"relationName\":\"ModifierToModifierToModifierGroup\"}],\"dbName\":\"modifier_to_modifier_group\"},\"Modifier\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attributes\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"mediaId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"media_id\"},{\"name\":\"matchVariantPrice\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"match_variant_price\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ModifierToProductVariant\"},{\"name\":\"modifierOption\",\"kind\":\"object\",\"type\":\"ModifierOption\",\"relationName\":\"ModifierToModifierOption\"},{\"name\":\"cartLineModifier\",\"kind\":\"object\",\"type\":\"CartLineModifier\",\"relationName\":\"CartLineModifierToModifier\"},{\"name\":\"CheckoutLinesModifier\",\"kind\":\"object\",\"type\":\"CheckoutLinesModifier\",\"relationName\":\"CheckoutLinesModifierToModifier\"},{\"name\":\"CheckoutLineModifierOption\",\"kind\":\"object\",\"type\":\"CheckoutLineModifierOption\",\"relationName\":\"CheckoutLineModifierOptionToModifier\"},{\"name\":\"media\",\"kind\":\"object\",\"type\":\"Media\",\"relationName\":\"MediaToModifier\"},{\"name\":\"modifierToModifierGroup\",\"kind\":\"object\",\"type\":\"ModifierToModifierGroup\",\"relationName\":\"ModifierToModifierToModifierGroup\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"ModifierToPlatform\"}],\"dbName\":\"modifier\"},\"NmiSecurityKey\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"isProduction\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_production\"},{\"name\":\"key\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"encryptionData\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"encryption_data\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"}],\"dbName\":\"nmi_security_keys\"},\"Payment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"amount\"},{\"name\":\"transactionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"transaction_id\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"metadata\"},{\"name\":\"checkoutId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"checkout\",\"kind\":\"object\",\"type\":\"Checkout\",\"relationName\":\"CheckoutToPayment\"},{\"name\":\"transaction\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"PaymentToTransaction\"},{\"name\":\"refunds\",\"kind\":\"object\",\"type\":\"Refund\",\"relationName\":\"PaymentToRefund\"}],\"dbName\":\"payments\"},\"RefundLine\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"quantity\"},{\"name\":\"checkoutLineId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_line_id\"},{\"name\":\"refundId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"refund_id\"},{\"name\":\"checkoutLine\",\"kind\":\"object\",\"type\":\"CheckoutLine\",\"relationName\":\"CheckoutLineToRefundLine\"},{\"name\":\"refund\",\"kind\":\"object\",\"type\":\"Refund\",\"relationName\":\"RefundToRefundLine\"}],\"dbName\":\"refund_lines\"},\"Refund\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"totalAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"amount\"},{\"name\":\"reason\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"reason\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"metadata\"},{\"name\":\"paymentId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"payment_id\"},{\"name\":\"flatAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"flat_amount\"},{\"name\":\"tipAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"tip_amount\"},{\"name\":\"shippingAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"shipping_amount\"},{\"name\":\"transactionId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"transaction_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"payment\",\"kind\":\"object\",\"type\":\"Payment\",\"relationName\":\"PaymentToRefund\"},{\"name\":\"lines\",\"kind\":\"object\",\"type\":\"RefundLine\",\"relationName\":\"RefundToRefundLine\"},{\"name\":\"transaction\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"RefundToTransaction\"}],\"dbName\":\"refunds\"},\"Transaction\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"TransactionType\",\"dbName\":\"type\"},{\"name\":\"amount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"amount\"},{\"name\":\"state\",\"kind\":\"enum\",\"type\":\"TransactionState\",\"dbName\":\"state\"},{\"name\":\"errorMessage\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"error_message\"},{\"name\":\"nmiTransactionId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"nmi_transaction_id\"},{\"name\":\"nmiMerchantId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"nmi_merchant_id\"},{\"name\":\"isTokenized\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_tokenized\"},{\"name\":\"tokenProvider\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"token_provider\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"metadata\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"payments\",\"kind\":\"object\",\"type\":\"Payment\",\"relationName\":\"PaymentToTransaction\"},{\"name\":\"refund\",\"kind\":\"object\",\"type\":\"Refund\",\"relationName\":\"RefundToTransaction\"}],\"dbName\":\"transactions\"},\"PlatformMailerMessage\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"eventType\",\"kind\":\"enum\",\"type\":\"PlatformMailerMessageEventType\",\"dbName\":\"event_type\"},{\"name\":\"message\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"message\"},{\"name\":\"recipient\",\"kind\":\"enum\",\"type\":\"PlatformMailerMessageRecipient\",\"dbName\":\"recipient\"},{\"name\":\"fulfillmentType\",\"kind\":\"enum\",\"type\":\"FulfillmentType\",\"dbName\":\"fulfillment_type\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_active\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToPlatformMailerMessage\"}],\"dbName\":\"platform_mailer_messages\"},\"Platform\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"name\"},{\"name\":\"displayName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"display_name\"},{\"name\":\"logoUrl\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"logo_url\"},{\"name\":\"domain\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"domain\"},{\"name\":\"deletedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"deleted_at\"},{\"name\":\"defaultLanguageCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"default_language_code\"},{\"name\":\"availableLanguages\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"available_languages\"},{\"name\":\"defaultCurrencyCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"default_currency_code\"},{\"name\":\"availableCurrencies\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"available_currencies\"},{\"name\":\"isThirdParty\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_third_party\"},{\"name\":\"thirdPartyType\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"third_party_type\"},{\"name\":\"associatedStoreId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"associated_store_id\"},{\"name\":\"mailConfig\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"mail_config\"},{\"name\":\"phoneConfig\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"phone_config\"},{\"name\":\"googleMerchantCenterId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"google_merchant_center_id\"},{\"name\":\"googleMerchantCenterCreds\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"google_merchant_center_creds\"},{\"name\":\"administratorToPlatform\",\"kind\":\"object\",\"type\":\"AdministratorToPlatform\",\"relationName\":\"AdministratorToPlatformToPlatform\"},{\"name\":\"storeToPlatform\",\"kind\":\"object\",\"type\":\"StoreToPlatform\",\"relationName\":\"PlatformToStoreToPlatform\"},{\"name\":\"facetToPlatform\",\"kind\":\"object\",\"type\":\"FacetToPlatform\",\"relationName\":\"FacetToPlatformToPlatform\"},{\"name\":\"facetOptionToPlatform\",\"kind\":\"object\",\"type\":\"FacetOptionToPlatform\",\"relationName\":\"FacetOptionToPlatformToPlatform\"},{\"name\":\"stockLocationToPlatform\",\"kind\":\"object\",\"type\":\"StockLocationToPlatform\",\"relationName\":\"PlatformToStockLocationToPlatform\"},{\"name\":\"tags\",\"kind\":\"object\",\"type\":\"Tag\",\"relationName\":\"PlatformToTag\"},{\"name\":\"productVariantListing\",\"kind\":\"object\",\"type\":\"ProductVariantListing\",\"relationName\":\"PlatformToProductVariantListing\"},{\"name\":\"productVariantPlatformPricing\",\"kind\":\"object\",\"type\":\"ProductVariantPlatformPricing\",\"relationName\":\"PlatformToProductVariantPlatformPricing\"},{\"name\":\"productVariantConfigurations\",\"kind\":\"object\",\"type\":\"ProductVariantConfiguration\",\"relationName\":\"PlatformToProductVariantConfiguration\"},{\"name\":\"platformAwsConfiguration\",\"kind\":\"object\",\"type\":\"PlatformAwsConfiguration\",\"relationName\":\"PlatformToPlatformAwsConfiguration\"},{\"name\":\"collectionToPlatforms\",\"kind\":\"object\",\"type\":\"CollectionToPlatform\",\"relationName\":\"CollectionToPlatformToPlatform\"},{\"name\":\"collectionToProducts\",\"kind\":\"object\",\"type\":\"CollectionToProduct\",\"relationName\":\"CollectionToProductToPlatform\"},{\"name\":\"associatedStore\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"PlatformToStore\"},{\"name\":\"productVariantStoreAndPlatformPricings\",\"kind\":\"object\",\"type\":\"ProductVariantStoreAndPlatformPricing\",\"relationName\":\"PlatformToProductVariantStoreAndPlatformPricing\"},{\"name\":\"modifierGroups\",\"kind\":\"object\",\"type\":\"ModifierGroup\",\"relationName\":\"ModifierGroupToPlatform\"},{\"name\":\"productListings\",\"kind\":\"object\",\"type\":\"ProductListing\",\"relationName\":\"PlatformToProductListing\"},{\"name\":\"prepTimes\",\"kind\":\"object\",\"type\":\"PrepTime\",\"relationName\":\"PlatformToPrepTime\"},{\"name\":\"storeRestockingSchedules\",\"kind\":\"object\",\"type\":\"StoreRestockingSchedule\",\"relationName\":\"PlatformToStoreRestockingSchedule\"},{\"name\":\"storeToAssociatedStoreTypes\",\"kind\":\"object\",\"type\":\"StoreToAssociatedStoreType\",\"relationName\":\"AssociatedStoreTypeToPlatform\"},{\"name\":\"productVariantStoreRankings\",\"kind\":\"object\",\"type\":\"ProductVariantStoreRanking\",\"relationName\":\"PlatformToProductVariantStoreRanking\"},{\"name\":\"modifiers\",\"kind\":\"object\",\"type\":\"Modifier\",\"relationName\":\"ModifierToPlatform\"},{\"name\":\"featureFlags\",\"kind\":\"object\",\"type\":\"FeatureFlag\",\"relationName\":\"FeatureFlagToPlatform\"},{\"name\":\"platformMailerMessages\",\"kind\":\"object\",\"type\":\"PlatformMailerMessage\",\"relationName\":\"PlatformToPlatformMailerMessage\"},{\"name\":\"pvStoreScheduledAvailability\",\"kind\":\"object\",\"type\":\"PvStoreScheduledAvailability\",\"relationName\":\"PlatformToPvStoreScheduledAvailability\"}],\"dbName\":\"platforms\"},\"ProductListing\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"platformCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_code\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"slug\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"slug\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"category_id\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToProductListing\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ProductCategory\",\"relationName\":\"ProductCategoryToProductListing\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToProductListing\"}],\"dbName\":\"product_listings\"},\"ProductToTag\":{\"fields\":[{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"tagId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"tag_id\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToProductToTag\"},{\"name\":\"tag\",\"kind\":\"object\",\"type\":\"Tag\",\"relationName\":\"ProductToTagToTag\"}],\"dbName\":\"product_to_tag\"},\"ProductVariantListing\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nameSuffix\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"name_suffix\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"position\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"attributes\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"packSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"pack_size\"},{\"name\":\"size\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"uom\",\"kind\":\"enum\",\"type\":\"UnitOfMeasurement\"},{\"name\":\"containerType\",\"kind\":\"enum\",\"type\":\"ContainerType\",\"dbName\":\"container_type\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToProductVariantListing\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantListing\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToProductVariantListing\"},{\"name\":\"productVariantListingToMedias\",\"kind\":\"object\",\"type\":\"ProductVariantListingToMedia\",\"relationName\":\"ProductVariantListingToProductVariantListingToMedia\"}],\"dbName\":\"product_variant_listings\"},\"Product\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"brand\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"restriction\",\"kind\":\"enum\",\"type\":\"RestrictionType\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"category_id\"},{\"name\":\"isCustom\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_custom\"},{\"name\":\"storeOwnerId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_owner_id\"},{\"name\":\"variants\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductToProductVariant\"},{\"name\":\"manualCollections\",\"kind\":\"object\",\"type\":\"CollectionToProduct\",\"relationName\":\"CollectionToProductToProduct\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ProductCategory\",\"relationName\":\"ProductToProductCategory\"},{\"name\":\"ProductVariantRanking\",\"kind\":\"object\",\"type\":\"ProductVariantRanking\",\"relationName\":\"ProductToProductVariantRanking\"},{\"name\":\"productListings\",\"kind\":\"object\",\"type\":\"ProductListing\",\"relationName\":\"ProductToProductListing\"},{\"name\":\"productVariantListings\",\"kind\":\"object\",\"type\":\"ProductVariantListing\",\"relationName\":\"ProductToProductVariantListing\"},{\"name\":\"productToTags\",\"kind\":\"object\",\"type\":\"ProductToTag\",\"relationName\":\"ProductToProductToTag\"},{\"name\":\"storeOwner\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ProductToStore\"},{\"name\":\"manualCollectionProducts\",\"kind\":\"object\",\"type\":\"ManualCollectionProduct\",\"relationName\":\"ManualCollectionProductToProduct\"},{\"name\":\"modifierGroupToProduct\",\"kind\":\"object\",\"type\":\"ModifierGroupToProduct\",\"relationName\":\"ModifierGroupToProductToProduct\"},{\"name\":\"productVariantStoreRankings\",\"kind\":\"object\",\"type\":\"ProductVariantStoreRanking\",\"relationName\":\"ProductToProductVariantStoreRanking\"}],\"dbName\":\"products\"},\"ProductsWithOverrides\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"productName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"product_name\"},{\"name\":\"productBrand\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"product_brand\"},{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"category_id\"},{\"name\":\"categoryName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"category_name\"},{\"name\":\"productDescription\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"product_description\"},{\"name\":\"productActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"product_active\"},{\"name\":\"productRestriction\",\"kind\":\"enum\",\"type\":\"RestrictionType\",\"dbName\":\"product_restriction\"},{\"name\":\"productCreatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"product_created_at\"},{\"name\":\"productUpdatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"product_updated_at\"},{\"name\":\"productSlug\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"product_slug\"},{\"name\":\"isCustom\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_custom\"},{\"name\":\"storeOwnerId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_owner_id\"},{\"name\":\"productVariantActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"product_variant_active\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"displayName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"display_name\"},{\"name\":\"productVariantPublishedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"product_variant_published_at\"},{\"name\":\"productVariantName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"product_variant_name\"},{\"name\":\"productVariantDescription\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"product_variant_description\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"sku\"},{\"name\":\"upc\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"upc\"},{\"name\":\"attributes\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"attributes\"},{\"name\":\"packSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"pack_size\"},{\"name\":\"size\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"size\"},{\"name\":\"uom\",\"kind\":\"enum\",\"type\":\"UnitOfMeasurement\",\"dbName\":\"uom\"},{\"name\":\"containerType\",\"kind\":\"enum\",\"type\":\"ContainerType\",\"dbName\":\"container_type\"},{\"name\":\"productVariantListingPosition\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"product_variant_listing_position\"},{\"name\":\"productVariantPosition\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"product_variant_position\"}],\"dbName\":\"products_with_overrides\"},\"ProductCategoryToTag\":{\"fields\":[{\"name\":\"categoryId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"category_id\"},{\"name\":\"tagId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"tag_id\"},{\"name\":\"category\",\"kind\":\"object\",\"type\":\"ProductCategory\",\"relationName\":\"ProductCategoryToProductCategoryToTag\"},{\"name\":\"tag\",\"kind\":\"object\",\"type\":\"Tag\",\"relationName\":\"ProductCategoryToTagToTag\"}],\"dbName\":\"category_to_tag\"},\"ProductCategory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"displayName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"display_name\"},{\"name\":\"restriction\",\"kind\":\"enum\",\"type\":\"RestrictionType\"},{\"name\":\"products\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToProductCategory\"},{\"name\":\"taxCategoryId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"tax_category_id\"},{\"name\":\"ingredients\",\"kind\":\"object\",\"type\":\"Ingredient\",\"relationName\":\"IngredientToProductCategory\"},{\"name\":\"subcategories\",\"kind\":\"object\",\"type\":\"ProductCategory\",\"relationName\":\"CategoryToCategory\"},{\"name\":\"parentCategoryId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"parent_category_id\"},{\"name\":\"parentCategory\",\"kind\":\"object\",\"type\":\"ProductCategory\",\"relationName\":\"CategoryToCategory\"},{\"name\":\"taxCategory\",\"kind\":\"object\",\"type\":\"TaxCategory\",\"relationName\":\"ProductCategoryToTaxCategory\"},{\"name\":\"productListing\",\"kind\":\"object\",\"type\":\"ProductListing\",\"relationName\":\"ProductCategoryToProductListing\"},{\"name\":\"productCategoryToTags\",\"kind\":\"object\",\"type\":\"ProductCategoryToTag\",\"relationName\":\"ProductCategoryToProductCategoryToTag\"}],\"dbName\":\"categories\"},\"ProductVariantConfiguration\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"hideFromListing\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"hide_from_listing\"},{\"name\":\"trackQuantity\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"track_quantity\"},{\"name\":\"allowedFulfillmentTypes\",\"kind\":\"enum\",\"type\":\"FulfillmentType\",\"dbName\":\"allowed_fulfillment_types\"},{\"name\":\"overrideFulfillmentType\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"override_fulfillment_type\"},{\"name\":\"continueSellingWhenOutOfStock\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"continue_selling_when_out_of_stock\"},{\"name\":\"overrideMedia\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"override_media\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantConfiguration\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToProductVariantConfiguration\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ProductVariantConfigurationToStore\"}],\"dbName\":\"product_variant_configuration\"},\"ProductVariantListingToMedia\":{\"fields\":[{\"name\":\"productVariantListingId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_listing_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"mediaId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"media_id\"},{\"name\":\"position\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"productVariantListing\",\"kind\":\"object\",\"type\":\"ProductVariantListing\",\"relationName\":\"ProductVariantListingToProductVariantListingToMedia\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantListingToMedia\"},{\"name\":\"media\",\"kind\":\"object\",\"type\":\"Media\",\"relationName\":\"MediaToProductVariantListingToMedia\"}],\"dbName\":\"product_variant_listing_to_media\"},\"ProductVariantPlatformPricing\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"price\"},{\"name\":\"currencyCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"currency_code\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantPlatformPricing\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToProductVariantPlatformPricing\"}],\"dbName\":\"product_variant_platform_pricing\"},\"ProductVariantStoreAndPlatformPricing\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"price\"},{\"name\":\"compareAtPrice\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"compare_at_price\"},{\"name\":\"currencyCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"currency_code\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantStoreAndPlatformPricing\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToProductVariantStoreAndPlatformPricing\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ProductVariantStoreAndPlatformPricingToStore\"}],\"dbName\":\"product_variant_store_platform_pricing\"},\"ProductVariantStorePricing\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"compareAtPrice\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"compare_at_price\"},{\"name\":\"price\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"price\"},{\"name\":\"currencyCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"currency_code\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantStorePricing\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ProductVariantStorePricingToStore\"}],\"dbName\":\"product_variant_store_pricing\"},\"ProductVariantToMedia\":{\"fields\":[{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"mediaId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"media_id\"},{\"name\":\"position\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantToMedia\"},{\"name\":\"media\",\"kind\":\"object\",\"type\":\"Media\",\"relationName\":\"MediaToProductVariantToMedia\"}],\"dbName\":\"product_variant_to_media\"},\"ProductVariantToTag\":{\"fields\":[{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"tagId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"tag_id\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantToTag\"},{\"name\":\"tag\",\"kind\":\"object\",\"type\":\"Tag\",\"relationName\":\"ProductVariantToTagToTag\"}],\"dbName\":\"product_variant_to_tag\"},\"ProductVariant\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"position\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"nameSuffix\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"name_suffix\"},{\"name\":\"upc\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"attributes\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"packSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"pack_size\"},{\"name\":\"size\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"uom\",\"kind\":\"enum\",\"type\":\"UnitOfMeasurement\"},{\"name\":\"containerType\",\"kind\":\"enum\",\"type\":\"ContainerType\",\"dbName\":\"container_type\"},{\"name\":\"displayName\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"display_name\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"isCustom\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_custom\"},{\"name\":\"storeOwnerId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_owner_id\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToProductVariant\"},{\"name\":\"fromRelatedItems\",\"kind\":\"object\",\"type\":\"RelatedItems\",\"relationName\":\"fromProductVariant\"},{\"name\":\"toRelatedItems\",\"kind\":\"object\",\"type\":\"RelatedItems\",\"relationName\":\"toProductVariant\"},{\"name\":\"media\",\"kind\":\"object\",\"type\":\"ProductVariantToMedia\",\"relationName\":\"ProductVariantToProductVariantToMedia\"},{\"name\":\"cartLines\",\"kind\":\"object\",\"type\":\"CartLine\",\"relationName\":\"CartLineToProductVariant\"},{\"name\":\"checkoutLines\",\"kind\":\"object\",\"type\":\"CheckoutLine\",\"relationName\":\"CheckoutLineToProductVariant\"},{\"name\":\"ProductVariantRanking\",\"kind\":\"object\",\"type\":\"ProductVariantRanking\",\"relationName\":\"ProductVariantToProductVariantRanking\"},{\"name\":\"productVarietal\",\"kind\":\"object\",\"type\":\"ProductVarietal\",\"relationName\":\"ProductVariantToProductVarietal\"},{\"name\":\"collectionToProductVariant\",\"kind\":\"object\",\"type\":\"CollectionToProductVariant\",\"relationName\":\"CollectionToProductVariantToProductVariant\"},{\"name\":\"stockLevels\",\"kind\":\"object\",\"type\":\"StockLevel\",\"relationName\":\"ProductVariantToStockLevel\"},{\"name\":\"productVariantListing\",\"kind\":\"object\",\"type\":\"ProductVariantListing\",\"relationName\":\"ProductVariantToProductVariantListing\"},{\"name\":\"productVariantPlatformPricing\",\"kind\":\"object\",\"type\":\"ProductVariantPlatformPricing\",\"relationName\":\"ProductVariantToProductVariantPlatformPricing\"},{\"name\":\"productVariantStorePricing\",\"kind\":\"object\",\"type\":\"ProductVariantStorePricing\",\"relationName\":\"ProductVariantToProductVariantStorePricing\"},{\"name\":\"stockMovement\",\"kind\":\"object\",\"type\":\"StockMovement\",\"relationName\":\"ProductVariantToStockMovement\"},{\"name\":\"productVariantConfigurations\",\"kind\":\"object\",\"type\":\"ProductVariantConfiguration\",\"relationName\":\"ProductVariantToProductVariantConfiguration\"},{\"name\":\"productVariantToTags\",\"kind\":\"object\",\"type\":\"ProductVariantToTag\",\"relationName\":\"ProductVariantToProductVariantToTag\"},{\"name\":\"productVariantListingToMedias\",\"kind\":\"object\",\"type\":\"ProductVariantListingToMedia\",\"relationName\":\"ProductVariantToProductVariantListingToMedia\"},{\"name\":\"productVariantStoreAndPlatformPricings\",\"kind\":\"object\",\"type\":\"ProductVariantStoreAndPlatformPricing\",\"relationName\":\"ProductVariantToProductVariantStoreAndPlatformPricing\"},{\"name\":\"modifier\",\"kind\":\"object\",\"type\":\"Modifier\",\"relationName\":\"ModifierToProductVariant\"},{\"name\":\"modifierOption\",\"kind\":\"object\",\"type\":\"ModifierOption\",\"relationName\":\"ModifierOptionToProductVariant\"},{\"name\":\"productVariantStoreRankings\",\"kind\":\"object\",\"type\":\"ProductVariantStoreRanking\",\"relationName\":\"ProductVariantToProductVariantStoreRanking\"},{\"name\":\"ingredientToProductVariants\",\"kind\":\"object\",\"type\":\"IngredientToProductVariant\",\"relationName\":\"IngredientToProductVariantToProductVariant\"},{\"name\":\"ingredients\",\"kind\":\"object\",\"type\":\"Ingredient\",\"relationName\":\"IngredientToProductVariant\"},{\"name\":\"pvStoreScheduledAvailability\",\"kind\":\"object\",\"type\":\"PvStoreScheduledAvailability\",\"relationName\":\"ProductVariantToPvStoreScheduledAvailability\"}],\"dbName\":\"product_variants\"},\"ProductVariantRanking\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"ranking\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"grossRevenue\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"gross_revenue\"},{\"name\":\"numOrders\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"num_orders\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantRanking\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToProductVariantRanking\"}],\"dbName\":\"product_variant_ranking\"},\"ProductVariantStoreRanking\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"productId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"ranking\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"boostValue\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"boost_value\"},{\"name\":\"grossRevenue\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"gross_revenue\"},{\"name\":\"numOrders\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"num_orders\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVariantStoreRanking\"},{\"name\":\"product\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToProductVariantStoreRanking\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ProductVariantStoreRankingToStore\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToProductVariantStoreRanking\"}],\"dbName\":\"product_variant_store_ranking\"},\"ProductVarietal\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"sku\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"vintage\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"packSize\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"pack_size\"},{\"name\":\"size\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"uom\",\"kind\":\"enum\",\"type\":\"UnitOfMeasurement\"},{\"name\":\"region\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToProductVarietal\"}],\"dbName\":\"product_varietals\"},\"RelatedItems\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"fromProductVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"from_product_variant_id\"},{\"name\":\"toProductVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"to_product_variant_id\"},{\"name\":\"fromSku\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"from_sku\"},{\"name\":\"toSku\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"to_sku\"},{\"name\":\"frequency\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"frequency\"},{\"name\":\"quantityTo\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"quantity_to\"},{\"name\":\"fromProductVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"fromProductVariant\"},{\"name\":\"toProductVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"toProductVariant\"}],\"dbName\":\"related_items\"},\"ScheduledTask\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"taskId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"task_id\"},{\"name\":\"enabled\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"enabled\"},{\"name\":\"lockedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"locked_at\"},{\"name\":\"lastExecutedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"last_executed_at\"},{\"name\":\"manuallyTriggeredAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"manually_triggered_at\"},{\"name\":\"lastResult\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"last_result\"}],\"dbName\":\"scheduled_task\"},\"Address\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"line1\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"line2\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"city\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"zip\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"country\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"latitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"longitude\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"customers\",\"kind\":\"object\",\"type\":\"CustomerToAddress\",\"relationName\":\"AddressToCustomerToAddress\"}],\"dbName\":\"addresses\"},\"ShippingConfiguration\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"storeCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_code\"},{\"name\":\"activeCarriers\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"active_carriers\"},{\"name\":\"shippoCarrierAccounts\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"shippo_carrier_accounts\"},{\"name\":\"carrierConfigurations\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"carrier_configurations\"},{\"name\":\"shippingAddons\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"shipping_addons\"},{\"name\":\"fulfillmentTypeRestrictions\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"fulfillment_type_restrictions\"},{\"name\":\"stateBlockList\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"state_block_list\"},{\"name\":\"isShippingEnabled\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_shipping_enabled\"},{\"name\":\"isPurchasingLabelsManually\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_purchasing_labels_manually\"},{\"name\":\"isAutoPurchasingLabels\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_auto_purchasing_labels\"},{\"name\":\"shippoAccountId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"shippo_account_id\"},{\"name\":\"shippoServiceUpcharge\",\"kind\":\"scalar\",\"type\":\"Float\",\"dbName\":\"shippo_service_upcharge\"},{\"name\":\"passServiceUpchargeToCustomer\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"pass_service_upcharge_to_customer\"},{\"name\":\"isObfuscatingRates\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_obfuscating_rates\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ShippingConfigurationToStore\"}],\"dbName\":\"shipping_configurations\"},\"ShippingLabelFee\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"storeCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_code\"},{\"name\":\"state\",\"kind\":\"enum\",\"type\":\"TransactionState\",\"dbName\":\"state\"},{\"name\":\"labelCostAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"label_cost_amount\"},{\"name\":\"serviceChargeAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"service_charge_amount\"},{\"name\":\"totalAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_amount\"},{\"name\":\"orderId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"order_id\"},{\"name\":\"rateId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"rate_id\"},{\"name\":\"labelPurchasedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"label_purchased_at\"},{\"name\":\"billedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"billed_at\"},{\"name\":\"shippoAccountId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"shippo_account_id\"},{\"name\":\"wasLabelPurchasedManually\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"was_label_purchased_manually\"},{\"name\":\"didMerchantMarkOrderAsContainingAlcohol\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"did_merchant_mark_order_as_containing_alcohol\"},{\"name\":\"didMerchantMarkOrderAsRequiringSignature\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"did_merchant_mark_order_as_requiring_signature\"},{\"name\":\"labels\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"labels\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ShippingLabelFeeToStore\"}],\"dbName\":\"shipping_label_fees\"},\"ShippingLabelRefund\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"storeCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_code\"},{\"name\":\"state\",\"kind\":\"enum\",\"type\":\"TransactionState\",\"dbName\":\"state\"},{\"name\":\"labelRefundAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"label_refund_amount\"},{\"name\":\"serviceChargeRefundAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"service_charge_refund_amount\"},{\"name\":\"totalRefundAmount\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"total_refund_amount\"},{\"name\":\"orderId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"order_id\"},{\"name\":\"rateId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"rate_id\"},{\"name\":\"shippoTransactionId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"shippo_transaction_id\"},{\"name\":\"processedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"processed_at\"},{\"name\":\"shippoAccountId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"shippo_account_id\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"ShippingLabelRefundToStore\"}],\"dbName\":\"shipping_label_refunds\"},\"SmsConversationMessage\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"conversationId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"conversation_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"didSendSuccessfully\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"did_send_successfully\"},{\"name\":\"errorMessage\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"error_message\"},{\"name\":\"body\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"direction\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"conversation\",\"kind\":\"object\",\"type\":\"SmsConversation\",\"relationName\":\"SmsConversationToSmsConversationMessage\"}],\"dbName\":\"sms_conversation_messages\"},\"SmsConversation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"customerId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"customer_id\"},{\"name\":\"customerPhone\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"customer_phone\"},{\"name\":\"purpose\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"closedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"closed_at\"},{\"name\":\"smsMessage\",\"kind\":\"object\",\"type\":\"SmsConversationMessage\",\"relationName\":\"SmsConversationToSmsConversationMessage\"},{\"name\":\"metadata\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"errorMessage\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"error_message\"},{\"name\":\"customer\",\"kind\":\"object\",\"type\":\"Customer\",\"relationName\":\"CustomerToSmsConversation\"}],\"dbName\":\"sms_conversations\"},\"SmsMerchantNotificationMessage\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"purpose\",\"kind\":\"enum\",\"type\":\"merchantSmsPurpose\"},{\"name\":\"orderNumber\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"order_number\"},{\"name\":\"body\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sid\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":\"sms_merchant_notification_messages\"},\"StockLevel\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"stockOnHand\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"stock_on_hand\"},{\"name\":\"stockOnHold\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"stock_on_hold\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"stockLocationId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"stock_location_id\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToStockLevel\"},{\"name\":\"stockLocation\",\"kind\":\"object\",\"type\":\"StockLocation\",\"relationName\":\"StockLevelToStockLocation\"}],\"dbName\":\"stock_levels\"},\"StockLocationToPlatform\":{\"fields\":[{\"name\":\"stockLocationId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"stock_location_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"stockLocation\",\"kind\":\"object\",\"type\":\"StockLocation\",\"relationName\":\"StockLocationToStockLocationToPlatform\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToStockLocationToPlatform\"}],\"dbName\":\"stock_location_to_platform\"},\"StockLocation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isDefault\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_default\"},{\"name\":\"stockLevels\",\"kind\":\"object\",\"type\":\"StockLevel\",\"relationName\":\"StockLevelToStockLocation\"},{\"name\":\"stockLocationToPlatform\",\"kind\":\"object\",\"type\":\"StockLocationToPlatform\",\"relationName\":\"StockLocationToStockLocationToPlatform\"},{\"name\":\"stockMovement\",\"kind\":\"object\",\"type\":\"StockMovement\",\"relationName\":\"StockLocationToStockMovement\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"StockLocationToStore\"}],\"dbName\":\"stock_locations\"},\"StockMovement\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"stockLocationId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"stock_location_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"checkoutLineId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"checkout_line_id\"},{\"name\":\"quantity\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"stockLocation\",\"kind\":\"object\",\"type\":\"StockLocation\",\"relationName\":\"StockLocationToStockMovement\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToStockMovement\"},{\"name\":\"checkoutLine\",\"kind\":\"object\",\"type\":\"CheckoutLine\",\"relationName\":\"CheckoutLineToStockMovement\"}],\"dbName\":\"stock_movements\"},\"PrepTime\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"orderSubtotal\",\"kind\":\"scalar\",\"type\":\"Decimal\",\"dbName\":\"order_subtotal\"},{\"name\":\"prepTimeInMinutes\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"prep_time_in_minutes\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"PrepTimeToStore\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToPrepTime\"}],\"dbName\":\"prep_times\"},\"PvStoreScheduledAvailabilityLog\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"scheduledAvailabilityId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"scheduled_availability_id\"},{\"name\":\"jobId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"job_id\"},{\"name\":\"startTime\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"start_time\"},{\"name\":\"endTime\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"end_time\"},{\"name\":\"isAvailable\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_available\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"RestockingStatus\",\"dbName\":\"status\"},{\"name\":\"reason\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"reason\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"pvStoreScheduledAvailability\",\"kind\":\"object\",\"type\":\"PvStoreScheduledAvailability\",\"relationName\":\"PvStoreScheduledAvailabilityToPvStoreScheduledAvailabilityLog\"}],\"dbName\":\"pv_store_scheduled_availability_logs\"},\"PvStoreScheduledAvailability\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"productVariantId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"product_variant_id\"},{\"name\":\"activeDays\",\"kind\":\"enum\",\"type\":\"ActiveDays\",\"dbName\":\"active_days\"},{\"name\":\"activeWeeks\",\"kind\":\"enum\",\"type\":\"ActiveWeeks\",\"dbName\":\"active_weeks\"},{\"name\":\"startTime\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"start_time\"},{\"name\":\"endTime\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"end_time\"},{\"name\":\"isAvailable\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_available\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_active\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"PvStoreScheduledAvailabilityToStore\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToPvStoreScheduledAvailability\"},{\"name\":\"productVariant\",\"kind\":\"object\",\"type\":\"ProductVariant\",\"relationName\":\"ProductVariantToPvStoreScheduledAvailability\"},{\"name\":\"pvStoreScheduledAvailabilityLog\",\"kind\":\"object\",\"type\":\"PvStoreScheduledAvailabilityLog\",\"relationName\":\"PvStoreScheduledAvailabilityToPvStoreScheduledAvailabilityLog\"}],\"dbName\":\"pv_store_scheduled_availability\"},\"StoreRestockingLog\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"restockingId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"restocking_id\"},{\"name\":\"jobId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"job_id\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"restockingTime\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"restocking_time\"},{\"name\":\"status\",\"kind\":\"enum\",\"type\":\"RestockingStatus\",\"dbName\":\"status\"},{\"name\":\"storeRestockingSchedule\",\"kind\":\"object\",\"type\":\"StoreRestockingSchedule\",\"relationName\":\"StoreRestockingLogToStoreRestockingSchedule\"}],\"dbName\":\"store_restocking_logs\"},\"StoreRestockingSchedule\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"activeDays\",\"kind\":\"enum\",\"type\":\"ActiveDays\",\"dbName\":\"active_days\"},{\"name\":\"activeWeeks\",\"kind\":\"enum\",\"type\":\"ActiveWeeks\",\"dbName\":\"active_weeks\"},{\"name\":\"restockingTime\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"restocking_time\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"is_active\"},{\"name\":\"ingredientId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"ingredient_id\"},{\"name\":\"timezone\",\"kind\":\"enum\",\"type\":\"Timezone\",\"dbName\":\"timezone\"},{\"name\":\"restockingAmount\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"restocking_amount\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"StoreToStoreRestockingSchedule\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToStoreRestockingSchedule\"},{\"name\":\"ingredient\",\"kind\":\"object\",\"type\":\"Ingredient\",\"relationName\":\"IngredientToStoreRestockingSchedule\"},{\"name\":\"storeRestockingLog\",\"kind\":\"object\",\"type\":\"StoreRestockingLog\",\"relationName\":\"StoreRestockingLogToStoreRestockingSchedule\"}],\"dbName\":\"store_restocking_schedules\"},\"StoreToAssociatedStoreType\":{\"fields\":[{\"name\":\"storeRecordId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"store_id\"},{\"name\":\"platformRecordId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"platform_id\"},{\"name\":\"associatedStoreType\",\"kind\":\"enum\",\"type\":\"AssociatedStoreType\",\"dbName\":\"associated_store_type\"},{\"name\":\"associatedStoreCode\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"associated_store_code\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"StoreToAssociatedStoreTypes\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"AssociatedStoreTypeToPlatform\"}],\"dbName\":\"store_to_associated_store_type\"},\"StoreToPlatform\":{\"fields\":[{\"name\":\"storeRecordId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"store_id\"},{\"name\":\"platformRecordId\",\"kind\":\"scalar\",\"type\":\"BigInt\",\"dbName\":\"platform_id\"},{\"name\":\"trackInventory\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"track_inventory\"},{\"name\":\"outOfStockThreshold\",\"kind\":\"scalar\",\"type\":\"Int\",\"dbName\":\"out_of_stock_threshold\"},{\"name\":\"pricesIncludeTax\",\"kind\":\"scalar\",\"type\":\"Boolean\",\"dbName\":\"prices_include_tax\"},{\"name\":\"store\",\"kind\":\"object\",\"type\":\"Store\",\"relationName\":\"StoreToStoreToPlatform\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToStoreToPlatform\"}],\"dbName\":\"store_to_platform\"},\"Store\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"storeId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"store_id\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"name\"},{\"name\":\"phone\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"phone\"},{\"name\":\"address\",\"kind\":\"scalar\",\"type\":\"Json\",\"dbName\":\"address\"},{\"name\":\"storeToPlatform\",\"kind\":\"object\",\"type\":\"StoreToPlatform\",\"relationName\":\"StoreToStoreToPlatform\"},{\"name\":\"administratorToStore\",\"kind\":\"object\",\"type\":\"AdministratorToStore\",\"relationName\":\"AdministratorToStoreToStore\"},{\"name\":\"productVariantStorePricing\",\"kind\":\"object\",\"type\":\"ProductVariantStorePricing\",\"relationName\":\"ProductVariantStorePricingToStore\"},{\"name\":\"stockLocations\",\"kind\":\"object\",\"type\":\"StockLocation\",\"relationName\":\"StockLocationToStore\"},{\"name\":\"productVariantConfigurations\",\"kind\":\"object\",\"type\":\"ProductVariantConfiguration\",\"relationName\":\"ProductVariantConfigurationToStore\"},{\"name\":\"customProducts\",\"kind\":\"object\",\"type\":\"Product\",\"relationName\":\"ProductToStore\"},{\"name\":\"thirdPartyPlatforms\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToStore\"},{\"name\":\"productVariantStoreAndPlatformPricings\",\"kind\":\"object\",\"type\":\"ProductVariantStoreAndPlatformPricing\",\"relationName\":\"ProductVariantStoreAndPlatformPricingToStore\"},{\"name\":\"ingredientToStores\",\"kind\":\"object\",\"type\":\"IngredientToStore\",\"relationName\":\"IngredientToStoreToStore\"},{\"name\":\"storeRestockingSchedules\",\"kind\":\"object\",\"type\":\"StoreRestockingSchedule\",\"relationName\":\"StoreToStoreRestockingSchedule\"},{\"name\":\"shippingConfigurations\",\"kind\":\"object\",\"type\":\"ShippingConfiguration\",\"relationName\":\"ShippingConfigurationToStore\"},{\"name\":\"storeToAssociatedStoreTypes\",\"kind\":\"object\",\"type\":\"StoreToAssociatedStoreType\",\"relationName\":\"StoreToAssociatedStoreTypes\"},{\"name\":\"modifierGroups\",\"kind\":\"object\",\"type\":\"ModifierGroup\",\"relationName\":\"ModifierGroupToStore\"},{\"name\":\"prepTimes\",\"kind\":\"object\",\"type\":\"PrepTime\",\"relationName\":\"PrepTimeToStore\"},{\"name\":\"productVariantStoreRankings\",\"kind\":\"object\",\"type\":\"ProductVariantStoreRanking\",\"relationName\":\"ProductVariantStoreRankingToStore\"},{\"name\":\"shippingLabelFees\",\"kind\":\"object\",\"type\":\"ShippingLabelFee\",\"relationName\":\"ShippingLabelFeeToStore\"},{\"name\":\"shippingLabelRefunds\",\"kind\":\"object\",\"type\":\"ShippingLabelRefund\",\"relationName\":\"ShippingLabelRefundToStore\"},{\"name\":\"featureFlags\",\"kind\":\"object\",\"type\":\"FeatureFlag\",\"relationName\":\"FeatureFlagToStore\"},{\"name\":\"pvStoreScheduledAvailability\",\"kind\":\"object\",\"type\":\"PvStoreScheduledAvailability\",\"relationName\":\"PvStoreScheduledAvailabilityToStore\"}],\"dbName\":\"stores\"},\"Tag\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"created_at\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\",\"dbName\":\"updated_at\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\",\"dbName\":\"platform_id\"},{\"name\":\"value\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToTag\"},{\"name\":\"productVariantToTags\",\"kind\":\"object\",\"type\":\"ProductVariantToTag\",\"relationName\":\"ProductVariantToTagToTag\"},{\"name\":\"productToTags\",\"kind\":\"object\",\"type\":\"ProductToTag\",\"relationName\":\"ProductToTagToTag\"},{\"name\":\"productCategoryToTags\",\"kind\":\"object\",\"type\":\"ProductCategoryToTag\",\"relationName\":\"ProductCategoryToTagToTag\"}],\"dbName\":\"tags\"},\"TaxCategory\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"BigInt\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"taxcode\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"productCategory\",\"kind\":\"object\",\"type\":\"ProductCategory\",\"relationName\":\"ProductCategoryToTaxCategory\"}],\"dbName\":\"tax_categories\"}},\"enums\":{},\"types\":{}}");
64
+ async function decodeBase64AsWasm(wasmBase64) {
65
+ const { Buffer } = await import('node:buffer');
66
+ const wasmArray = Buffer.from(wasmBase64, 'base64');
67
+ return new WebAssembly.Module(wasmArray);
68
+ }
69
+ config.compilerWasm = {
70
+ getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.postgresql.js"),
71
+ getQueryCompilerWasmModule: async () => {
72
+ const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.js");
73
+ return await decodeBase64AsWasm(wasm);
74
+ }
75
+ };
76
+ function getPrismaClientClass() {
77
+ return runtime.getPrismaClient(config);
78
+ }
79
+ //# sourceMappingURL=class.js.map