3.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {
  2. "formatVersion": 1,
  3. "database": {
  4. "version": 3,
  5. "identityHash": "1fbb5d3e0b17e0f275f418969aff1589",
  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, `date` 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": false
  40. },
  41. {
  42. "fieldPath": "date",
  43. "columnName": "date",
  44. "affinity": "TEXT",
  45. "notNull": false
  46. }
  47. ],
  48. "primaryKey": {
  49. "columnNames": [
  50. "id"
  51. ],
  52. "autoGenerate": true
  53. },
  54. "indices": [],
  55. "foreignKeys": []
  56. },
  57. {
  58. "tableName": "CountDown",
  59. "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `course_id` TEXT NOT NULL, `type` INTEGER NOT NULL, `value` INTEGER NOT NULL)",
  60. "fields": [
  61. {
  62. "fieldPath": "id",
  63. "columnName": "id",
  64. "affinity": "INTEGER",
  65. "notNull": false
  66. },
  67. {
  68. "fieldPath": "courseId",
  69. "columnName": "course_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. "primaryKey": {
  87. "columnNames": [
  88. "id"
  89. ],
  90. "autoGenerate": true
  91. },
  92. "indices": [],
  93. "foreignKeys": []
  94. }
  95. ],
  96. "views": [],
  97. "setupQueries": [
  98. "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
  99. "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1fbb5d3e0b17e0f275f418969aff1589')"
  100. ]
  101. }
  102. }