liquibase-changeLog.xml 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?xml version="1.1" encoding="UTF-8" standalone="no"?>
  2. <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
  3. <changeSet author="dsm (generated)" id="1710759291530-1">
  4. <createTable tableName="admin_user">
  5. <column name="username" type="VARCHAR(100)">
  6. <constraints nullable="false" unique="true"/>
  7. </column>
  8. <column name="password" type="VARCHAR(100)">
  9. <constraints nullable="false"/>
  10. </column>
  11. <column name="created_time" type="timestamp"/>
  12. </createTable>
  13. </changeSet>
  14. <changeSet author="dsm (generated)" id="1710759291530-2">
  15. <createTable tableName="blog">
  16. <column name="blog_id" type="VARCHAR(50)">
  17. <constraints nullable="false" primaryKey="true"/>
  18. </column>
  19. <column name="user_id" type="VARCHAR(50)">
  20. <constraints nullable="false"/>
  21. </column>
  22. <column name="created_time" type="timestamp"/>
  23. <column name="last_update_time" type="timestamp"/>
  24. <column name="title" type="VARCHAR(200)"/>
  25. <column name="head_image_url" type="VARCHAR(500)"/>
  26. <column name="language" type="VARCHAR(50)"/>
  27. <column name="content" type="LONGTEXT"/>
  28. <column defaultValue="0" name="draft" type="BIT(1)"/>
  29. </createTable>
  30. </changeSet>
  31. <changeSet author="dsm (generated)" id="1710759291530-3">
  32. <createTable tableName="comment">
  33. <column name="comment_id" type="VARCHAR(50)">
  34. <constraints nullable="false" primaryKey="true"/>
  35. </column>
  36. <column name="user_id" type="VARCHAR(50)">
  37. <constraints nullable="false"/>
  38. </column>
  39. <column name="blog_id" type="VARCHAR(50)">
  40. <constraints nullable="false"/>
  41. </column>
  42. <column name="created_time" type="timestamp"/>
  43. <column name="respond_to" type="VARCHAR(50)"/>
  44. <column name="comment_content" type="TEXT"/>
  45. </createTable>
  46. </changeSet>
  47. <changeSet author="dsm (generated)" id="1710759291530-4">
  48. <createTable tableName="destination">
  49. <column name="destination_id" type="VARCHAR(50)">
  50. <constraints nullable="false" primaryKey="true"/>
  51. </column>
  52. <column name="destination_name" type="VARCHAR(500)"/>
  53. <column name="level" type="VARCHAR(50)">
  54. <constraints nullable="false"/>
  55. </column>
  56. <column name="parent_id" type="VARCHAR(50)"/>
  57. <column name="description" type="TEXT"/>
  58. <column name="created_date" type="timestamp"/>
  59. <column name="destination_profile_image" type="VARCHAR(500)"/>
  60. </createTable>
  61. </changeSet>
  62. <changeSet author="dsm (generated)" id="1710759291530-5">
  63. <createTable tableName="guidebook">
  64. <column name="guide_id" type="VARCHAR(50)">
  65. <constraints nullable="false" primaryKey="true"/>
  66. </column>
  67. <column name="download_url" type="VARCHAR(500)"/>
  68. <column name="cover_image_url" type="VARCHAR(500)"/>
  69. <column name="short_description" type="VARCHAR(300)"/>
  70. <column name="destination_id" type="VARCHAR(50)">
  71. <constraints nullable="false"/>
  72. </column>
  73. <column name="created_date" type="timestamp"/>
  74. </createTable>
  75. </changeSet>
  76. <changeSet author="dsm (generated)" id="1710759291530-6">
  77. <createTable tableName="hichina_line">
  78. <column autoIncrement="true" name="id" type="BIGINT">
  79. <constraints nullable="false" primaryKey="true"/>
  80. </column>
  81. <column name="public_id" type="VARCHAR(50)">
  82. <constraints nullable="false"/>
  83. </column>
  84. <column name="name" type="VARCHAR(300)">
  85. <constraints nullable="false"/>
  86. </column>
  87. <column name="created_date" type="timestamp"/>
  88. <column name="icon_path" type="VARCHAR(300)"/>
  89. <column name="range_in_days" type="INT"/>
  90. <column name="base_price" type="FLOAT(12)"/>
  91. <column name="description" type="TEXT"/>
  92. </createTable>
  93. </changeSet>
  94. <changeSet author="dsm (generated)" id="1710759291530-7">
  95. <createTable tableName="hichina_product">
  96. <column name="sku_id" type="VARCHAR(50)">
  97. <constraints nullable="false" primaryKey="true"/>
  98. </column>
  99. <column name="sku_group_id" type="VARCHAR(50)">
  100. <constraints nullable="false"/>
  101. </column>
  102. <column name="product_type_id" type="VARCHAR(50)">
  103. <constraints nullable="false"/>
  104. </column>
  105. <column name="product_name" type="VARCHAR(500)"/>
  106. <column name="product_content" type="TEXT"/>
  107. <column name="created_time" type="timestamp"/>
  108. <column name="created_by" type="VARCHAR(100)"/>
  109. </createTable>
  110. </changeSet>
  111. <changeSet author="dsm (generated)" id="1710759291530-8">
  112. <createTable tableName="hichina_product_type">
  113. <column name="product_type_id" type="VARCHAR(50)">
  114. <constraints nullable="false" primaryKey="true"/>
  115. </column>
  116. <column name="product_type_name" type="VARCHAR(50)">
  117. <constraints nullable="false" unique="true"/>
  118. </column>
  119. <column name="product_type_description" type="VARCHAR(100)"/>
  120. </createTable>
  121. </changeSet>
  122. <changeSet author="dsm (generated)" id="1710759291530-9">
  123. <createTable tableName="order">
  124. <column name="order_id" type="VARCHAR(50)">
  125. <constraints nullable="false" primaryKey="true"/>
  126. </column>
  127. <column name="user_id" type="VARCHAR(50)">
  128. <constraints nullable="false"/>
  129. </column>
  130. <column name="product_sku_id" type="VARCHAR(50)">
  131. <constraints nullable="false"/>
  132. </column>
  133. <column defaultValueComputed="CURRENT_TIMESTAMP" name="created_time" type="timestamp">
  134. <constraints nullable="false"/>
  135. </column>
  136. <column name="last_update_time" type="timestamp"/>
  137. <column name="meta" type="TEXT"/>
  138. <column name="status" type="VARCHAR(50)"/>
  139. <column name="paying_info" type="VARCHAR(500)"/>
  140. <column name="price" type="INT"/>
  141. <column name="remark" type="VARCHAR(500)"/>
  142. </createTable>
  143. </changeSet>
  144. <changeSet author="dsm (generated)" id="1710759291530-10">
  145. <createTable tableName="product_attribute">
  146. <column name="attribute_id" type="VARCHAR(50)">
  147. <constraints nullable="false" primaryKey="true"/>
  148. </column>
  149. <column name="attribute_name" type="VARCHAR(50)">
  150. <constraints nullable="false" unique="true"/>
  151. </column>
  152. <column name="data_type" type="VARCHAR(20)">
  153. <constraints nullable="false"/>
  154. </column>
  155. </createTable>
  156. </changeSet>
  157. <changeSet author="dsm (generated)" id="1710759291530-11">
  158. <createTable tableName="product_sku_group">
  159. <column name="sku_group_id" type="VARCHAR(50)">
  160. <constraints nullable="false" primaryKey="true"/>
  161. </column>
  162. <column name="sku_group_name" type="VARCHAR(500)"/>
  163. <column name="product_type_id" type="VARCHAR(50)">
  164. <constraints nullable="false"/>
  165. </column>
  166. <column name="created_date" type="timestamp"/>
  167. <column defaultValue="0" name="enabled" type="BIT(1)"/>
  168. <column name="image_url" type="VARCHAR(500)"/>
  169. <column name="min_price" type="INT"/>
  170. </createTable>
  171. </changeSet>
  172. <changeSet author="dsm (generated)" id="1710759291530-12">
  173. <createTable tableName="product_sku_group_destination_mapping">
  174. <column name="product_sku_group_id" type="VARCHAR(50)">
  175. <constraints nullable="false"/>
  176. </column>
  177. <column name="destination_id" type="VARCHAR(50)">
  178. <constraints nullable="false"/>
  179. </column>
  180. </createTable>
  181. </changeSet>
  182. <changeSet author="dsm (generated)" id="1710759291530-13">
  183. <createTable tableName="product_sku_int_attribute_mapping">
  184. <column name="sku_id" type="VARCHAR(50)">
  185. <constraints nullable="false"/>
  186. </column>
  187. <column name="data_type" type="VARCHAR(20)"/>
  188. <column name="attribute_value" type="INT"/>
  189. <column name="attribute_id" type="VARCHAR(50)">
  190. <constraints nullable="false"/>
  191. </column>
  192. </createTable>
  193. </changeSet>
  194. <changeSet author="dsm (generated)" id="1710759291530-14">
  195. <createTable tableName="product_sku_timestamp_attribute_mapping">
  196. <column name="sku_id" type="VARCHAR(50)">
  197. <constraints nullable="false"/>
  198. </column>
  199. <column name="data_type" type="VARCHAR(20)"/>
  200. <column name="attribute_value" type="timestamp"/>
  201. <column name="attribute_id" type="VARCHAR(50)">
  202. <constraints nullable="false"/>
  203. </column>
  204. </createTable>
  205. </changeSet>
  206. <changeSet author="dsm (generated)" id="1710759291530-15">
  207. <createTable tableName="product_sku_varchar_attribute_mapping">
  208. <column name="sku_id" type="VARCHAR(50)">
  209. <constraints nullable="false"/>
  210. </column>
  211. <column name="data_type" type="VARCHAR(20)"/>
  212. <column name="attribute_value" type="TEXT"/>
  213. <column name="attribute_id" type="VARCHAR(50)">
  214. <constraints nullable="false"/>
  215. </column>
  216. </createTable>
  217. </changeSet>
  218. <changeSet author="dsm (generated)" id="1710759291530-16">
  219. <createTable tableName="product_type_attribute_mapping">
  220. <column name="product_type_id" type="VARCHAR(50)">
  221. <constraints nullable="false"/>
  222. </column>
  223. <column name="attribute_id" type="VARCHAR(50)">
  224. <constraints nullable="false"/>
  225. </column>
  226. <column name="sequence" type="BIGINT">
  227. <constraints nullable="false"/>
  228. </column>
  229. </createTable>
  230. </changeSet>
  231. <changeSet author="dsm (generated)" id="1710759291530-17">
  232. <createTable tableName="user">
  233. <column name="user_id" type="VARCHAR(50)">
  234. <constraints nullable="false" primaryKey="true"/>
  235. </column>
  236. <column name="salt" type="VARCHAR(100)">
  237. <constraints nullable="false"/>
  238. </column>
  239. <column name="password" type="VARCHAR(500)">
  240. <constraints nullable="false"/>
  241. </column>
  242. <column defaultValueComputed="CURRENT_TIMESTAMP" name="created_time" type="timestamp">
  243. <constraints nullable="false"/>
  244. </column>
  245. <column name="email" type="VARCHAR(100)">
  246. <constraints unique="true"/>
  247. </column>
  248. <column name="facebook_id" type="VARCHAR(100)">
  249. <constraints unique="true"/>
  250. </column>
  251. <column name="google_id" type="VARCHAR(100)">
  252. <constraints unique="true"/>
  253. </column>
  254. <column name="wx_id" type="VARCHAR(100)">
  255. <constraints unique="true"/>
  256. </column>
  257. <column name="phone" type="VARCHAR(100)">
  258. <constraints unique="true"/>
  259. </column>
  260. <column name="username" type="VARCHAR(100)"/>
  261. <column name="gender" type="INT"/>
  262. <column name="birth_date" type="timestamp"/>
  263. <column name="nationality" type="VARCHAR(100)"/>
  264. <column name="license_type" type="VARCHAR(50)"/>
  265. <column name="license_number" type="VARCHAR(100)"/>
  266. <column name="license_sign_date" type="timestamp"/>
  267. <column name="license_expire_date" type="timestamp"/>
  268. <column name="signature" type="VARCHAR(200)"/>
  269. <column name="profile_image_url" type="VARCHAR(500)"/>
  270. <column name="passport_image_url" type="VARCHAR(500)"/>
  271. <column name="pwd_code" type="INT"/>
  272. <column name="login_type" type="VARCHAR(100)"/>
  273. </createTable>
  274. </changeSet>
  275. <changeSet author="dsm (generated)" id="1710759291530-18">
  276. <addUniqueConstraint columnNames="guide_id, destination_id" constraintName="guidebookanddestinationoneonemapping" tableName="guidebook"/>
  277. </changeSet>
  278. <changeSet author="dsm (generated)" id="1710759291530-19">
  279. <addUniqueConstraint columnNames="product_type_id, attribute_id" constraintName="product_type_attribute_binding_unique" tableName="product_type_attribute_mapping"/>
  280. </changeSet>
  281. <changeSet author="dsm (generated)" id="1710759291530-20">
  282. <addUniqueConstraint columnNames="sku_id, attribute_id" constraintName="sku_id_single_attribute_int_value" tableName="product_sku_int_attribute_mapping"/>
  283. </changeSet>
  284. <changeSet author="dsm (generated)" id="1710759291530-21">
  285. <addUniqueConstraint columnNames="sku_id, attribute_id" constraintName="sku_id_single_attribute_timestamp_value" tableName="product_sku_timestamp_attribute_mapping"/>
  286. </changeSet>
  287. <changeSet author="dsm (generated)" id="1710759291530-22">
  288. <addUniqueConstraint columnNames="sku_id, attribute_id" constraintName="sku_id_single_attribute_varchar_value" tableName="product_sku_varchar_attribute_mapping"/>
  289. </changeSet>
  290. <changeSet author="dsm (generated)" id="1710759291530-23">
  291. <addUniqueConstraint columnNames="sku_group_name, product_type_id" constraintName="unique_sku_group_name_within_same_product_type" tableName="product_sku_group"/>
  292. </changeSet>
  293. <changeSet author="dsm (generated)" id="1710759291530-24">
  294. <addUniqueConstraint columnNames="product_sku_group_id, destination_id" constraintName="uniquebindingofskugroupidanddestinationid" tableName="product_sku_group_destination_mapping"/>
  295. </changeSet>
  296. <changeSet author="dsm (generated)" id="1710759291530-25">
  297. <createIndex associatedWith="" indexName="fk_blog_to_user_id" tableName="blog">
  298. <column name="user_id"/>
  299. </createIndex>
  300. </changeSet>
  301. <changeSet author="dsm (generated)" id="1710759291530-26">
  302. <createIndex associatedWith="" indexName="fk_comment_to_blog_id" tableName="comment">
  303. <column name="blog_id"/>
  304. </createIndex>
  305. </changeSet>
  306. <changeSet author="dsm (generated)" id="1710759291530-27">
  307. <createIndex associatedWith="" indexName="fk_comment_to_comment_id" tableName="comment">
  308. <column name="respond_to"/>
  309. </createIndex>
  310. </changeSet>
  311. <changeSet author="dsm (generated)" id="1710759291530-28">
  312. <createIndex associatedWith="" indexName="fk_comment_to_user_id" tableName="comment">
  313. <column name="user_id"/>
  314. </createIndex>
  315. </changeSet>
  316. <changeSet author="dsm (generated)" id="1710759291530-29">
  317. <createIndex associatedWith="" indexName="fk_destination_to_destination_id" tableName="destination">
  318. <column name="parent_id"/>
  319. </createIndex>
  320. </changeSet>
  321. <changeSet author="dsm (generated)" id="1710759291530-30">
  322. <createIndex associatedWith="" indexName="fk_guidebook_to_destination_id" tableName="guidebook">
  323. <column name="destination_id"/>
  324. </createIndex>
  325. </changeSet>
  326. <changeSet author="dsm (generated)" id="1710759291530-31">
  327. <createIndex associatedWith="" indexName="fk_order_to_product_sku_id" tableName="order">
  328. <column name="product_sku_id"/>
  329. </createIndex>
  330. </changeSet>
  331. <changeSet author="dsm (generated)" id="1710759291530-32">
  332. <createIndex associatedWith="" indexName="fk_order_to_user_id" tableName="order">
  333. <column name="user_id"/>
  334. </createIndex>
  335. </changeSet>
  336. <changeSet author="dsm (generated)" id="1710759291530-33">
  337. <createIndex associatedWith="" indexName="fk_prd_att_mapping_to_attr_id" tableName="product_type_attribute_mapping">
  338. <column name="attribute_id"/>
  339. </createIndex>
  340. </changeSet>
  341. <changeSet author="dsm (generated)" id="1710759291530-34">
  342. <createIndex associatedWith="" indexName="fk_prd_att_mapping_to_product_type_id" tableName="product_type_attribute_mapping">
  343. <column name="product_type_id"/>
  344. </createIndex>
  345. </changeSet>
  346. <changeSet author="dsm (generated)" id="1710759291530-35">
  347. <createIndex associatedWith="" indexName="fk_product_to_sku_group_group_id" tableName="hichina_product">
  348. <column name="sku_group_id"/>
  349. </createIndex>
  350. </changeSet>
  351. <changeSet author="dsm (generated)" id="1710759291530-36">
  352. <createIndex associatedWith="" indexName="fk_product_to_type_type_id" tableName="hichina_product">
  353. <column name="product_type_id"/>
  354. </createIndex>
  355. </changeSet>
  356. <changeSet author="dsm (generated)" id="1710759291530-37">
  357. <createIndex associatedWith="" indexName="fk_sku_group_to_product_type_id" tableName="product_sku_group">
  358. <column name="product_type_id"/>
  359. </createIndex>
  360. </changeSet>
  361. <changeSet author="dsm (generated)" id="1710759291530-38">
  362. <createIndex associatedWith="" indexName="index_publicid" tableName="hichina_line">
  363. <column name="public_id"/>
  364. <column name="name"/>
  365. </createIndex>
  366. </changeSet>
  367. <changeSet author="dsm (generated)" id="1710759291530-39">
  368. <createIndex associatedWith="" indexName="indexblogcreatetime" tableName="blog">
  369. <column name="created_time"/>
  370. </createIndex>
  371. </changeSet>
  372. <changeSet author="dsm (generated)" id="1710759291530-40">
  373. <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="blog" constraintName="fk_blog_to_user_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="user_id" referencedTableName="user" validate="true"/>
  374. </changeSet>
  375. <changeSet author="dsm (generated)" id="1710759291530-41">
  376. <addForeignKeyConstraint baseColumnNames="blog_id" baseTableName="comment" constraintName="fk_comment_to_blog_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="blog_id" referencedTableName="blog" validate="true"/>
  377. </changeSet>
  378. <changeSet author="dsm (generated)" id="1710759291530-42">
  379. <addForeignKeyConstraint baseColumnNames="respond_to" baseTableName="comment" constraintName="fk_comment_to_comment_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="comment_id" referencedTableName="comment" validate="true"/>
  380. </changeSet>
  381. <changeSet author="dsm (generated)" id="1710759291530-43">
  382. <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="comment" constraintName="fk_comment_to_user_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="user_id" referencedTableName="user" validate="true"/>
  383. </changeSet>
  384. <changeSet author="dsm (generated)" id="1710759291530-44">
  385. <addForeignKeyConstraint baseColumnNames="parent_id" baseTableName="destination" constraintName="fk_destination_to_destination_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="destination_id" referencedTableName="destination" validate="true"/>
  386. </changeSet>
  387. <changeSet author="dsm (generated)" id="1710759291530-45">
  388. <addForeignKeyConstraint baseColumnNames="destination_id" baseTableName="guidebook" constraintName="fk_guidebook_to_destination_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="destination_id" referencedTableName="destination" validate="true"/>
  389. </changeSet>
  390. <changeSet author="dsm (generated)" id="1710759291530-46">
  391. <addForeignKeyConstraint baseColumnNames="product_sku_id" baseTableName="order" constraintName="fk_order_to_product_sku_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="sku_id" referencedTableName="hichina_product" validate="true"/>
  392. </changeSet>
  393. <changeSet author="dsm (generated)" id="1710759291530-47">
  394. <addForeignKeyConstraint baseColumnNames="user_id" baseTableName="order" constraintName="fk_order_to_user_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="user_id" referencedTableName="user" validate="true"/>
  395. </changeSet>
  396. <changeSet author="dsm (generated)" id="1710759291530-48">
  397. <addForeignKeyConstraint baseColumnNames="attribute_id" baseTableName="product_type_attribute_mapping" constraintName="fk_prd_att_mapping_to_attr_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="attribute_id" referencedTableName="product_attribute" validate="true"/>
  398. </changeSet>
  399. <changeSet author="dsm (generated)" id="1710759291530-49">
  400. <addForeignKeyConstraint baseColumnNames="product_type_id" baseTableName="product_type_attribute_mapping" constraintName="fk_prd_att_mapping_to_product_type_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="product_type_id" referencedTableName="hichina_product_type" validate="true"/>
  401. </changeSet>
  402. <changeSet author="dsm (generated)" id="1710759291530-50">
  403. <addForeignKeyConstraint baseColumnNames="sku_group_id" baseTableName="hichina_product" constraintName="fk_product_to_sku_group_group_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="sku_group_id" referencedTableName="product_sku_group" validate="true"/>
  404. </changeSet>
  405. <changeSet author="dsm (generated)" id="1710759291530-51">
  406. <addForeignKeyConstraint baseColumnNames="product_type_id" baseTableName="hichina_product" constraintName="fk_product_to_type_type_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="product_type_id" referencedTableName="hichina_product_type" validate="true"/>
  407. </changeSet>
  408. <changeSet author="dsm (generated)" id="1710759291530-52">
  409. <addForeignKeyConstraint baseColumnNames="product_type_id" baseTableName="product_sku_group" constraintName="fk_sku_group_to_product_type_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="product_type_id" referencedTableName="hichina_product_type" validate="true"/>
  410. </changeSet>
  411. <changeSet author="dsm (generated)" id="1710759291530-53">
  412. <addForeignKeyConstraint baseColumnNames="sku_id" baseTableName="product_sku_int_attribute_mapping" constraintName="fk_skuintattrmapping_to_product_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="sku_id" referencedTableName="hichina_product" validate="true"/>
  413. </changeSet>
  414. <changeSet author="dsm (generated)" id="1710759291530-54">
  415. <addForeignKeyConstraint baseColumnNames="sku_id" baseTableName="product_sku_timestamp_attribute_mapping" constraintName="fk_skutimestampattrmapping_to_product_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="sku_id" referencedTableName="hichina_product" validate="true"/>
  416. </changeSet>
  417. <changeSet author="dsm (generated)" id="1710759291530-55">
  418. <addForeignKeyConstraint baseColumnNames="sku_id" baseTableName="product_sku_varchar_attribute_mapping" constraintName="fk_skuvarcharattrmapping_to_product_id" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="sku_id" referencedTableName="hichina_product" validate="true"/>
  419. </changeSet>
  420. </databaseChangeLog>