3.json 6.1 KB

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