1.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 1,
  5. "identityHash": "6787910fab07093f4603d57f499cae22",
  6. "entities": [
  7. {
  8. "tableName": "cc_dev_version",
  9. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `recipe_update_time` INTEGER)",
  10. "fields": [
  11. {
  12. "fieldPath": "id",
  13. "columnName": "id",
  14. "affinity": "INTEGER",
  15. "notNull": false
  16. },
  17. {
  18. "fieldPath": "recipeUpdateTime",
  19. "columnName": "recipe_update_time",
  20. "affinity": "INTEGER",
  21. "notNull": false
  22. }
  23. ],
  24. "primaryKey": {
  25. "columnNames": [
  26. "id"
  27. ],
  28. "autoGenerate": true
  29. },
  30. "indices": [],
  31. "foreignKeys": []
  32. },
  33. {
  34. "tableName": "user_info",
  35. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` INTEGER NOT NULL, `userName` TEXT, `userAvatar` TEXT, `userGender` TEXT, `userAge` INTEGER NOT NULL, PRIMARY KEY(`userId`))",
  36. "fields": [
  37. {
  38. "fieldPath": "userId",
  39. "columnName": "userId",
  40. "affinity": "INTEGER",
  41. "notNull": true
  42. },
  43. {
  44. "fieldPath": "userName",
  45. "columnName": "userName",
  46. "affinity": "TEXT",
  47. "notNull": false
  48. },
  49. {
  50. "fieldPath": "userAvatar",
  51. "columnName": "userAvatar",
  52. "affinity": "TEXT",
  53. "notNull": false
  54. },
  55. {
  56. "fieldPath": "userGender",
  57. "columnName": "userGender",
  58. "affinity": "TEXT",
  59. "notNull": false
  60. },
  61. {
  62. "fieldPath": "userAge",
  63. "columnName": "userAge",
  64. "affinity": "INTEGER",
  65. "notNull": true
  66. }
  67. ],
  68. "primaryKey": {
  69. "columnNames": [
  70. "userId"
  71. ],
  72. "autoGenerate": false
  73. },
  74. "indices": [],
  75. "foreignKeys": []
  76. },
  77. {
  78. "tableName": "user_favorite_recipes",
  79. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` INTEGER NOT NULL, `favoriteRecipesId` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
  80. "fields": [
  81. {
  82. "fieldPath": "userId",
  83. "columnName": "userId",
  84. "affinity": "INTEGER",
  85. "notNull": true
  86. },
  87. {
  88. "fieldPath": "favoriteRecipesId",
  89. "columnName": "favoriteRecipesId",
  90. "affinity": "TEXT",
  91. "notNull": true
  92. },
  93. {
  94. "fieldPath": "id",
  95. "columnName": "id",
  96. "affinity": "INTEGER",
  97. "notNull": true
  98. }
  99. ],
  100. "primaryKey": {
  101. "columnNames": [
  102. "id"
  103. ],
  104. "autoGenerate": true
  105. },
  106. "indices": [],
  107. "foreignKeys": []
  108. },
  109. {
  110. "tableName": "user_history_recipes",
  111. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` INTEGER NOT NULL, `historyRecipesId` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
  112. "fields": [
  113. {
  114. "fieldPath": "userId",
  115. "columnName": "userId",
  116. "affinity": "INTEGER",
  117. "notNull": true
  118. },
  119. {
  120. "fieldPath": "historyRecipesId",
  121. "columnName": "historyRecipesId",
  122. "affinity": "TEXT",
  123. "notNull": true
  124. },
  125. {
  126. "fieldPath": "id",
  127. "columnName": "id",
  128. "affinity": "INTEGER",
  129. "notNull": true
  130. }
  131. ],
  132. "primaryKey": {
  133. "columnNames": [
  134. "id"
  135. ],
  136. "autoGenerate": true
  137. },
  138. "indices": [],
  139. "foreignKeys": []
  140. },
  141. {
  142. "tableName": "user_tag",
  143. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` INTEGER NOT NULL, `recipesId` TEXT NOT NULL, `starCount` INTEGER NOT NULL, `daily` TEXT NOT NULL, PRIMARY KEY(`recipesId`))",
  144. "fields": [
  145. {
  146. "fieldPath": "userId",
  147. "columnName": "userId",
  148. "affinity": "INTEGER",
  149. "notNull": true
  150. },
  151. {
  152. "fieldPath": "recipesId",
  153. "columnName": "recipesId",
  154. "affinity": "TEXT",
  155. "notNull": true
  156. },
  157. {
  158. "fieldPath": "starCount",
  159. "columnName": "starCount",
  160. "affinity": "INTEGER",
  161. "notNull": true
  162. },
  163. {
  164. "fieldPath": "daily",
  165. "columnName": "daily",
  166. "affinity": "TEXT",
  167. "notNull": true
  168. }
  169. ],
  170. "primaryKey": {
  171. "columnNames": [
  172. "recipesId"
  173. ],
  174. "autoGenerate": false
  175. },
  176. "indices": [],
  177. "foreignKeys": []
  178. },
  179. {
  180. "tableName": "user_online_recipes",
  181. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`userId` INTEGER NOT NULL, `onLineRecipesId` TEXT NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",
  182. "fields": [
  183. {
  184. "fieldPath": "userId",
  185. "columnName": "userId",
  186. "affinity": "INTEGER",
  187. "notNull": true
  188. },
  189. {
  190. "fieldPath": "onLineRecipesId",
  191. "columnName": "onLineRecipesId",
  192. "affinity": "TEXT",
  193. "notNull": true
  194. },
  195. {
  196. "fieldPath": "id",
  197. "columnName": "id",
  198. "affinity": "INTEGER",
  199. "notNull": true
  200. }
  201. ],
  202. "primaryKey": {
  203. "columnNames": [
  204. "id"
  205. ],
  206. "autoGenerate": true
  207. },
  208. "indices": [],
  209. "foreignKeys": []
  210. }
  211. ],
  212. "views": [],
  213. "setupQueries": [
  214. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  215. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6787910fab07093f4603d57f499cae22')"
  216. ]
  217. }
  218. }