Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

1854 строки
117 KiB

  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  10. <table name="catalog_product_entity" resource="default" engine="innodb" comment="Catalog Product Table">
  11. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true"
  12. comment="Entity ID"/>
  13. <column xsi:type="smallint" name="attribute_set_id" unsigned="true" nullable="false"
  14. identity="false" default="0" comment="Attribute Set ID"/>
  15. <column xsi:type="varchar" name="type_id" nullable="false" length="32" default="simple" comment="Type ID"/>
  16. <column xsi:type="varchar" name="sku" nullable="false" length="64" comment="SKU"/>
  17. <column xsi:type="smallint" name="has_options" unsigned="false" nullable="false" identity="false"
  18. default="0" comment="Has Options"/>
  19. <column xsi:type="smallint" name="required_options" unsigned="true" nullable="false"
  20. identity="false" default="0" comment="Required Options"/>
  21. <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  22. comment="Creation Time"/>
  23. <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
  24. comment="Update Time"/>
  25. <constraint xsi:type="primary" referenceId="PRIMARY">
  26. <column name="entity_id"/>
  27. </constraint>
  28. <index referenceId="CATALOG_PRODUCT_ENTITY_ATTRIBUTE_SET_ID" indexType="btree">
  29. <column name="attribute_set_id"/>
  30. </index>
  31. <index referenceId="CATALOG_PRODUCT_ENTITY_SKU" indexType="btree">
  32. <column name="sku"/>
  33. </index>
  34. </table>
  35. <table name="catalog_product_entity_datetime" resource="default" engine="innodb"
  36. comment="Catalog Product Datetime Attribute Backend Table">
  37. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  38. comment="Value ID"/>
  39. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  40. default="0" comment="Attribute ID"/>
  41. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  42. default="0" comment="Store ID"/>
  43. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  44. default="0" comment="Entity ID"/>
  45. <column xsi:type="datetime" name="value" on_update="false" nullable="true" comment="Value"/>
  46. <constraint xsi:type="primary" referenceId="PRIMARY">
  47. <column name="value_id"/>
  48. </constraint>
  49. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID"
  50. table="catalog_product_entity_datetime" column="attribute_id" referenceTable="eav_attribute"
  51. referenceColumn="attribute_id" onDelete="CASCADE"/>
  52. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_DTIME_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  53. table="catalog_product_entity_datetime" column="entity_id" referenceTable="catalog_product_entity"
  54. referenceColumn="entity_id" onDelete="CASCADE"/>
  55. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID"
  56. table="catalog_product_entity_datetime" column="store_id" referenceTable="store"
  57. referenceColumn="store_id" onDelete="CASCADE"/>
  58. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  59. <column name="entity_id"/>
  60. <column name="attribute_id"/>
  61. <column name="store_id"/>
  62. </constraint>
  63. <index referenceId="CATALOG_PRODUCT_ENTITY_DATETIME_ATTRIBUTE_ID" indexType="btree">
  64. <column name="attribute_id"/>
  65. </index>
  66. <index referenceId="CATALOG_PRODUCT_ENTITY_DATETIME_STORE_ID" indexType="btree">
  67. <column name="store_id"/>
  68. </index>
  69. </table>
  70. <table name="catalog_product_entity_decimal" resource="default" engine="innodb"
  71. comment="Catalog Product Decimal Attribute Backend Table">
  72. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  73. comment="Value ID"/>
  74. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  75. default="0" comment="Attribute ID"/>
  76. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  77. default="0" comment="Store ID"/>
  78. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  79. default="0" comment="Entity ID"/>
  80. <column xsi:type="decimal" name="value" scale="6" precision="20" unsigned="false" nullable="true"
  81. comment="Value"/>
  82. <constraint xsi:type="primary" referenceId="PRIMARY">
  83. <column name="value_id"/>
  84. </constraint>
  85. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID"
  86. table="catalog_product_entity_decimal" column="attribute_id" referenceTable="eav_attribute"
  87. referenceColumn="attribute_id" onDelete="CASCADE"/>
  88. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_DEC_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  89. table="catalog_product_entity_decimal" column="entity_id" referenceTable="catalog_product_entity"
  90. referenceColumn="entity_id" onDelete="CASCADE"/>
  91. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID"
  92. table="catalog_product_entity_decimal" column="store_id" referenceTable="store"
  93. referenceColumn="store_id" onDelete="CASCADE"/>
  94. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  95. <column name="entity_id"/>
  96. <column name="attribute_id"/>
  97. <column name="store_id"/>
  98. </constraint>
  99. <index referenceId="CATALOG_PRODUCT_ENTITY_DECIMAL_STORE_ID" indexType="btree">
  100. <column name="store_id"/>
  101. </index>
  102. <index referenceId="CATALOG_PRODUCT_ENTITY_DECIMAL_ATTRIBUTE_ID" indexType="btree">
  103. <column name="attribute_id"/>
  104. </index>
  105. </table>
  106. <table name="catalog_product_entity_int" resource="default" engine="innodb"
  107. comment="Catalog Product Integer Attribute Backend Table">
  108. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  109. comment="Value ID"/>
  110. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  111. default="0" comment="Attribute ID"/>
  112. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  113. default="0" comment="Store ID"/>
  114. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  115. default="0" comment="Entity ID"/>
  116. <column xsi:type="int" name="value" unsigned="false" nullable="true" identity="false"
  117. comment="Value"/>
  118. <constraint xsi:type="primary" referenceId="PRIMARY">
  119. <column name="value_id"/>
  120. </constraint>
  121. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID"
  122. table="catalog_product_entity_int" column="attribute_id" referenceTable="eav_attribute"
  123. referenceColumn="attribute_id" onDelete="CASCADE"/>
  124. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_INT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  125. table="catalog_product_entity_int" column="entity_id" referenceTable="catalog_product_entity"
  126. referenceColumn="entity_id" onDelete="CASCADE"/>
  127. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_ENTITY_INT_STORE_ID_STORE_STORE_ID"
  128. table="catalog_product_entity_int" column="store_id" referenceTable="store"
  129. referenceColumn="store_id" onDelete="CASCADE"/>
  130. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  131. <column name="entity_id"/>
  132. <column name="attribute_id"/>
  133. <column name="store_id"/>
  134. </constraint>
  135. <index referenceId="CATALOG_PRODUCT_ENTITY_INT_ATTRIBUTE_ID" indexType="btree">
  136. <column name="attribute_id"/>
  137. </index>
  138. <index referenceId="CATALOG_PRODUCT_ENTITY_INT_STORE_ID" indexType="btree">
  139. <column name="store_id"/>
  140. </index>
  141. <index referenceId="CATALOG_PRODUCT_ENTITY_INT_ATTRIBUTE_ID_STORE_ID_VALUE" indexType="btree">
  142. <column name="attribute_id"/>
  143. <column name="store_id"/>
  144. <column name="value"/>
  145. </index>
  146. </table>
  147. <table name="catalog_product_entity_text" resource="default" engine="innodb"
  148. comment="Catalog Product Text Attribute Backend Table">
  149. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  150. comment="Value ID"/>
  151. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  152. default="0" comment="Attribute ID"/>
  153. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  154. default="0" comment="Store ID"/>
  155. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  156. default="0" comment="Entity ID"/>
  157. <column xsi:type="mediumtext" name="value" nullable="true" comment="Value"/>
  158. <constraint xsi:type="primary" referenceId="PRIMARY">
  159. <column name="value_id"/>
  160. </constraint>
  161. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID"
  162. table="catalog_product_entity_text" column="attribute_id" referenceTable="eav_attribute"
  163. referenceColumn="attribute_id" onDelete="CASCADE"/>
  164. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_TEXT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  165. table="catalog_product_entity_text" column="entity_id" referenceTable="catalog_product_entity"
  166. referenceColumn="entity_id" onDelete="CASCADE"/>
  167. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID_STORE_STORE_ID"
  168. table="catalog_product_entity_text" column="store_id" referenceTable="store"
  169. referenceColumn="store_id" onDelete="CASCADE"/>
  170. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  171. <column name="entity_id"/>
  172. <column name="attribute_id"/>
  173. <column name="store_id"/>
  174. </constraint>
  175. <index referenceId="CATALOG_PRODUCT_ENTITY_TEXT_ATTRIBUTE_ID" indexType="btree">
  176. <column name="attribute_id"/>
  177. </index>
  178. <index referenceId="CATALOG_PRODUCT_ENTITY_TEXT_STORE_ID" indexType="btree">
  179. <column name="store_id"/>
  180. </index>
  181. </table>
  182. <table name="catalog_product_entity_varchar" resource="default" engine="innodb"
  183. comment="Catalog Product Varchar Attribute Backend Table">
  184. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  185. comment="Value ID"/>
  186. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  187. default="0" comment="Attribute ID"/>
  188. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  189. default="0" comment="Store ID"/>
  190. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  191. default="0" comment="Entity ID"/>
  192. <column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value"/>
  193. <constraint xsi:type="primary" referenceId="PRIMARY">
  194. <column name="value_id"/>
  195. </constraint>
  196. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID"
  197. table="catalog_product_entity_varchar" column="attribute_id" referenceTable="eav_attribute"
  198. referenceColumn="attribute_id" onDelete="CASCADE"/>
  199. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_VCHR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  200. table="catalog_product_entity_varchar" column="entity_id" referenceTable="catalog_product_entity"
  201. referenceColumn="entity_id" onDelete="CASCADE"/>
  202. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID"
  203. table="catalog_product_entity_varchar" column="store_id" referenceTable="store"
  204. referenceColumn="store_id" onDelete="CASCADE"/>
  205. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  206. <column name="entity_id"/>
  207. <column name="attribute_id"/>
  208. <column name="store_id"/>
  209. </constraint>
  210. <index referenceId="CATALOG_PRODUCT_ENTITY_VARCHAR_ATTRIBUTE_ID" indexType="btree">
  211. <column name="attribute_id"/>
  212. </index>
  213. <index referenceId="CATALOG_PRODUCT_ENTITY_VARCHAR_STORE_ID" indexType="btree">
  214. <column name="store_id"/>
  215. </index>
  216. </table>
  217. <table name="catalog_product_entity_gallery" resource="default" engine="innodb"
  218. comment="Catalog Product Gallery Attribute Backend Table">
  219. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  220. comment="Value ID"/>
  221. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  222. default="0" comment="Attribute ID"/>
  223. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  224. default="0" comment="Store ID"/>
  225. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  226. default="0" comment="Entity ID"/>
  227. <column xsi:type="int" name="position" unsigned="false" nullable="false" identity="false"
  228. default="0" comment="Position"/>
  229. <column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value"/>
  230. <constraint xsi:type="primary" referenceId="PRIMARY">
  231. <column name="value_id"/>
  232. </constraint>
  233. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_GLR_ATTR_ID_EAV_ATTR_ATTR_ID"
  234. table="catalog_product_entity_gallery" column="attribute_id" referenceTable="eav_attribute"
  235. referenceColumn="attribute_id" onDelete="CASCADE"/>
  236. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_GLR_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  237. table="catalog_product_entity_gallery" column="entity_id" referenceTable="catalog_product_entity"
  238. referenceColumn="entity_id" onDelete="CASCADE"/>
  239. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID_STORE_STORE_ID"
  240. table="catalog_product_entity_gallery" column="store_id" referenceTable="store"
  241. referenceColumn="store_id" onDelete="CASCADE"/>
  242. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_ENTITY_GALLERY_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  243. <column name="entity_id"/>
  244. <column name="attribute_id"/>
  245. <column name="store_id"/>
  246. </constraint>
  247. <index referenceId="CATALOG_PRODUCT_ENTITY_GALLERY_ENTITY_ID" indexType="btree">
  248. <column name="entity_id"/>
  249. </index>
  250. <index referenceId="CATALOG_PRODUCT_ENTITY_GALLERY_ATTRIBUTE_ID" indexType="btree">
  251. <column name="attribute_id"/>
  252. </index>
  253. <index referenceId="CATALOG_PRODUCT_ENTITY_GALLERY_STORE_ID" indexType="btree">
  254. <column name="store_id"/>
  255. </index>
  256. </table>
  257. <table name="catalog_category_entity" resource="default" engine="innodb" comment="Catalog Category Table">
  258. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true"
  259. comment="Entity ID"/>
  260. <column xsi:type="smallint" name="attribute_set_id" unsigned="true" nullable="false"
  261. identity="false" default="0" comment="Attribute Set ID"/>
  262. <column xsi:type="int" name="parent_id" unsigned="true" nullable="false" identity="false"
  263. default="0" comment="Parent Category ID"/>
  264. <column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  265. comment="Creation Time"/>
  266. <column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
  267. comment="Update Time"/>
  268. <column xsi:type="varchar" name="path" nullable="false" length="255" comment="Tree Path"/>
  269. <column xsi:type="int" name="position" unsigned="false" nullable="false" identity="false"
  270. comment="Position"/>
  271. <column xsi:type="int" name="level" unsigned="false" nullable="false" identity="false" default="0"
  272. comment="Tree Level"/>
  273. <column xsi:type="int" name="children_count" unsigned="false" nullable="false" identity="false"
  274. comment="Child Count"/>
  275. <constraint xsi:type="primary" referenceId="PRIMARY">
  276. <column name="entity_id"/>
  277. </constraint>
  278. <index referenceId="CATALOG_CATEGORY_ENTITY_LEVEL" indexType="btree">
  279. <column name="level"/>
  280. </index>
  281. <index referenceId="CATALOG_CATEGORY_ENTITY_PATH" indexType="btree">
  282. <column name="path"/>
  283. </index>
  284. </table>
  285. <table name="catalog_category_entity_datetime" resource="default" engine="innodb"
  286. comment="Catalog Category Datetime Attribute Backend Table">
  287. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  288. comment="Value ID"/>
  289. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  290. default="0" comment="Attribute ID"/>
  291. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  292. default="0" comment="Store ID"/>
  293. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  294. default="0" comment="Entity ID"/>
  295. <column xsi:type="datetime" name="value" on_update="false" nullable="true" comment="Value"/>
  296. <constraint xsi:type="primary" referenceId="PRIMARY">
  297. <column name="value_id"/>
  298. </constraint>
  299. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_DTIME_ATTR_ID_EAV_ATTR_ATTR_ID"
  300. table="catalog_category_entity_datetime" column="attribute_id" referenceTable="eav_attribute"
  301. referenceColumn="attribute_id" onDelete="CASCADE"/>
  302. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_DTIME_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID"
  303. table="catalog_category_entity_datetime" column="entity_id" referenceTable="catalog_category_entity"
  304. referenceColumn="entity_id" onDelete="CASCADE"/>
  305. <constraint xsi:type="foreign" referenceId="CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID_STORE_STORE_ID"
  306. table="catalog_category_entity_datetime" column="store_id" referenceTable="store"
  307. referenceColumn="store_id" onDelete="CASCADE"/>
  308. <constraint xsi:type="unique" referenceId="CATALOG_CATEGORY_ENTITY_DATETIME_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  309. <column name="entity_id"/>
  310. <column name="attribute_id"/>
  311. <column name="store_id"/>
  312. </constraint>
  313. <index referenceId="CATALOG_CATEGORY_ENTITY_DATETIME_ENTITY_ID" indexType="btree">
  314. <column name="entity_id"/>
  315. </index>
  316. <index referenceId="CATALOG_CATEGORY_ENTITY_DATETIME_ATTRIBUTE_ID" indexType="btree">
  317. <column name="attribute_id"/>
  318. </index>
  319. <index referenceId="CATALOG_CATEGORY_ENTITY_DATETIME_STORE_ID" indexType="btree">
  320. <column name="store_id"/>
  321. </index>
  322. </table>
  323. <table name="catalog_category_entity_decimal" resource="default" engine="innodb"
  324. comment="Catalog Category Decimal Attribute Backend Table">
  325. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  326. comment="Value ID"/>
  327. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  328. default="0" comment="Attribute ID"/>
  329. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  330. default="0" comment="Store ID"/>
  331. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  332. default="0" comment="Entity ID"/>
  333. <column xsi:type="decimal" name="value" scale="6" precision="20" unsigned="false" nullable="true"
  334. comment="Value"/>
  335. <constraint xsi:type="primary" referenceId="PRIMARY">
  336. <column name="value_id"/>
  337. </constraint>
  338. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_DEC_ATTR_ID_EAV_ATTR_ATTR_ID"
  339. table="catalog_category_entity_decimal" column="attribute_id" referenceTable="eav_attribute"
  340. referenceColumn="attribute_id" onDelete="CASCADE"/>
  341. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_DEC_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID"
  342. table="catalog_category_entity_decimal" column="entity_id" referenceTable="catalog_category_entity"
  343. referenceColumn="entity_id" onDelete="CASCADE"/>
  344. <constraint xsi:type="foreign" referenceId="CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID_STORE_STORE_ID"
  345. table="catalog_category_entity_decimal" column="store_id" referenceTable="store"
  346. referenceColumn="store_id" onDelete="CASCADE"/>
  347. <constraint xsi:type="unique" referenceId="CATALOG_CATEGORY_ENTITY_DECIMAL_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  348. <column name="entity_id"/>
  349. <column name="attribute_id"/>
  350. <column name="store_id"/>
  351. </constraint>
  352. <index referenceId="CATALOG_CATEGORY_ENTITY_DECIMAL_ENTITY_ID" indexType="btree">
  353. <column name="entity_id"/>
  354. </index>
  355. <index referenceId="CATALOG_CATEGORY_ENTITY_DECIMAL_ATTRIBUTE_ID" indexType="btree">
  356. <column name="attribute_id"/>
  357. </index>
  358. <index referenceId="CATALOG_CATEGORY_ENTITY_DECIMAL_STORE_ID" indexType="btree">
  359. <column name="store_id"/>
  360. </index>
  361. </table>
  362. <table name="catalog_category_entity_int" resource="default" engine="innodb"
  363. comment="Catalog Category Integer Attribute Backend Table">
  364. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  365. comment="Value ID"/>
  366. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  367. default="0" comment="Attribute ID"/>
  368. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  369. default="0" comment="Store ID"/>
  370. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  371. default="0" comment="Entity ID"/>
  372. <column xsi:type="int" name="value" unsigned="false" nullable="true" identity="false"
  373. comment="Value"/>
  374. <constraint xsi:type="primary" referenceId="PRIMARY">
  375. <column name="value_id"/>
  376. </constraint>
  377. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_INT_ATTR_ID_EAV_ATTR_ATTR_ID"
  378. table="catalog_category_entity_int" column="attribute_id" referenceTable="eav_attribute"
  379. referenceColumn="attribute_id" onDelete="CASCADE"/>
  380. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_INT_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID"
  381. table="catalog_category_entity_int" column="entity_id" referenceTable="catalog_category_entity"
  382. referenceColumn="entity_id" onDelete="CASCADE"/>
  383. <constraint xsi:type="foreign" referenceId="CATALOG_CATEGORY_ENTITY_INT_STORE_ID_STORE_STORE_ID"
  384. table="catalog_category_entity_int" column="store_id" referenceTable="store"
  385. referenceColumn="store_id" onDelete="CASCADE"/>
  386. <constraint xsi:type="unique" referenceId="CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  387. <column name="entity_id"/>
  388. <column name="attribute_id"/>
  389. <column name="store_id"/>
  390. </constraint>
  391. <index referenceId="CATALOG_CATEGORY_ENTITY_INT_ENTITY_ID" indexType="btree">
  392. <column name="entity_id"/>
  393. </index>
  394. <index referenceId="CATALOG_CATEGORY_ENTITY_INT_ATTRIBUTE_ID" indexType="btree">
  395. <column name="attribute_id"/>
  396. </index>
  397. <index referenceId="CATALOG_CATEGORY_ENTITY_INT_STORE_ID" indexType="btree">
  398. <column name="store_id"/>
  399. </index>
  400. </table>
  401. <table name="catalog_category_entity_text" resource="default" engine="innodb"
  402. comment="Catalog Category Text Attribute Backend Table">
  403. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  404. comment="Value ID"/>
  405. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  406. default="0" comment="Attribute ID"/>
  407. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  408. default="0" comment="Store ID"/>
  409. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  410. default="0" comment="Entity ID"/>
  411. <column xsi:type="mediumtext" name="value" nullable="true" comment="Value"/>
  412. <constraint xsi:type="primary" referenceId="PRIMARY">
  413. <column name="value_id"/>
  414. </constraint>
  415. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_TEXT_ATTR_ID_EAV_ATTR_ATTR_ID"
  416. table="catalog_category_entity_text" column="attribute_id" referenceTable="eav_attribute"
  417. referenceColumn="attribute_id" onDelete="CASCADE"/>
  418. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_TEXT_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID"
  419. table="catalog_category_entity_text" column="entity_id" referenceTable="catalog_category_entity"
  420. referenceColumn="entity_id" onDelete="CASCADE"/>
  421. <constraint xsi:type="foreign" referenceId="CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID_STORE_STORE_ID"
  422. table="catalog_category_entity_text" column="store_id" referenceTable="store"
  423. referenceColumn="store_id" onDelete="CASCADE"/>
  424. <constraint xsi:type="unique" referenceId="CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  425. <column name="entity_id"/>
  426. <column name="attribute_id"/>
  427. <column name="store_id"/>
  428. </constraint>
  429. <index referenceId="CATALOG_CATEGORY_ENTITY_TEXT_ENTITY_ID" indexType="btree">
  430. <column name="entity_id"/>
  431. </index>
  432. <index referenceId="CATALOG_CATEGORY_ENTITY_TEXT_ATTRIBUTE_ID" indexType="btree">
  433. <column name="attribute_id"/>
  434. </index>
  435. <index referenceId="CATALOG_CATEGORY_ENTITY_TEXT_STORE_ID" indexType="btree">
  436. <column name="store_id"/>
  437. </index>
  438. </table>
  439. <table name="catalog_category_entity_varchar" resource="default" engine="innodb"
  440. comment="Catalog Category Varchar Attribute Backend Table">
  441. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  442. comment="Value ID"/>
  443. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  444. default="0" comment="Attribute ID"/>
  445. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  446. default="0" comment="Store ID"/>
  447. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  448. default="0" comment="Entity ID"/>
  449. <column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value"/>
  450. <constraint xsi:type="primary" referenceId="PRIMARY">
  451. <column name="value_id"/>
  452. </constraint>
  453. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_VCHR_ATTR_ID_EAV_ATTR_ATTR_ID"
  454. table="catalog_category_entity_varchar" column="attribute_id" referenceTable="eav_attribute"
  455. referenceColumn="attribute_id" onDelete="CASCADE"/>
  456. <constraint xsi:type="foreign" referenceId="CAT_CTGR_ENTT_VCHR_ENTT_ID_CAT_CTGR_ENTT_ENTT_ID"
  457. table="catalog_category_entity_varchar" column="entity_id" referenceTable="catalog_category_entity"
  458. referenceColumn="entity_id" onDelete="CASCADE"/>
  459. <constraint xsi:type="foreign" referenceId="CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID_STORE_STORE_ID"
  460. table="catalog_category_entity_varchar" column="store_id" referenceTable="store"
  461. referenceColumn="store_id" onDelete="CASCADE"/>
  462. <constraint xsi:type="unique" referenceId="CATALOG_CATEGORY_ENTITY_VARCHAR_ENTITY_ID_ATTRIBUTE_ID_STORE_ID">
  463. <column name="entity_id"/>
  464. <column name="attribute_id"/>
  465. <column name="store_id"/>
  466. </constraint>
  467. <index referenceId="CATALOG_CATEGORY_ENTITY_VARCHAR_ENTITY_ID" indexType="btree">
  468. <column name="entity_id"/>
  469. </index>
  470. <index referenceId="CATALOG_CATEGORY_ENTITY_VARCHAR_ATTRIBUTE_ID" indexType="btree">
  471. <column name="attribute_id"/>
  472. </index>
  473. <index referenceId="CATALOG_CATEGORY_ENTITY_VARCHAR_STORE_ID" indexType="btree">
  474. <column name="store_id"/>
  475. </index>
  476. </table>
  477. <table name="catalog_category_product" resource="default" engine="innodb"
  478. comment="Catalog Product To Category Linkage Table">
  479. <column xsi:type="int" name="entity_id" unsigned="false" nullable="false" identity="true"
  480. comment="Entity ID"/>
  481. <column xsi:type="int" name="category_id" unsigned="true" nullable="false" identity="false"
  482. default="0" comment="Category ID"/>
  483. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  484. default="0" comment="Product ID"/>
  485. <column xsi:type="int" name="position" unsigned="false" nullable="false" identity="false"
  486. default="0" comment="Position"/>
  487. <constraint xsi:type="primary" referenceId="PRIMARY">
  488. <column name="entity_id"/>
  489. <column name="category_id"/>
  490. <column name="product_id"/>
  491. </constraint>
  492. <constraint xsi:type="foreign" referenceId="CAT_CTGR_PRD_PRD_ID_CAT_PRD_ENTT_ENTT_ID" table="catalog_category_product"
  493. column="product_id" referenceTable="catalog_product_entity" referenceColumn="entity_id"
  494. onDelete="CASCADE"/>
  495. <constraint xsi:type="foreign" referenceId="CAT_CTGR_PRD_CTGR_ID_CAT_CTGR_ENTT_ENTT_ID"
  496. table="catalog_category_product" column="category_id" referenceTable="catalog_category_entity"
  497. referenceColumn="entity_id" onDelete="CASCADE"/>
  498. <constraint xsi:type="unique" referenceId="CATALOG_CATEGORY_PRODUCT_CATEGORY_ID_PRODUCT_ID">
  499. <column name="category_id"/>
  500. <column name="product_id"/>
  501. </constraint>
  502. <index referenceId="CATALOG_CATEGORY_PRODUCT_PRODUCT_ID" indexType="btree">
  503. <column name="product_id"/>
  504. </index>
  505. </table>
  506. <table name="catalog_category_product_index" resource="default" engine="innodb"
  507. comment="Catalog Category Product Index">
  508. <column xsi:type="int" name="category_id" unsigned="true" nullable="false" identity="false"
  509. default="0" comment="Category ID"/>
  510. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  511. default="0" comment="Product ID"/>
  512. <column xsi:type="int" name="position" unsigned="false" nullable="true" identity="false"
  513. comment="Position"/>
  514. <column xsi:type="smallint" name="is_parent" unsigned="true" nullable="false" identity="false"
  515. default="0" comment="Is Parent"/>
  516. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  517. default="0" comment="Store ID"/>
  518. <column xsi:type="smallint" name="visibility" unsigned="true" nullable="false" identity="false"
  519. comment="Visibility"/>
  520. <constraint xsi:type="primary" referenceId="PRIMARY">
  521. <column name="category_id"/>
  522. <column name="product_id"/>
  523. <column name="store_id"/>
  524. </constraint>
  525. <index referenceId="CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY" indexType="btree">
  526. <column name="product_id"/>
  527. <column name="store_id"/>
  528. <column name="category_id"/>
  529. <column name="visibility"/>
  530. </index>
  531. <index referenceId="CAT_CTGR_PRD_IDX_STORE_ID_CTGR_ID_VISIBILITY_IS_PARENT_POSITION" indexType="btree">
  532. <column name="store_id"/>
  533. <column name="category_id"/>
  534. <column name="visibility"/>
  535. <column name="is_parent"/>
  536. <column name="position"/>
  537. </index>
  538. </table>
  539. <table name="catalog_compare_item" resource="default" engine="innodb" comment="Catalog Compare Table">
  540. <column xsi:type="int" name="catalog_compare_item_id" unsigned="true" nullable="false"
  541. identity="true" comment="Compare Item ID"/>
  542. <column xsi:type="int" name="visitor_id" unsigned="true" nullable="false" identity="false"
  543. default="0" comment="Visitor ID"/>
  544. <column xsi:type="int" name="customer_id" unsigned="true" nullable="true" identity="false"
  545. comment="Customer ID"/>
  546. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  547. default="0" comment="Product ID"/>
  548. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="true" identity="false"
  549. comment="Store ID"/>
  550. <column xsi:type="int" name="list_id" padding="10" unsigned="true" nullable="true" identity="false"
  551. comment="List ID"/>
  552. <constraint xsi:type="primary" referenceId="PRIMARY">
  553. <column name="catalog_compare_item_id"/>
  554. </constraint>
  555. <constraint xsi:type="foreign" referenceId="CATALOG_COMPARE_ITEM_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID"
  556. table="catalog_compare_item" column="customer_id" referenceTable="customer_entity"
  557. referenceColumn="entity_id" onDelete="CASCADE"/>
  558. <constraint xsi:type="foreign" referenceId="CATALOG_COMPARE_ITEM_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID"
  559. table="catalog_compare_item" column="product_id" referenceTable="catalog_product_entity"
  560. referenceColumn="entity_id" onDelete="CASCADE"/>
  561. <constraint xsi:type="foreign" referenceId="CATALOG_COMPARE_ITEM_STORE_ID_STORE_STORE_ID" table="catalog_compare_item"
  562. column="store_id" referenceTable="store" referenceColumn="store_id" onDelete="SET NULL"/>
  563. <constraint xsi:type="foreign" referenceId="CATALOG_COMPARE_ITEM_LIST_ID_CATALOG_COMPARE_LIST_LIST_ID" table="catalog_compare_item"
  564. column="list_id" referenceTable="catalog_compare_list" referenceColumn="list_id" onDelete="CASCADE"/>
  565. <index referenceId="CATALOG_COMPARE_ITEM_PRODUCT_ID" indexType="btree">
  566. <column name="product_id"/>
  567. </index>
  568. <index referenceId="CATALOG_COMPARE_ITEM_VISITOR_ID_PRODUCT_ID" indexType="btree">
  569. <column name="visitor_id"/>
  570. <column name="product_id"/>
  571. </index>
  572. <index referenceId="CATALOG_COMPARE_ITEM_CUSTOMER_ID_PRODUCT_ID" indexType="btree">
  573. <column name="customer_id"/>
  574. <column name="product_id"/>
  575. </index>
  576. <index referenceId="CATALOG_COMPARE_ITEM_STORE_ID" indexType="btree">
  577. <column name="store_id"/>
  578. </index>
  579. </table>
  580. <table name="catalog_compare_list" resource="default" engine="innodb" comment="Catalog Compare List with hash Table">
  581. <column xsi:type="int" name="list_id" padding="10" unsigned="true" nullable="false"
  582. identity="true" comment="Compare List ID"/>
  583. <column xsi:type="varchar" name="list_id_mask" nullable="true" length="32" comment="Masked ID"/>
  584. <column xsi:type="int" name="customer_id" padding="10" unsigned="true" nullable="true" identity="false"
  585. comment="Customer ID"/>
  586. <constraint xsi:type="primary" referenceId="PRIMARY">
  587. <column name="list_id"/>
  588. </constraint>
  589. <constraint xsi:type="unique" referenceId="CATALOG_COMPARE_LIST_CUSTOMER_ID">
  590. <column name="customer_id"/>
  591. </constraint>
  592. <constraint xsi:type="foreign" referenceId="CATALOG_COMPARE_LIST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID"
  593. table="catalog_compare_list" column="customer_id" referenceTable="customer_entity"
  594. referenceColumn="entity_id" onDelete="CASCADE"/>
  595. <index referenceId="CATALOG_COMPARE_LIST_LIST_ID_MASK" indexType="btree">
  596. <column name="list_id_mask"/>
  597. </index>
  598. </table>
  599. <table name="catalog_product_website" resource="default" engine="innodb"
  600. comment="Catalog Product To Website Linkage Table">
  601. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  602. comment="Product ID"/>
  603. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  604. comment="Website ID"/>
  605. <constraint xsi:type="primary" referenceId="PRIMARY">
  606. <column name="product_id"/>
  607. <column name="website_id"/>
  608. </constraint>
  609. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_WEBSITE_WEBSITE_ID_STORE_WEBSITE_WEBSITE_ID"
  610. table="catalog_product_website" column="website_id" referenceTable="store_website"
  611. referenceColumn="website_id" onDelete="CASCADE"/>
  612. <constraint xsi:type="foreign" referenceId="CAT_PRD_WS_PRD_ID_CAT_PRD_ENTT_ENTT_ID" table="catalog_product_website"
  613. column="product_id" referenceTable="catalog_product_entity" referenceColumn="entity_id"
  614. onDelete="CASCADE"/>
  615. <index referenceId="CATALOG_PRODUCT_WEBSITE_WEBSITE_ID" indexType="btree">
  616. <column name="website_id"/>
  617. </index>
  618. </table>
  619. <table name="catalog_product_link_type" resource="default" engine="innodb"
  620. comment="Catalog Product Link Type Table">
  621. <column xsi:type="smallint" name="link_type_id" unsigned="true" nullable="false" identity="true"
  622. comment="Link Type ID"/>
  623. <column xsi:type="varchar" name="code" nullable="true" length="32" comment="Code"/>
  624. <constraint xsi:type="primary" referenceId="PRIMARY">
  625. <column name="link_type_id"/>
  626. </constraint>
  627. </table>
  628. <table name="catalog_product_link" resource="default" engine="innodb"
  629. comment="Catalog Product To Product Linkage Table">
  630. <column xsi:type="int" name="link_id" unsigned="true" nullable="false" identity="true"
  631. comment="Link ID"/>
  632. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  633. default="0" comment="Product ID"/>
  634. <column xsi:type="int" name="linked_product_id" unsigned="true" nullable="false" identity="false"
  635. default="0" comment="Linked Product ID"/>
  636. <column xsi:type="smallint" name="link_type_id" unsigned="true" nullable="false" identity="false"
  637. default="0" comment="Link Type ID"/>
  638. <constraint xsi:type="primary" referenceId="PRIMARY">
  639. <column name="link_id"/>
  640. </constraint>
  641. <constraint xsi:type="foreign" referenceId="CAT_PRD_LNK_LNKED_PRD_ID_CAT_PRD_ENTT_ENTT_ID" table="catalog_product_link"
  642. column="linked_product_id" referenceTable="catalog_product_entity" referenceColumn="entity_id"
  643. onDelete="CASCADE"/>
  644. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_LINK_PRODUCT_ID_CATALOG_PRODUCT_ENTITY_ENTITY_ID"
  645. table="catalog_product_link" column="product_id" referenceTable="catalog_product_entity"
  646. referenceColumn="entity_id" onDelete="CASCADE"/>
  647. <constraint xsi:type="foreign" referenceId="CAT_PRD_LNK_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID"
  648. table="catalog_product_link" column="link_type_id" referenceTable="catalog_product_link_type"
  649. referenceColumn="link_type_id" onDelete="CASCADE"/>
  650. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_LINK_LINK_TYPE_ID_PRODUCT_ID_LINKED_PRODUCT_ID">
  651. <column name="link_type_id"/>
  652. <column name="product_id"/>
  653. <column name="linked_product_id"/>
  654. </constraint>
  655. <index referenceId="CATALOG_PRODUCT_LINK_PRODUCT_ID" indexType="btree">
  656. <column name="product_id"/>
  657. </index>
  658. <index referenceId="CATALOG_PRODUCT_LINK_LINKED_PRODUCT_ID" indexType="btree">
  659. <column name="linked_product_id"/>
  660. </index>
  661. </table>
  662. <table name="catalog_product_link_attribute" resource="default" engine="innodb"
  663. comment="Catalog Product Link Attribute Table">
  664. <column xsi:type="smallint" name="product_link_attribute_id" unsigned="true" nullable="false"
  665. identity="true" comment="Product Link Attribute ID"/>
  666. <column xsi:type="smallint" name="link_type_id" unsigned="true" nullable="false" identity="false"
  667. default="0" comment="Link Type ID"/>
  668. <column xsi:type="varchar" name="product_link_attribute_code" nullable="true" length="32"
  669. comment="Product Link Attribute Code"/>
  670. <column xsi:type="varchar" name="data_type" nullable="true" length="32" comment="Data Type"/>
  671. <constraint xsi:type="primary" referenceId="PRIMARY">
  672. <column name="product_link_attribute_id"/>
  673. </constraint>
  674. <constraint xsi:type="foreign" referenceId="CAT_PRD_LNK_ATTR_LNK_TYPE_ID_CAT_PRD_LNK_TYPE_LNK_TYPE_ID"
  675. table="catalog_product_link_attribute" column="link_type_id"
  676. referenceTable="catalog_product_link_type" referenceColumn="link_type_id" onDelete="CASCADE"/>
  677. <index referenceId="CATALOG_PRODUCT_LINK_ATTRIBUTE_LINK_TYPE_ID" indexType="btree">
  678. <column name="link_type_id"/>
  679. </index>
  680. </table>
  681. <table name="catalog_product_link_attribute_decimal" resource="default" engine="innodb"
  682. comment="Catalog Product Link Decimal Attribute Table">
  683. <column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
  684. comment="Value ID"/>
  685. <column xsi:type="smallint" name="product_link_attribute_id" unsigned="true" nullable="true"
  686. identity="false" comment="Product Link Attribute ID"/>
  687. <column xsi:type="int" name="link_id" unsigned="true" nullable="false" identity="false"
  688. comment="Link ID"/>
  689. <column xsi:type="decimal" name="value" scale="6" precision="20" unsigned="false" nullable="false" default="0"
  690. comment="Value"/>
  691. <constraint xsi:type="primary" referenceId="PRIMARY">
  692. <column name="value_id"/>
  693. </constraint>
  694. <constraint xsi:type="foreign" referenceId="CAT_PRD_LNK_ATTR_DEC_LNK_ID_CAT_PRD_LNK_LNK_ID"
  695. table="catalog_product_link_attribute_decimal" column="link_id"
  696. referenceTable="catalog_product_link" referenceColumn="link_id" onDelete="CASCADE"/>
  697. <constraint xsi:type="foreign" referenceId="FK_AB2EFA9A14F7BCF1D5400056203D14B6"
  698. table="catalog_product_link_attribute_decimal" column="product_link_attribute_id"
  699. referenceTable="catalog_product_link_attribute" referenceColumn="product_link_attribute_id"
  700. onDelete="CASCADE"/>
  701. <constraint xsi:type="unique" referenceId="CAT_PRD_LNK_ATTR_DEC_PRD_LNK_ATTR_ID_LNK_ID">
  702. <column name="product_link_attribute_id"/>
  703. <column name="link_id"/>
  704. </constraint>
  705. <index referenceId="CATALOG_PRODUCT_LINK_ATTRIBUTE_DECIMAL_LINK_ID" indexType="btree">
  706. <column name="link_id"/>
  707. </index>
  708. </table>
  709. <table name="catalog_product_link_attribute_int" resource="default" engine="innodb"
  710. comment="Catalog Product Link Integer Attribute Table">
  711. <column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
  712. comment="Value ID"/>
  713. <column xsi:type="smallint" name="product_link_attribute_id" unsigned="true" nullable="true"
  714. identity="false" comment="Product Link Attribute ID"/>
  715. <column xsi:type="int" name="link_id" unsigned="true" nullable="false" identity="false"
  716. comment="Link ID"/>
  717. <column xsi:type="int" name="value" unsigned="false" nullable="false" identity="false" default="0"
  718. comment="Value"/>
  719. <constraint xsi:type="primary" referenceId="PRIMARY">
  720. <column name="value_id"/>
  721. </constraint>
  722. <constraint xsi:type="foreign" referenceId="CAT_PRD_LNK_ATTR_INT_LNK_ID_CAT_PRD_LNK_LNK_ID"
  723. table="catalog_product_link_attribute_int" column="link_id" referenceTable="catalog_product_link"
  724. referenceColumn="link_id" onDelete="CASCADE"/>
  725. <constraint xsi:type="foreign" referenceId="FK_D6D878F8BA2A4282F8DDED7E6E3DE35C"
  726. table="catalog_product_link_attribute_int" column="product_link_attribute_id"
  727. referenceTable="catalog_product_link_attribute" referenceColumn="product_link_attribute_id"
  728. onDelete="CASCADE"/>
  729. <constraint xsi:type="unique" referenceId="CAT_PRD_LNK_ATTR_INT_PRD_LNK_ATTR_ID_LNK_ID">
  730. <column name="product_link_attribute_id"/>
  731. <column name="link_id"/>
  732. </constraint>
  733. <index referenceId="CATALOG_PRODUCT_LINK_ATTRIBUTE_INT_LINK_ID" indexType="btree">
  734. <column name="link_id"/>
  735. </index>
  736. </table>
  737. <table name="catalog_product_link_attribute_varchar" resource="default" engine="innodb"
  738. comment="Catalog Product Link Varchar Attribute Table">
  739. <column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
  740. comment="Value ID"/>
  741. <column xsi:type="smallint" name="product_link_attribute_id" unsigned="true" nullable="false"
  742. identity="false" default="0" comment="Product Link Attribute ID"/>
  743. <column xsi:type="int" name="link_id" unsigned="true" nullable="false" identity="false"
  744. comment="Link ID"/>
  745. <column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value"/>
  746. <constraint xsi:type="primary" referenceId="PRIMARY">
  747. <column name="value_id"/>
  748. </constraint>
  749. <constraint xsi:type="foreign" referenceId="CAT_PRD_LNK_ATTR_VCHR_LNK_ID_CAT_PRD_LNK_LNK_ID"
  750. table="catalog_product_link_attribute_varchar" column="link_id"
  751. referenceTable="catalog_product_link" referenceColumn="link_id" onDelete="CASCADE"/>
  752. <constraint xsi:type="foreign" referenceId="FK_DEE9C4DA61CFCC01DFCF50F0D79CEA51"
  753. table="catalog_product_link_attribute_varchar" column="product_link_attribute_id"
  754. referenceTable="catalog_product_link_attribute" referenceColumn="product_link_attribute_id"
  755. onDelete="CASCADE"/>
  756. <constraint xsi:type="unique" referenceId="CAT_PRD_LNK_ATTR_VCHR_PRD_LNK_ATTR_ID_LNK_ID">
  757. <column name="product_link_attribute_id"/>
  758. <column name="link_id"/>
  759. </constraint>
  760. <index referenceId="CATALOG_PRODUCT_LINK_ATTRIBUTE_VARCHAR_LINK_ID" indexType="btree">
  761. <column name="link_id"/>
  762. </index>
  763. </table>
  764. <table name="catalog_product_entity_tier_price" resource="default" engine="innodb"
  765. comment="Catalog Product Tier Price Attribute Backend Table">
  766. <column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
  767. comment="Value ID"/>
  768. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  769. default="0" comment="Entity ID"/>
  770. <column xsi:type="smallint" name="all_groups" unsigned="true" nullable="false" identity="false"
  771. default="1" comment="Is Applicable To All Customer Groups"/>
  772. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  773. default="0" comment="Customer Group ID"/>
  774. <column xsi:type="decimal" name="qty" scale="4" precision="12" unsigned="false" nullable="false" default="1"
  775. comment="QTY"/>
  776. <column xsi:type="decimal" name="value" scale="6" precision="20" unsigned="false" nullable="false" default="0"
  777. comment="Value"/>
  778. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  779. comment="Website ID"/>
  780. <column xsi:type="decimal" name="percentage_value" scale="2" precision="5" unsigned="false" nullable="true"
  781. comment="Percentage value"/>
  782. <constraint xsi:type="primary" referenceId="PRIMARY">
  783. <column name="value_id"/>
  784. </constraint>
  785. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_TIER_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID"
  786. table="catalog_product_entity_tier_price" column="customer_group_id" referenceTable="customer_group"
  787. referenceColumn="customer_group_id" onDelete="CASCADE"/>
  788. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  789. table="catalog_product_entity_tier_price" column="entity_id" referenceTable="catalog_product_entity"
  790. referenceColumn="entity_id" onDelete="CASCADE"/>
  791. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_TIER_PRICE_WS_ID_STORE_WS_WS_ID"
  792. table="catalog_product_entity_tier_price" column="website_id" referenceTable="store_website"
  793. referenceColumn="website_id" onDelete="CASCADE"/>
  794. <constraint xsi:type="unique" referenceId="UNQ_E8AB433B9ACB00343ABB312AD2FAB087">
  795. <column name="entity_id"/>
  796. <column name="all_groups"/>
  797. <column name="customer_group_id"/>
  798. <column name="qty"/>
  799. <column name="website_id"/>
  800. </constraint>
  801. <index referenceId="CATALOG_PRODUCT_ENTITY_TIER_PRICE_CUSTOMER_GROUP_ID" indexType="btree">
  802. <column name="customer_group_id"/>
  803. </index>
  804. <index referenceId="CATALOG_PRODUCT_ENTITY_TIER_PRICE_WEBSITE_ID" indexType="btree">
  805. <column name="website_id"/>
  806. </index>
  807. </table>
  808. <table name="catalog_product_entity_media_gallery" resource="default" engine="innodb"
  809. comment="Catalog Product Media Gallery Attribute Backend Table">
  810. <column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
  811. comment="Value ID"/>
  812. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  813. default="0" comment="Attribute ID"/>
  814. <column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value"/>
  815. <column xsi:type="varchar" name="media_type" nullable="false" length="32" default="image"
  816. comment="Media entry type"/>
  817. <column xsi:type="smallint" name="disabled" unsigned="true" nullable="false" identity="false"
  818. default="0" comment="Visibility status"/>
  819. <constraint xsi:type="primary" referenceId="PRIMARY">
  820. <column name="value_id"/>
  821. </constraint>
  822. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_MDA_GLR_ATTR_ID_EAV_ATTR_ATTR_ID"
  823. table="catalog_product_entity_media_gallery" column="attribute_id" referenceTable="eav_attribute"
  824. referenceColumn="attribute_id" onDelete="CASCADE"/>
  825. <index referenceId="CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_ATTRIBUTE_ID" indexType="btree">
  826. <column name="attribute_id"/>
  827. </index>
  828. </table>
  829. <table name="catalog_product_entity_media_gallery_value" resource="default" engine="innodb"
  830. comment="Catalog Product Media Gallery Attribute Value Table">
  831. <column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="false"
  832. default="0" comment="Value ID"/>
  833. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  834. default="0" comment="Store ID"/>
  835. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  836. default="0" comment="Entity ID"/>
  837. <column xsi:type="varchar" name="label" nullable="true" length="255" comment="Label"/>
  838. <column xsi:type="int" name="position" unsigned="true" nullable="true" identity="false"
  839. comment="Position"/>
  840. <column xsi:type="smallint" name="disabled" unsigned="true" nullable="false" identity="false"
  841. default="0" comment="Is Disabled"/>
  842. <column xsi:type="int" name="record_id" unsigned="true" nullable="false" identity="true"
  843. comment="Record ID"/>
  844. <constraint xsi:type="primary" referenceId="PRIMARY">
  845. <column name="record_id"/>
  846. </constraint>
  847. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_MDA_GLR_VAL_VAL_ID_CAT_PRD_ENTT_MDA_GLR_VAL_ID"
  848. table="catalog_product_entity_media_gallery_value" column="value_id"
  849. referenceTable="catalog_product_entity_media_gallery" referenceColumn="value_id"
  850. onDelete="CASCADE"/>
  851. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_MDA_GLR_VAL_STORE_ID_STORE_STORE_ID"
  852. table="catalog_product_entity_media_gallery_value" column="store_id" referenceTable="store"
  853. referenceColumn="store_id" onDelete="CASCADE"/>
  854. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_MDA_GLR_VAL_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  855. table="catalog_product_entity_media_gallery_value" column="entity_id"
  856. referenceTable="catalog_product_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
  857. <index referenceId="CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_STORE_ID" indexType="btree">
  858. <column name="store_id"/>
  859. </index>
  860. <index referenceId="CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_ENTITY_ID" indexType="btree">
  861. <column name="entity_id"/>
  862. </index>
  863. <index referenceId="CATALOG_PRODUCT_ENTITY_MEDIA_GALLERY_VALUE_VALUE_ID" indexType="btree">
  864. <column name="value_id"/>
  865. </index>
  866. <index referenceId="CAT_PRD_ENTT_MDA_GLR_VAL_ENTT_ID_VAL_ID_STORE_ID" indexType="btree">
  867. <column name="entity_id"/>
  868. <column name="value_id"/>
  869. <column name="store_id"/>
  870. </index>
  871. </table>
  872. <table name="catalog_product_option" resource="default" engine="innodb" comment="Catalog Product Option Table">
  873. <column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="true"
  874. comment="Option ID"/>
  875. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  876. default="0" comment="Product ID"/>
  877. <column xsi:type="varchar" name="type" nullable="true" length="50" comment="Type"/>
  878. <column xsi:type="smallint" name="is_require" unsigned="false" nullable="false" identity="false"
  879. default="1" comment="Is Required"/>
  880. <column xsi:type="varchar" name="sku" nullable="true" length="64" comment="SKU"/>
  881. <column xsi:type="int" name="max_characters" unsigned="true" nullable="true" identity="false"
  882. comment="Max Characters"/>
  883. <column xsi:type="varchar" name="file_extension" nullable="true" length="50" comment="File Extension"/>
  884. <column xsi:type="smallint" name="image_size_x" unsigned="true" nullable="true" identity="false"
  885. comment="Image Size X"/>
  886. <column xsi:type="smallint" name="image_size_y" unsigned="true" nullable="true" identity="false"
  887. comment="Image Size Y"/>
  888. <column xsi:type="int" name="sort_order" unsigned="true" nullable="false" identity="false"
  889. default="0" comment="Sort Order"/>
  890. <constraint xsi:type="primary" referenceId="PRIMARY">
  891. <column name="option_id"/>
  892. </constraint>
  893. <constraint xsi:type="foreign" referenceId="CAT_PRD_OPT_PRD_ID_CAT_PRD_ENTT_ENTT_ID" table="catalog_product_option"
  894. column="product_id" referenceTable="catalog_product_entity" referenceColumn="entity_id"
  895. onDelete="CASCADE"/>
  896. <index referenceId="CATALOG_PRODUCT_OPTION_PRODUCT_ID" indexType="btree">
  897. <column name="product_id"/>
  898. </index>
  899. </table>
  900. <table name="catalog_product_option_price" resource="default" engine="innodb"
  901. comment="Catalog Product Option Price Table">
  902. <column xsi:type="int" name="option_price_id" unsigned="true" nullable="false" identity="true"
  903. comment="Option Price ID"/>
  904. <column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
  905. default="0" comment="Option ID"/>
  906. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  907. default="0" comment="Store ID"/>
  908. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="false" default="0"
  909. comment="Price"/>
  910. <column xsi:type="varchar" name="price_type" nullable="false" length="7" default="fixed" comment="Price Type"/>
  911. <constraint xsi:type="primary" referenceId="PRIMARY">
  912. <column name="option_price_id"/>
  913. </constraint>
  914. <constraint xsi:type="foreign" referenceId="CAT_PRD_OPT_PRICE_OPT_ID_CAT_PRD_OPT_OPT_ID"
  915. table="catalog_product_option_price" column="option_id" referenceTable="catalog_product_option"
  916. referenceColumn="option_id" onDelete="CASCADE"/>
  917. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_OPTION_PRICE_STORE_ID_STORE_STORE_ID"
  918. table="catalog_product_option_price" column="store_id" referenceTable="store"
  919. referenceColumn="store_id" onDelete="CASCADE"/>
  920. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_OPTION_PRICE_OPTION_ID_STORE_ID">
  921. <column name="option_id"/>
  922. <column name="store_id"/>
  923. </constraint>
  924. <index referenceId="CATALOG_PRODUCT_OPTION_PRICE_STORE_ID" indexType="btree">
  925. <column name="store_id"/>
  926. </index>
  927. </table>
  928. <table name="catalog_product_option_title" resource="default" engine="innodb"
  929. comment="Catalog Product Option Title Table">
  930. <column xsi:type="int" name="option_title_id" unsigned="true" nullable="false" identity="true"
  931. comment="Option Title ID"/>
  932. <column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
  933. default="0" comment="Option ID"/>
  934. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  935. default="0" comment="Store ID"/>
  936. <column xsi:type="varchar" name="title" nullable="true" length="255" comment="Title"/>
  937. <constraint xsi:type="primary" referenceId="PRIMARY">
  938. <column name="option_title_id"/>
  939. </constraint>
  940. <constraint xsi:type="foreign" referenceId="CAT_PRD_OPT_TTL_OPT_ID_CAT_PRD_OPT_OPT_ID"
  941. table="catalog_product_option_title" column="option_id" referenceTable="catalog_product_option"
  942. referenceColumn="option_id" onDelete="CASCADE"/>
  943. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_OPTION_TITLE_STORE_ID_STORE_STORE_ID"
  944. table="catalog_product_option_title" column="store_id" referenceTable="store"
  945. referenceColumn="store_id" onDelete="CASCADE"/>
  946. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_OPTION_TITLE_OPTION_ID_STORE_ID">
  947. <column name="option_id"/>
  948. <column name="store_id"/>
  949. </constraint>
  950. <index referenceId="CATALOG_PRODUCT_OPTION_TITLE_STORE_ID" indexType="btree">
  951. <column name="store_id"/>
  952. </index>
  953. </table>
  954. <table name="catalog_product_option_type_value" resource="default" engine="innodb"
  955. comment="Catalog Product Option Type Value Table">
  956. <column xsi:type="int" name="option_type_id" unsigned="true" nullable="false" identity="true"
  957. comment="Option Type ID"/>
  958. <column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
  959. default="0" comment="Option ID"/>
  960. <column xsi:type="varchar" name="sku" nullable="true" length="64" comment="SKU"/>
  961. <column xsi:type="int" name="sort_order" unsigned="true" nullable="false" identity="false"
  962. default="0" comment="Sort Order"/>
  963. <constraint xsi:type="primary" referenceId="PRIMARY">
  964. <column name="option_type_id"/>
  965. </constraint>
  966. <constraint xsi:type="foreign" referenceId="CAT_PRD_OPT_TYPE_VAL_OPT_ID_CAT_PRD_OPT_OPT_ID"
  967. table="catalog_product_option_type_value" column="option_id" referenceTable="catalog_product_option"
  968. referenceColumn="option_id" onDelete="CASCADE"/>
  969. <index referenceId="CATALOG_PRODUCT_OPTION_TYPE_VALUE_OPTION_ID" indexType="btree">
  970. <column name="option_id"/>
  971. </index>
  972. </table>
  973. <table name="catalog_product_option_type_price" resource="default" engine="innodb"
  974. comment="Catalog Product Option Type Price Table">
  975. <column xsi:type="int" name="option_type_price_id" unsigned="true" nullable="false" identity="true"
  976. comment="Option Type Price ID"/>
  977. <column xsi:type="int" name="option_type_id" unsigned="true" nullable="false" identity="false"
  978. default="0" comment="Option Type ID"/>
  979. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  980. default="0" comment="Store ID"/>
  981. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="false" default="0"
  982. comment="Price"/>
  983. <column xsi:type="varchar" name="price_type" nullable="false" length="7" default="fixed" comment="Price Type"/>
  984. <constraint xsi:type="primary" referenceId="PRIMARY">
  985. <column name="option_type_price_id"/>
  986. </constraint>
  987. <constraint xsi:type="foreign" referenceId="FK_B523E3378E8602F376CC415825576B7F"
  988. table="catalog_product_option_type_price" column="option_type_id"
  989. referenceTable="catalog_product_option_type_value" referenceColumn="option_type_id"
  990. onDelete="CASCADE"/>
  991. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID_STORE_STORE_ID"
  992. table="catalog_product_option_type_price" column="store_id" referenceTable="store"
  993. referenceColumn="store_id" onDelete="CASCADE"/>
  994. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_OPTION_TYPE_PRICE_OPTION_TYPE_ID_STORE_ID">
  995. <column name="option_type_id"/>
  996. <column name="store_id"/>
  997. </constraint>
  998. <index referenceId="CATALOG_PRODUCT_OPTION_TYPE_PRICE_STORE_ID" indexType="btree">
  999. <column name="store_id"/>
  1000. </index>
  1001. </table>
  1002. <table name="catalog_product_option_type_title" resource="default" engine="innodb"
  1003. comment="Catalog Product Option Type Title Table">
  1004. <column xsi:type="int" name="option_type_title_id" unsigned="true" nullable="false" identity="true"
  1005. comment="Option Type Title ID"/>
  1006. <column xsi:type="int" name="option_type_id" unsigned="true" nullable="false" identity="false"
  1007. default="0" comment="Option Type ID"/>
  1008. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1009. default="0" comment="Store ID"/>
  1010. <column xsi:type="varchar" name="title" nullable="true" length="255" comment="Title"/>
  1011. <constraint xsi:type="primary" referenceId="PRIMARY">
  1012. <column name="option_type_title_id"/>
  1013. </constraint>
  1014. <constraint xsi:type="foreign" referenceId="FK_C085B9CF2C2A302E8043FDEA1937D6A2"
  1015. table="catalog_product_option_type_title" column="option_type_id"
  1016. referenceTable="catalog_product_option_type_value" referenceColumn="option_type_id"
  1017. onDelete="CASCADE"/>
  1018. <constraint xsi:type="foreign" referenceId="CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID_STORE_STORE_ID"
  1019. table="catalog_product_option_type_title" column="store_id" referenceTable="store"
  1020. referenceColumn="store_id" onDelete="CASCADE"/>
  1021. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_OPTION_TYPE_TITLE_OPTION_TYPE_ID_STORE_ID">
  1022. <column name="option_type_id"/>
  1023. <column name="store_id"/>
  1024. </constraint>
  1025. <index referenceId="CATALOG_PRODUCT_OPTION_TYPE_TITLE_STORE_ID" indexType="btree">
  1026. <column name="store_id"/>
  1027. </index>
  1028. </table>
  1029. <table name="catalog_eav_attribute" resource="default" engine="innodb" comment="Catalog EAV Attribute Table">
  1030. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1031. comment="Attribute ID"/>
  1032. <column xsi:type="varchar" name="frontend_input_renderer" nullable="true" length="255"
  1033. comment="Frontend Input Renderer"/>
  1034. <column xsi:type="smallint" name="is_global" unsigned="true" nullable="false" identity="false"
  1035. default="1" comment="Is Global"/>
  1036. <column xsi:type="smallint" name="is_visible" unsigned="true" nullable="false" identity="false"
  1037. default="1" comment="Is Visible"/>
  1038. <column xsi:type="smallint" name="is_searchable" unsigned="true" nullable="false" identity="false"
  1039. default="0" comment="Is Searchable"/>
  1040. <column xsi:type="smallint" name="is_filterable" unsigned="true" nullable="false" identity="false"
  1041. default="0" comment="Is Filterable"/>
  1042. <column xsi:type="smallint" name="is_comparable" unsigned="true" nullable="false" identity="false"
  1043. default="0" comment="Is Comparable"/>
  1044. <column xsi:type="smallint" name="is_visible_on_front" unsigned="true" nullable="false"
  1045. identity="false" default="0" comment="Is Visible On Front"/>
  1046. <column xsi:type="smallint" name="is_html_allowed_on_front" unsigned="true" nullable="false"
  1047. identity="false" default="0" comment="Is HTML Allowed On Front"/>
  1048. <column xsi:type="smallint" name="is_used_for_price_rules" unsigned="true" nullable="false"
  1049. identity="false" default="0" comment="Is Used For Price Rules"/>
  1050. <column xsi:type="smallint" name="is_filterable_in_search" unsigned="true" nullable="false"
  1051. identity="false" default="0" comment="Is Filterable In Search"/>
  1052. <column xsi:type="smallint" name="used_in_product_listing" unsigned="true" nullable="false"
  1053. identity="false" default="0" comment="Is Used In Product Listing"/>
  1054. <column xsi:type="smallint" name="used_for_sort_by" unsigned="true" nullable="false"
  1055. identity="false" default="0" comment="Is Used For Sorting"/>
  1056. <column xsi:type="varchar" name="apply_to" nullable="true" length="255" comment="Apply To"/>
  1057. <column xsi:type="smallint" name="is_visible_in_advanced_search" unsigned="true" nullable="false"
  1058. identity="false" default="0" comment="Is Visible In Advanced Search"/>
  1059. <column xsi:type="int" name="position" unsigned="false" nullable="false" identity="false"
  1060. default="0" comment="Position"/>
  1061. <column xsi:type="smallint" name="is_wysiwyg_enabled" unsigned="true" nullable="false"
  1062. identity="false" default="0" comment="Is WYSIWYG Enabled"/>
  1063. <column xsi:type="smallint" name="is_used_for_promo_rules" unsigned="true" nullable="false"
  1064. identity="false" default="0" comment="Is Used For Promo Rules"/>
  1065. <column xsi:type="smallint" name="is_required_in_admin_store" unsigned="true" nullable="false"
  1066. identity="false" default="0" comment="Is Required In Admin Store"/>
  1067. <column xsi:type="smallint" name="is_used_in_grid" unsigned="true" nullable="false" identity="false"
  1068. default="0" comment="Is Used in Grid"/>
  1069. <column xsi:type="smallint" name="is_visible_in_grid" unsigned="true" nullable="false"
  1070. identity="false" default="0" comment="Is Visible in Grid"/>
  1071. <column xsi:type="smallint" name="is_filterable_in_grid" unsigned="true" nullable="false"
  1072. identity="false" default="0" comment="Is Filterable in Grid"/>
  1073. <constraint xsi:type="primary" referenceId="PRIMARY">
  1074. <column name="attribute_id"/>
  1075. </constraint>
  1076. <constraint xsi:type="foreign" referenceId="CATALOG_EAV_ATTRIBUTE_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID"
  1077. table="catalog_eav_attribute" column="attribute_id" referenceTable="eav_attribute"
  1078. referenceColumn="attribute_id" onDelete="CASCADE"/>
  1079. <index referenceId="CATALOG_EAV_ATTRIBUTE_USED_FOR_SORT_BY" indexType="btree">
  1080. <column name="used_for_sort_by"/>
  1081. </index>
  1082. <index referenceId="CATALOG_EAV_ATTRIBUTE_USED_IN_PRODUCT_LISTING" indexType="btree">
  1083. <column name="used_in_product_listing"/>
  1084. </index>
  1085. </table>
  1086. <table name="catalog_product_relation" resource="default" engine="innodb" comment="Catalog Product Relation Table">
  1087. <column xsi:type="int" name="parent_id" unsigned="true" nullable="false" identity="false"
  1088. comment="Parent ID"/>
  1089. <column xsi:type="int" name="child_id" unsigned="true" nullable="false" identity="false"
  1090. comment="Child ID"/>
  1091. <constraint xsi:type="primary" referenceId="PRIMARY">
  1092. <column name="parent_id"/>
  1093. <column name="child_id"/>
  1094. </constraint>
  1095. <constraint xsi:type="foreign" referenceId="CAT_PRD_RELATION_CHILD_ID_CAT_PRD_ENTT_ENTT_ID"
  1096. table="catalog_product_relation" column="child_id" referenceTable="catalog_product_entity"
  1097. referenceColumn="entity_id" onDelete="CASCADE"/>
  1098. <constraint xsi:type="foreign" referenceId="CAT_PRD_RELATION_PARENT_ID_CAT_PRD_ENTT_ENTT_ID"
  1099. table="catalog_product_relation" column="parent_id" referenceTable="catalog_product_entity"
  1100. referenceColumn="entity_id" onDelete="CASCADE"/>
  1101. <index referenceId="CATALOG_PRODUCT_RELATION_CHILD_ID" indexType="btree">
  1102. <column name="child_id"/>
  1103. </index>
  1104. </table>
  1105. <table name="catalog_product_index_eav" resource="default" engine="innodb"
  1106. comment="Catalog Product EAV Index Table">
  1107. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1108. comment="Entity ID"/>
  1109. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1110. comment="Attribute ID"/>
  1111. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1112. comment="Store ID"/>
  1113. <column xsi:type="int" name="value" unsigned="true" nullable="false" identity="false"
  1114. comment="Value"/>
  1115. <column xsi:type="int" name="source_id" unsigned="true" nullable="false" identity="false"
  1116. default="0" comment="Original entity ID for attribute value"/>
  1117. <constraint xsi:type="primary" referenceId="CAT_PRD_IDX_EAV_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID">
  1118. <column name="entity_id"/>
  1119. <column name="attribute_id"/>
  1120. <column name="store_id"/>
  1121. <column name="value"/>
  1122. <column name="source_id"/>
  1123. </constraint>
  1124. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID" indexType="btree">
  1125. <column name="attribute_id"/>
  1126. </index>
  1127. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_STORE_ID" indexType="btree">
  1128. <column name="store_id"/>
  1129. </index>
  1130. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_VALUE" indexType="btree">
  1131. <column name="value"/>
  1132. </index>
  1133. </table>
  1134. <table name="catalog_product_index_eav_decimal" resource="default" engine="innodb"
  1135. comment="Catalog Product EAV Decimal Index Table">
  1136. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1137. comment="Entity ID"/>
  1138. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1139. comment="Attribute ID"/>
  1140. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1141. comment="Store ID"/>
  1142. <column xsi:type="decimal" name="value" scale="4" precision="12" unsigned="false" nullable="false"
  1143. comment="Value"/>
  1144. <column xsi:type="int" name="source_id" unsigned="true" nullable="false" identity="false"
  1145. default="0" comment="Original entity ID for attribute value"/>
  1146. <constraint xsi:type="primary" referenceId="CAT_PRD_IDX_EAV_DEC_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID">
  1147. <column name="entity_id"/>
  1148. <column name="attribute_id"/>
  1149. <column name="store_id"/>
  1150. <column name="value"/>
  1151. <column name="source_id"/>
  1152. </constraint>
  1153. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID" indexType="btree">
  1154. <column name="attribute_id"/>
  1155. </index>
  1156. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID" indexType="btree">
  1157. <column name="store_id"/>
  1158. </index>
  1159. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE" indexType="btree">
  1160. <column name="value"/>
  1161. </index>
  1162. </table>
  1163. <table name="catalog_product_index_price" resource="default" engine="innodb"
  1164. comment="Catalog Product Price Index Table">
  1165. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1166. comment="Entity ID"/>
  1167. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1168. comment="Customer Group ID"/>
  1169. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1170. comment="Website ID"/>
  1171. <column xsi:type="smallint" name="tax_class_id" unsigned="true" nullable="true" identity="false"
  1172. default="0" comment="Tax Class ID"/>
  1173. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
  1174. comment="Price"/>
  1175. <column xsi:type="decimal" name="final_price" scale="6" precision="20" unsigned="false" nullable="true"
  1176. comment="Final Price"/>
  1177. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1178. comment="Min Price"/>
  1179. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1180. comment="Max Price"/>
  1181. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1182. comment="Tier Price"/>
  1183. <constraint xsi:type="primary" referenceId="PRIMARY">
  1184. <column name="entity_id"/>
  1185. <column name="customer_group_id"/>
  1186. <column name="website_id"/>
  1187. </constraint>
  1188. <index referenceId="CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID" indexType="btree">
  1189. <column name="customer_group_id"/>
  1190. </index>
  1191. <index referenceId="CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE" indexType="btree">
  1192. <column name="min_price"/>
  1193. </index>
  1194. <index referenceId="CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE" indexType="btree">
  1195. <column name="website_id"/>
  1196. <column name="customer_group_id"/>
  1197. <column name="min_price"/>
  1198. </index>
  1199. </table>
  1200. <table name="catalog_product_index_tier_price" resource="default" engine="innodb"
  1201. comment="Catalog Product Tier Price Index Table">
  1202. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1203. comment="Entity ID"/>
  1204. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1205. comment="Customer Group ID"/>
  1206. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1207. comment="Website ID"/>
  1208. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1209. comment="Min Price"/>
  1210. <constraint xsi:type="primary" referenceId="PRIMARY">
  1211. <column name="entity_id"/>
  1212. <column name="customer_group_id"/>
  1213. <column name="website_id"/>
  1214. </constraint>
  1215. <constraint xsi:type="foreign" referenceId="CAT_PRD_IDX_TIER_PRICE_CSTR_GROUP_ID_CSTR_GROUP_CSTR_GROUP_ID"
  1216. table="catalog_product_index_tier_price" column="customer_group_id" referenceTable="customer_group"
  1217. referenceColumn="customer_group_id" onDelete="CASCADE"/>
  1218. <constraint xsi:type="foreign" referenceId="CAT_PRD_IDX_TIER_PRICE_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  1219. table="catalog_product_index_tier_price" column="entity_id" referenceTable="catalog_product_entity"
  1220. referenceColumn="entity_id" onDelete="CASCADE"/>
  1221. <constraint xsi:type="foreign" referenceId="CAT_PRD_IDX_TIER_PRICE_WS_ID_STORE_WS_WS_ID"
  1222. table="catalog_product_index_tier_price" column="website_id" referenceTable="store_website"
  1223. referenceColumn="website_id" onDelete="CASCADE"/>
  1224. <index referenceId="CATALOG_PRODUCT_INDEX_TIER_PRICE_CUSTOMER_GROUP_ID" indexType="btree">
  1225. <column name="customer_group_id"/>
  1226. </index>
  1227. <index referenceId="CATALOG_PRODUCT_INDEX_TIER_PRICE_WEBSITE_ID" indexType="btree">
  1228. <column name="website_id"/>
  1229. </index>
  1230. </table>
  1231. <table name="catalog_product_index_website" resource="default" engine="innodb"
  1232. comment="Catalog Product Website Index Table">
  1233. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1234. comment="Website ID"/>
  1235. <column xsi:type="smallint" name="default_store_id" unsigned="true" nullable="false" identity="false"
  1236. comment="Default store ID for website"/>
  1237. <column xsi:type="date" name="website_date" comment="Website Date"/>
  1238. <column xsi:type="float" name="rate" unsigned="false" nullable="true" default="1" comment="Rate"/>
  1239. <constraint xsi:type="primary" referenceId="PRIMARY">
  1240. <column name="website_id"/>
  1241. </constraint>
  1242. <constraint xsi:type="foreign" referenceId="CAT_PRD_IDX_WS_WS_ID_STORE_WS_WS_ID" table="catalog_product_index_website"
  1243. column="website_id" referenceTable="store_website" referenceColumn="website_id" onDelete="CASCADE"/>
  1244. <index referenceId="CATALOG_PRODUCT_INDEX_WEBSITE_WEBSITE_DATE" indexType="btree">
  1245. <column name="website_date"/>
  1246. </index>
  1247. </table>
  1248. <table name="catalog_product_index_price_cfg_opt_agr_idx" resource="default" engine="innodb"
  1249. comment="Catalog Product Price Indexer Config Option Aggregate Index Table">
  1250. <column xsi:type="int" name="parent_id" unsigned="true" nullable="false" identity="false"
  1251. comment="Parent ID"/>
  1252. <column xsi:type="int" name="child_id" unsigned="true" nullable="false" identity="false"
  1253. comment="Child ID"/>
  1254. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1255. default="0" comment="Customer Group ID"/>
  1256. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1257. comment="Website ID"/>
  1258. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
  1259. comment="Price"/>
  1260. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1261. comment="Tier Price"/>
  1262. <constraint xsi:type="primary" referenceId="PRIMARY">
  1263. <column name="parent_id"/>
  1264. <column name="child_id"/>
  1265. <column name="customer_group_id"/>
  1266. <column name="website_id"/>
  1267. </constraint>
  1268. </table>
  1269. <table name="catalog_product_index_price_cfg_opt_agr_tmp" resource="default" engine="innodb"
  1270. comment="Catalog Product Price Indexer Config Option Aggregate Temp Table">
  1271. <column xsi:type="int" name="parent_id" unsigned="true" nullable="false" identity="false"
  1272. comment="Parent ID"/>
  1273. <column xsi:type="int" name="child_id" unsigned="true" nullable="false" identity="false"
  1274. comment="Child ID"/>
  1275. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1276. default="0" comment="Customer Group ID"/>
  1277. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1278. comment="Website ID"/>
  1279. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
  1280. comment="Price"/>
  1281. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1282. comment="Tier Price"/>
  1283. <constraint xsi:type="primary" referenceId="PRIMARY">
  1284. <column name="parent_id"/>
  1285. <column name="child_id"/>
  1286. <column name="customer_group_id"/>
  1287. <column name="website_id"/>
  1288. </constraint>
  1289. </table>
  1290. <table name="catalog_product_index_price_cfg_opt_idx" resource="default" engine="innodb"
  1291. comment="Catalog Product Price Indexer Config Option Index Table">
  1292. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1293. comment="Entity ID"/>
  1294. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1295. default="0" comment="Customer Group ID"/>
  1296. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1297. comment="Website ID"/>
  1298. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1299. comment="Min Price"/>
  1300. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1301. comment="Max Price"/>
  1302. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1303. comment="Tier Price"/>
  1304. <constraint xsi:type="primary" referenceId="PRIMARY">
  1305. <column name="entity_id"/>
  1306. <column name="customer_group_id"/>
  1307. <column name="website_id"/>
  1308. </constraint>
  1309. </table>
  1310. <table name="catalog_product_index_price_cfg_opt_tmp" resource="default" engine="innodb"
  1311. comment="Catalog Product Price Indexer Config Option Temp Table">
  1312. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1313. comment="Entity ID"/>
  1314. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1315. default="0" comment="Customer Group ID"/>
  1316. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1317. comment="Website ID"/>
  1318. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1319. comment="Min Price"/>
  1320. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1321. comment="Max Price"/>
  1322. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1323. comment="Tier Price"/>
  1324. <constraint xsi:type="primary" referenceId="PRIMARY">
  1325. <column name="entity_id"/>
  1326. <column name="customer_group_id"/>
  1327. <column name="website_id"/>
  1328. </constraint>
  1329. </table>
  1330. <table name="catalog_product_index_price_final_idx" resource="default" engine="innodb"
  1331. comment="Catalog Product Price Indexer Final Index Table">
  1332. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1333. comment="Entity ID"/>
  1334. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1335. default="0" comment="Customer Group ID"/>
  1336. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1337. comment="Website ID"/>
  1338. <column xsi:type="smallint" name="tax_class_id" unsigned="true" nullable="true" identity="false"
  1339. default="0" comment="Tax Class ID"/>
  1340. <column xsi:type="decimal" name="orig_price" scale="6" precision="20" unsigned="false" nullable="true"
  1341. comment="Original Price"/>
  1342. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
  1343. comment="Price"/>
  1344. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1345. comment="Min Price"/>
  1346. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1347. comment="Max Price"/>
  1348. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1349. comment="Tier Price"/>
  1350. <column xsi:type="decimal" name="base_tier" scale="6" precision="20" unsigned="false" nullable="true"
  1351. comment="Base Tier"/>
  1352. <constraint xsi:type="primary" referenceId="PRIMARY">
  1353. <column name="entity_id"/>
  1354. <column name="customer_group_id"/>
  1355. <column name="website_id"/>
  1356. </constraint>
  1357. </table>
  1358. <table name="catalog_product_index_price_final_tmp" resource="default" engine="innodb"
  1359. comment="Catalog Product Price Indexer Final Temp Table">
  1360. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1361. comment="Entity ID"/>
  1362. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1363. default="0" comment="Customer Group ID"/>
  1364. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1365. comment="Website ID"/>
  1366. <column xsi:type="smallint" name="tax_class_id" unsigned="true" nullable="true" identity="false"
  1367. default="0" comment="Tax Class ID"/>
  1368. <column xsi:type="decimal" name="orig_price" scale="6" precision="20" unsigned="false" nullable="true"
  1369. comment="Original Price"/>
  1370. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
  1371. comment="Price"/>
  1372. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1373. comment="Min Price"/>
  1374. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1375. comment="Max Price"/>
  1376. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1377. comment="Tier Price"/>
  1378. <column xsi:type="decimal" name="base_tier" scale="6" precision="20" unsigned="false" nullable="true"
  1379. comment="Base Tier"/>
  1380. <constraint xsi:type="primary" referenceId="PRIMARY">
  1381. <column name="entity_id"/>
  1382. <column name="customer_group_id"/>
  1383. <column name="website_id"/>
  1384. </constraint>
  1385. </table>
  1386. <table name="catalog_product_index_price_opt_idx" resource="default" engine="innodb"
  1387. comment="Catalog Product Price Indexer Option Index Table">
  1388. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1389. comment="Entity ID"/>
  1390. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1391. default="0" comment="Customer Group ID"/>
  1392. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1393. comment="Website ID"/>
  1394. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1395. comment="Min Price"/>
  1396. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1397. comment="Max Price"/>
  1398. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1399. comment="Tier Price"/>
  1400. <constraint xsi:type="primary" referenceId="PRIMARY">
  1401. <column name="entity_id"/>
  1402. <column name="customer_group_id"/>
  1403. <column name="website_id"/>
  1404. </constraint>
  1405. </table>
  1406. <table name="catalog_product_index_price_opt_tmp" resource="default" engine="innodb"
  1407. comment="Catalog Product Price Indexer Option Temp Table">
  1408. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1409. comment="Entity ID"/>
  1410. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1411. default="0" comment="Customer Group ID"/>
  1412. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1413. comment="Website ID"/>
  1414. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1415. comment="Min Price"/>
  1416. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1417. comment="Max Price"/>
  1418. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1419. comment="Tier Price"/>
  1420. <constraint xsi:type="primary" referenceId="PRIMARY">
  1421. <column name="entity_id"/>
  1422. <column name="customer_group_id"/>
  1423. <column name="website_id"/>
  1424. </constraint>
  1425. </table>
  1426. <table name="catalog_product_index_price_opt_agr_idx" resource="default" engine="innodb"
  1427. comment="Catalog Product Price Indexer Option Aggregate Index Table">
  1428. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1429. comment="Entity ID"/>
  1430. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1431. default="0" comment="Customer Group ID"/>
  1432. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1433. comment="Website ID"/>
  1434. <column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
  1435. default="0" comment="Option ID"/>
  1436. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1437. comment="Min Price"/>
  1438. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1439. comment="Max Price"/>
  1440. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1441. comment="Tier Price"/>
  1442. <constraint xsi:type="primary" referenceId="PRIMARY">
  1443. <column name="entity_id"/>
  1444. <column name="customer_group_id"/>
  1445. <column name="website_id"/>
  1446. <column name="option_id"/>
  1447. </constraint>
  1448. </table>
  1449. <table name="catalog_product_index_price_opt_agr_tmp" resource="default" engine="innodb"
  1450. comment="Catalog Product Price Indexer Option Aggregate Temp Table">
  1451. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1452. comment="Entity ID"/>
  1453. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1454. default="0" comment="Customer Group ID"/>
  1455. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1456. comment="Website ID"/>
  1457. <column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
  1458. default="0" comment="Option ID"/>
  1459. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1460. comment="Min Price"/>
  1461. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1462. comment="Max Price"/>
  1463. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1464. comment="Tier Price"/>
  1465. <constraint xsi:type="primary" referenceId="PRIMARY">
  1466. <column name="entity_id"/>
  1467. <column name="customer_group_id"/>
  1468. <column name="website_id"/>
  1469. <column name="option_id"/>
  1470. </constraint>
  1471. </table>
  1472. <table name="catalog_product_index_eav_idx" resource="default" engine="innodb"
  1473. comment="Catalog Product EAV Indexer Index Table">
  1474. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1475. comment="Entity ID"/>
  1476. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1477. comment="Attribute ID"/>
  1478. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1479. comment="Store ID"/>
  1480. <column xsi:type="int" name="value" unsigned="true" nullable="false" identity="false"
  1481. comment="Value"/>
  1482. <column xsi:type="int" name="source_id" unsigned="true" nullable="false" identity="false"
  1483. default="0" comment="Original entity ID for attribute value"/>
  1484. <constraint xsi:type="primary" referenceId="CAT_PRD_IDX_EAV_IDX_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID">
  1485. <column name="entity_id"/>
  1486. <column name="attribute_id"/>
  1487. <column name="store_id"/>
  1488. <column name="value"/>
  1489. <column name="source_id"/>
  1490. </constraint>
  1491. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_IDX_ATTRIBUTE_ID" indexType="btree">
  1492. <column name="attribute_id"/>
  1493. </index>
  1494. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_IDX_STORE_ID" indexType="btree">
  1495. <column name="store_id"/>
  1496. </index>
  1497. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_IDX_VALUE" indexType="btree">
  1498. <column name="value"/>
  1499. </index>
  1500. </table>
  1501. <table name="catalog_product_index_eav_tmp" resource="default" engine="innodb"
  1502. comment="Catalog Product EAV Indexer Temp Table">
  1503. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1504. comment="Entity ID"/>
  1505. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1506. comment="Attribute ID"/>
  1507. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1508. comment="Store ID"/>
  1509. <column xsi:type="int" name="value" unsigned="true" nullable="false" identity="false"
  1510. comment="Value"/>
  1511. <column xsi:type="int" name="source_id" unsigned="true" nullable="false" identity="false"
  1512. default="0" comment="Original entity ID for attribute value"/>
  1513. <constraint xsi:type="primary" referenceId="CAT_PRD_IDX_EAV_TMP_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID">
  1514. <column name="entity_id"/>
  1515. <column name="attribute_id"/>
  1516. <column name="store_id"/>
  1517. <column name="value"/>
  1518. <column name="source_id"/>
  1519. </constraint>
  1520. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_TMP_ATTRIBUTE_ID" indexType="btree">
  1521. <column name="attribute_id"/>
  1522. </index>
  1523. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_TMP_STORE_ID" indexType="btree">
  1524. <column name="store_id"/>
  1525. </index>
  1526. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_TMP_VALUE" indexType="btree">
  1527. <column name="value"/>
  1528. </index>
  1529. </table>
  1530. <table name="catalog_product_index_eav_decimal_idx" resource="default" engine="innodb"
  1531. comment="Catalog Product EAV Decimal Indexer Index Table">
  1532. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1533. comment="Entity ID"/>
  1534. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1535. comment="Attribute ID"/>
  1536. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1537. comment="Store ID"/>
  1538. <column xsi:type="decimal" name="value" scale="4" precision="12" unsigned="false" nullable="false"
  1539. comment="Value"/>
  1540. <column xsi:type="int" name="source_id" unsigned="true" nullable="false" identity="false"
  1541. default="0" comment="Original entity ID for attribute value"/>
  1542. <constraint xsi:type="primary" referenceId="CAT_PRD_IDX_EAV_DEC_IDX_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID">
  1543. <column name="entity_id"/>
  1544. <column name="attribute_id"/>
  1545. <column name="store_id"/>
  1546. <column name="value"/>
  1547. <column name="source_id"/>
  1548. </constraint>
  1549. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_ATTRIBUTE_ID" indexType="btree">
  1550. <column name="attribute_id"/>
  1551. </index>
  1552. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_STORE_ID" indexType="btree">
  1553. <column name="store_id"/>
  1554. </index>
  1555. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_IDX_VALUE" indexType="btree">
  1556. <column name="value"/>
  1557. </index>
  1558. </table>
  1559. <table name="catalog_product_index_eav_decimal_tmp" resource="default" engine="innodb"
  1560. comment="Catalog Product EAV Decimal Indexer Temp Table">
  1561. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1562. comment="Entity ID"/>
  1563. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1564. comment="Attribute ID"/>
  1565. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1566. comment="Store ID"/>
  1567. <column xsi:type="decimal" name="value" scale="4" precision="12" unsigned="false" nullable="false"
  1568. comment="Value"/>
  1569. <column xsi:type="int" name="source_id" unsigned="true" nullable="false" identity="false"
  1570. default="0" comment="Original entity ID for attribute value"/>
  1571. <constraint xsi:type="primary" referenceId="CAT_PRD_IDX_EAV_DEC_TMP_ENTT_ID_ATTR_ID_STORE_ID_VAL_SOURCE_ID">
  1572. <column name="entity_id"/>
  1573. <column name="attribute_id"/>
  1574. <column name="store_id"/>
  1575. <column name="value"/>
  1576. <column name="source_id"/>
  1577. </constraint>
  1578. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_ATTRIBUTE_ID" indexType="btree">
  1579. <column name="attribute_id"/>
  1580. </index>
  1581. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_STORE_ID" indexType="btree">
  1582. <column name="store_id"/>
  1583. </index>
  1584. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_TMP_VALUE" indexType="btree">
  1585. <column name="value"/>
  1586. </index>
  1587. </table>
  1588. <table name="catalog_product_index_price_idx" resource="default" engine="innodb"
  1589. comment="Catalog Product Price Indexer Index Table">
  1590. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1591. comment="Entity ID"/>
  1592. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1593. default="0" comment="Customer Group ID"/>
  1594. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1595. comment="Website ID"/>
  1596. <column xsi:type="smallint" name="tax_class_id" unsigned="true" nullable="true" identity="false"
  1597. default="0" comment="Tax Class ID"/>
  1598. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
  1599. comment="Price"/>
  1600. <column xsi:type="decimal" name="final_price" scale="6" precision="20" unsigned="false" nullable="true"
  1601. comment="Final Price"/>
  1602. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1603. comment="Min Price"/>
  1604. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1605. comment="Max Price"/>
  1606. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1607. comment="Tier Price"/>
  1608. <constraint xsi:type="primary" referenceId="PRIMARY">
  1609. <column name="entity_id"/>
  1610. <column name="customer_group_id"/>
  1611. <column name="website_id"/>
  1612. </constraint>
  1613. <index referenceId="CATALOG_PRODUCT_INDEX_PRICE_IDX_CUSTOMER_GROUP_ID" indexType="btree">
  1614. <column name="customer_group_id"/>
  1615. </index>
  1616. <index referenceId="CATALOG_PRODUCT_INDEX_PRICE_IDX_WEBSITE_ID" indexType="btree">
  1617. <column name="website_id"/>
  1618. </index>
  1619. <index referenceId="CATALOG_PRODUCT_INDEX_PRICE_IDX_MIN_PRICE" indexType="btree">
  1620. <column name="min_price"/>
  1621. </index>
  1622. </table>
  1623. <table name="catalog_product_index_price_tmp" resource="default" engine="innodb"
  1624. comment="Catalog Product Price Indexer Temp Table">
  1625. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1626. comment="Product ID"/>
  1627. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1628. default="0" comment="Customer Group ID"/>
  1629. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1630. comment="Website ID"/>
  1631. <column xsi:type="smallint" name="tax_class_id" unsigned="true" nullable="true" identity="false"
  1632. default="0" comment="Tax Class ID"/>
  1633. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
  1634. comment="Price"/>
  1635. <column xsi:type="decimal" name="final_price" scale="6" precision="20" unsigned="false" nullable="true"
  1636. comment="Final Price"/>
  1637. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1638. comment="Min Price"/>
  1639. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1640. comment="Max Price"/>
  1641. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1642. comment="Tier Price"/>
  1643. <column xsi:type="int" name="id" unsigned="true" nullable="false" identity="true"
  1644. comment="ID"/>
  1645. <constraint xsi:type="primary" referenceId="PRIMARY">
  1646. <column name="id"/>
  1647. </constraint>
  1648. </table>
  1649. <table name="catalog_category_product_index_tmp" resource="default" engine="innodb"
  1650. comment="Catalog Category Product Indexer temporary table">
  1651. <column xsi:type="int" name="category_id" unsigned="true" nullable="false" identity="false"
  1652. default="0" comment="Category ID"/>
  1653. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  1654. default="0" comment="Product ID"/>
  1655. <column xsi:type="int" name="position" unsigned="false" nullable="false" identity="false"
  1656. default="0" comment="Position"/>
  1657. <column xsi:type="smallint" name="is_parent" unsigned="true" nullable="false" identity="false"
  1658. default="0" comment="Is Parent"/>
  1659. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1660. default="0" comment="Store ID"/>
  1661. <column xsi:type="smallint" name="visibility" unsigned="true" nullable="false" identity="false"
  1662. comment="Visibility"/>
  1663. <constraint xsi:type="primary" referenceId="PRIMARY">
  1664. <column name="category_id"/>
  1665. <column name="product_id"/>
  1666. <column name="store_id"/>
  1667. </constraint>
  1668. <index referenceId="CAT_CTGR_PRD_IDX_TMP_PRD_ID_CTGR_ID_STORE_ID" indexType="btree">
  1669. <column name="product_id"/>
  1670. <column name="category_id"/>
  1671. <column name="store_id"/>
  1672. </index>
  1673. </table>
  1674. <table name="catalog_product_entity_media_gallery_value_to_entity" resource="default" engine="innodb"
  1675. comment="Link Media value to Product entity table">
  1676. <column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="false"
  1677. comment="Value media Entry ID"/>
  1678. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1679. comment="Product Entity ID"/>
  1680. <constraint xsi:type="foreign" referenceId="FK_A6C6C8FAA386736921D3A7C4B50B1185"
  1681. table="catalog_product_entity_media_gallery_value_to_entity" column="value_id"
  1682. referenceTable="catalog_product_entity_media_gallery" referenceColumn="value_id"
  1683. onDelete="CASCADE"/>
  1684. <constraint xsi:type="foreign" referenceId="CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_ENTT_ID_CAT_PRD_ENTT_ENTT_ID"
  1685. table="catalog_product_entity_media_gallery_value_to_entity" column="entity_id"
  1686. referenceTable="catalog_product_entity" referenceColumn="entity_id" onDelete="CASCADE"/>
  1687. <constraint xsi:type="primary" referenceId="CAT_PRD_ENTT_MDA_GLR_VAL_TO_ENTT_VAL_ID_ENTT_ID">
  1688. <column name="value_id"/>
  1689. <column name="entity_id"/>
  1690. </constraint>
  1691. </table>
  1692. <table name="catalog_product_index_eav_replica" resource="default" engine="innodb"
  1693. comment="Catalog Product EAV Index Table">
  1694. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1695. comment="Entity ID"/>
  1696. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1697. comment="Attribute ID"/>
  1698. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1699. comment="Store ID"/>
  1700. <column xsi:type="int" name="value" unsigned="true" nullable="false" identity="false"
  1701. comment="Value"/>
  1702. <column xsi:type="int" name="source_id" unsigned="true" nullable="false" identity="false"
  1703. default="0" comment="Original entity ID for attribute value"/>
  1704. <constraint xsi:type="primary" referenceId="PRIMARY">
  1705. <column name="entity_id"/>
  1706. <column name="attribute_id"/>
  1707. <column name="store_id"/>
  1708. <column name="value"/>
  1709. <column name="source_id"/>
  1710. </constraint>
  1711. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_ATTRIBUTE_ID" indexType="btree">
  1712. <column name="attribute_id"/>
  1713. </index>
  1714. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_STORE_ID" indexType="btree">
  1715. <column name="store_id"/>
  1716. </index>
  1717. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_VALUE" indexType="btree">
  1718. <column name="value"/>
  1719. </index>
  1720. </table>
  1721. <table name="catalog_product_index_eav_decimal_replica" resource="default" engine="innodb"
  1722. comment="Catalog Product EAV Decimal Index Table">
  1723. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1724. comment="Entity ID"/>
  1725. <column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
  1726. comment="Attribute ID"/>
  1727. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1728. comment="Store ID"/>
  1729. <column xsi:type="decimal" name="value" scale="4" precision="12" unsigned="false" nullable="false"
  1730. comment="Value"/>
  1731. <column xsi:type="int" name="source_id" unsigned="true" nullable="false" identity="false"
  1732. default="0" comment="Original entity ID for attribute value"/>
  1733. <constraint xsi:type="primary" referenceId="PRIMARY">
  1734. <column name="entity_id"/>
  1735. <column name="attribute_id"/>
  1736. <column name="store_id"/>
  1737. <column name="value"/>
  1738. <column name="source_id"/>
  1739. </constraint>
  1740. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_ATTRIBUTE_ID" indexType="btree">
  1741. <column name="attribute_id"/>
  1742. </index>
  1743. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_STORE_ID" indexType="btree">
  1744. <column name="store_id"/>
  1745. </index>
  1746. <index referenceId="CATALOG_PRODUCT_INDEX_EAV_DECIMAL_VALUE" indexType="btree">
  1747. <column name="value"/>
  1748. </index>
  1749. </table>
  1750. <table name="catalog_product_index_price_replica" resource="default" engine="innodb"
  1751. comment="Catalog Product Price Index Table">
  1752. <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
  1753. comment="Entity ID"/>
  1754. <column xsi:type="int" name="customer_group_id" unsigned="true" nullable="false" identity="false"
  1755. comment="Customer Group ID"/>
  1756. <column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
  1757. comment="Website ID"/>
  1758. <column xsi:type="smallint" name="tax_class_id" unsigned="true" nullable="true" identity="false"
  1759. default="0" comment="Tax Class ID"/>
  1760. <column xsi:type="decimal" name="price" scale="6" precision="20" unsigned="false" nullable="true"
  1761. comment="Price"/>
  1762. <column xsi:type="decimal" name="final_price" scale="6" precision="20" unsigned="false" nullable="true"
  1763. comment="Final Price"/>
  1764. <column xsi:type="decimal" name="min_price" scale="6" precision="20" unsigned="false" nullable="true"
  1765. comment="Min Price"/>
  1766. <column xsi:type="decimal" name="max_price" scale="6" precision="20" unsigned="false" nullable="true"
  1767. comment="Max Price"/>
  1768. <column xsi:type="decimal" name="tier_price" scale="6" precision="20" unsigned="false" nullable="true"
  1769. comment="Tier Price"/>
  1770. <constraint xsi:type="primary" referenceId="PRIMARY">
  1771. <column name="entity_id"/>
  1772. <column name="customer_group_id"/>
  1773. <column name="website_id"/>
  1774. </constraint>
  1775. <index referenceId="CATALOG_PRODUCT_INDEX_PRICE_CUSTOMER_GROUP_ID" indexType="btree">
  1776. <column name="customer_group_id"/>
  1777. </index>
  1778. <index referenceId="CATALOG_PRODUCT_INDEX_PRICE_MIN_PRICE" indexType="btree">
  1779. <column name="min_price"/>
  1780. </index>
  1781. <index referenceId="CAT_PRD_IDX_PRICE_WS_ID_CSTR_GROUP_ID_MIN_PRICE" indexType="btree">
  1782. <column name="website_id"/>
  1783. <column name="customer_group_id"/>
  1784. <column name="min_price"/>
  1785. </index>
  1786. </table>
  1787. <table name="catalog_category_product_index_replica" resource="default" engine="innodb"
  1788. comment="Catalog Category Product Index">
  1789. <column xsi:type="int" name="category_id" unsigned="true" nullable="false" identity="false"
  1790. default="0" comment="Category ID"/>
  1791. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  1792. default="0" comment="Product ID"/>
  1793. <column xsi:type="int" name="position" unsigned="false" nullable="true" identity="false"
  1794. comment="Position"/>
  1795. <column xsi:type="smallint" name="is_parent" unsigned="true" nullable="false" identity="false"
  1796. default="0" comment="Is Parent"/>
  1797. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  1798. default="0" comment="Store ID"/>
  1799. <column xsi:type="smallint" name="visibility" unsigned="true" nullable="false" identity="false"
  1800. comment="Visibility"/>
  1801. <constraint xsi:type="primary" referenceId="PRIMARY">
  1802. <column name="category_id"/>
  1803. <column name="product_id"/>
  1804. <column name="store_id"/>
  1805. </constraint>
  1806. <index referenceId="CAT_CTGR_PRD_IDX_PRD_ID_STORE_ID_CTGR_ID_VISIBILITY" indexType="btree">
  1807. <column name="product_id"/>
  1808. <column name="store_id"/>
  1809. <column name="category_id"/>
  1810. <column name="visibility"/>
  1811. </index>
  1812. <index referenceId="CAT_CTGR_PRD_IDX_STORE_ID_CTGR_ID_VISIBILITY_IS_PARENT_POSITION" indexType="btree">
  1813. <column name="store_id"/>
  1814. <column name="category_id"/>
  1815. <column name="visibility"/>
  1816. <column name="is_parent"/>
  1817. <column name="position"/>
  1818. </index>
  1819. </table>
  1820. <table name="catalog_product_frontend_action" resource="default" engine="innodb"
  1821. comment="Catalog Product Frontend Action Table">
  1822. <column xsi:type="bigint" name="action_id" unsigned="true" nullable="false" identity="true"
  1823. comment="Product Action ID"/>
  1824. <column xsi:type="varchar" name="type_id" nullable="false" length="64" comment="Type of product action"/>
  1825. <column xsi:type="int" name="visitor_id" unsigned="true" nullable="true" identity="false"
  1826. comment="Visitor ID"/>
  1827. <column xsi:type="int" name="customer_id" unsigned="true" nullable="true" identity="false"
  1828. comment="Customer ID"/>
  1829. <column xsi:type="int" name="product_id" unsigned="true" nullable="false" identity="false"
  1830. comment="Product ID"/>
  1831. <column xsi:type="bigint" name="added_at" unsigned="false" nullable="false" identity="false"
  1832. comment="Added At"/>
  1833. <constraint xsi:type="primary" referenceId="PRIMARY">
  1834. <column name="action_id"/>
  1835. </constraint>
  1836. <constraint xsi:type="foreign" referenceId="CAT_PRD_FRONTEND_ACTION_CSTR_ID_CSTR_ENTT_ENTT_ID"
  1837. table="catalog_product_frontend_action" column="customer_id" referenceTable="customer_entity"
  1838. referenceColumn="entity_id" onDelete="CASCADE"/>
  1839. <constraint xsi:type="foreign" referenceId="CAT_PRD_FRONTEND_ACTION_PRD_ID_CAT_PRD_ENTT_ENTT_ID"
  1840. table="catalog_product_frontend_action" column="product_id" referenceTable="catalog_product_entity"
  1841. referenceColumn="entity_id" onDelete="CASCADE" />
  1842. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_FRONTEND_ACTION_VISITOR_ID_PRODUCT_ID_TYPE_ID">
  1843. <column name="visitor_id"/>
  1844. <column name="product_id"/>
  1845. <column name="type_id"/>
  1846. </constraint>
  1847. <constraint xsi:type="unique" referenceId="CATALOG_PRODUCT_FRONTEND_ACTION_CUSTOMER_ID_PRODUCT_ID_TYPE_ID">
  1848. <column name="customer_id"/>
  1849. <column name="product_id"/>
  1850. <column name="type_id"/>
  1851. </constraint>
  1852. </table>
  1853. </schema>