1.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 1,
  5. "identityHash": "fe898d5cfe7a453225cbced50ee01829",
  6. "entities": [
  7. {
  8. "tableName": "History",
  9. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `start` INTEGER NOT NULL, `end` INTEGER NOT NULL, `course_id` TEXT NOT NULL, `section_id` TEXT NOT NULL, `date` TEXT NOT NULL, `ct_id` TEXT)",
  10. "fields": [
  11. {
  12. "fieldPath": "id",
  13. "columnName": "id",
  14. "affinity": "INTEGER",
  15. "notNull": false
  16. },
  17. {
  18. "fieldPath": "start",
  19. "columnName": "start",
  20. "affinity": "INTEGER",
  21. "notNull": true
  22. },
  23. {
  24. "fieldPath": "end",
  25. "columnName": "end",
  26. "affinity": "INTEGER",
  27. "notNull": true
  28. },
  29. {
  30. "fieldPath": "courseId",
  31. "columnName": "course_id",
  32. "affinity": "TEXT",
  33. "notNull": true
  34. },
  35. {
  36. "fieldPath": "sectionId",
  37. "columnName": "section_id",
  38. "affinity": "TEXT",
  39. "notNull": true
  40. },
  41. {
  42. "fieldPath": "date",
  43. "columnName": "date",
  44. "affinity": "TEXT",
  45. "notNull": true
  46. },
  47. {
  48. "fieldPath": "countDown",
  49. "columnName": "ct_id",
  50. "affinity": "TEXT",
  51. "notNull": false
  52. }
  53. ],
  54. "primaryKey": {
  55. "columnNames": [
  56. "id"
  57. ],
  58. "autoGenerate": true
  59. },
  60. "indices": [],
  61. "foreignKeys": []
  62. },
  63. {
  64. "tableName": "CountDown",
  65. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `type` INTEGER NOT NULL, `value` INTEGER NOT NULL, `rest` INTEGER NOT NULL, `datetime` TEXT, PRIMARY KEY(`id`))",
  66. "fields": [
  67. {
  68. "fieldPath": "id",
  69. "columnName": "id",
  70. "affinity": "TEXT",
  71. "notNull": true
  72. },
  73. {
  74. "fieldPath": "type",
  75. "columnName": "type",
  76. "affinity": "INTEGER",
  77. "notNull": true
  78. },
  79. {
  80. "fieldPath": "value",
  81. "columnName": "value",
  82. "affinity": "INTEGER",
  83. "notNull": true
  84. },
  85. {
  86. "fieldPath": "rest",
  87. "columnName": "rest",
  88. "affinity": "INTEGER",
  89. "notNull": true
  90. },
  91. {
  92. "fieldPath": "datetime",
  93. "columnName": "datetime",
  94. "affinity": "TEXT",
  95. "notNull": false
  96. }
  97. ],
  98. "primaryKey": {
  99. "columnNames": [
  100. "id"
  101. ],
  102. "autoGenerate": false
  103. },
  104. "indices": [],
  105. "foreignKeys": []
  106. },
  107. {
  108. "tableName": "Record",
  109. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`aiCourseItemId` TEXT NOT NULL, `intervals` TEXT NOT NULL, `lastTime` INTEGER NOT NULL, `validDuration` INTEGER NOT NULL, `courseId` TEXT NOT NULL, PRIMARY KEY(`aiCourseItemId`))",
  110. "fields": [
  111. {
  112. "fieldPath": "aiCourseItemId",
  113. "columnName": "aiCourseItemId",
  114. "affinity": "TEXT",
  115. "notNull": true
  116. },
  117. {
  118. "fieldPath": "intervals",
  119. "columnName": "intervals",
  120. "affinity": "TEXT",
  121. "notNull": true
  122. },
  123. {
  124. "fieldPath": "lastTime",
  125. "columnName": "lastTime",
  126. "affinity": "INTEGER",
  127. "notNull": true
  128. },
  129. {
  130. "fieldPath": "validDuration",
  131. "columnName": "validDuration",
  132. "affinity": "INTEGER",
  133. "notNull": true
  134. },
  135. {
  136. "fieldPath": "courseId",
  137. "columnName": "courseId",
  138. "affinity": "TEXT",
  139. "notNull": true
  140. }
  141. ],
  142. "primaryKey": {
  143. "columnNames": [
  144. "aiCourseItemId"
  145. ],
  146. "autoGenerate": false
  147. },
  148. "indices": [],
  149. "foreignKeys": []
  150. }
  151. ],
  152. "views": [],
  153. "setupQueries": [
  154. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  155. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'fe898d5cfe7a453225cbced50ee01829')"
  156. ]
  157. }
  158. }