Modern Apps git
git clone https://git.maproj.org/Modern-Apps.git
main ▾

Modern-Apps.git / flashcards / schemas / com.vayunmathur.flashcards.data.FlashcardsDatabase / 4.json

4.json498 lines · 14.6 KiBRaw
1{
2 "formatVersion": 1,
3 "database": {
4 "version": 4,
5 "identityHash": "348e538974abbcf8705171b94ce15d9f",
6 "entities": [
7 {
8 "tableName": "Deck",
9 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `newPerDay` INTEGER NOT NULL, `maxReviewsPerDay` INTEGER NOT NULL, `desiredRetention` REAL NOT NULL, `fsrsWeights` TEXT NOT NULL, `leechThreshold` INTEGER NOT NULL, `position` REAL NOT NULL)",
10 "fields": [
11 {
12 "fieldPath": "id",
13 "columnName": "id",
14 "affinity": "INTEGER",
15 "notNull": true
16 },
17 {
18 "fieldPath": "name",
19 "columnName": "name",
20 "affinity": "TEXT",
21 "notNull": true
22 },
23 {
24 "fieldPath": "newPerDay",
25 "columnName": "newPerDay",
26 "affinity": "INTEGER",
27 "notNull": true
28 },
29 {
30 "fieldPath": "maxReviewsPerDay",
31 "columnName": "maxReviewsPerDay",
32 "affinity": "INTEGER",
33 "notNull": true
34 },
35 {
36 "fieldPath": "desiredRetention",
37 "columnName": "desiredRetention",
38 "affinity": "REAL",
39 "notNull": true
40 },
41 {
42 "fieldPath": "fsrsWeights",
43 "columnName": "fsrsWeights",
44 "affinity": "TEXT",
45 "notNull": true
46 },
47 {
48 "fieldPath": "leechThreshold",
49 "columnName": "leechThreshold",
50 "affinity": "INTEGER",
51 "notNull": true
52 },
53 {
54 "fieldPath": "position",
55 "columnName": "position",
56 "affinity": "REAL",
57 "notNull": true
58 }
59 ],
60 "primaryKey": {
61 "autoGenerate": true,
62 "columnNames": [
63 "id"
64 ]
65 }
66 },
67 {
68 "tableName": "Card",
69 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `noteId` INTEGER NOT NULL, `templateOrd` INTEGER NOT NULL, `deckId` INTEGER NOT NULL, `stability` REAL NOT NULL, `difficulty` REAL NOT NULL, `state` INTEGER NOT NULL, `lastReview` INTEGER NOT NULL, `lapses` INTEGER NOT NULL, `reps` INTEGER NOT NULL, `dueDate` INTEGER NOT NULL, `easeFactor` REAL NOT NULL, `intervalDays` INTEGER NOT NULL, `repetitions` INTEGER NOT NULL, `suspended` INTEGER NOT NULL, `position` REAL NOT NULL)",
70 "fields": [
71 {
72 "fieldPath": "id",
73 "columnName": "id",
74 "affinity": "INTEGER",
75 "notNull": true
76 },
77 {
78 "fieldPath": "noteId",
79 "columnName": "noteId",
80 "affinity": "INTEGER",
81 "notNull": true
82 },
83 {
84 "fieldPath": "templateOrd",
85 "columnName": "templateOrd",
86 "affinity": "INTEGER",
87 "notNull": true
88 },
89 {
90 "fieldPath": "deckId",
91 "columnName": "deckId",
92 "affinity": "INTEGER",
93 "notNull": true
94 },
95 {
96 "fieldPath": "stability",
97 "columnName": "stability",
98 "affinity": "REAL",
99 "notNull": true
100 },
101 {
102 "fieldPath": "difficulty",
103 "columnName": "difficulty",
104 "affinity": "REAL",
105 "notNull": true
106 },
107 {
108 "fieldPath": "state",
109 "columnName": "state",
110 "affinity": "INTEGER",
111 "notNull": true
112 },
113 {
114 "fieldPath": "lastReview",
115 "columnName": "lastReview",
116 "affinity": "INTEGER",
117 "notNull": true
118 },
119 {
120 "fieldPath": "lapses",
121 "columnName": "lapses",
122 "affinity": "INTEGER",
123 "notNull": true
124 },
125 {
126 "fieldPath": "reps",
127 "columnName": "reps",
128 "affinity": "INTEGER",
129 "notNull": true
130 },
131 {
132 "fieldPath": "dueDate",
133 "columnName": "dueDate",
134 "affinity": "INTEGER",
135 "notNull": true
136 },
137 {
138 "fieldPath": "easeFactor",
139 "columnName": "easeFactor",
140 "affinity": "REAL",
141 "notNull": true
142 },
143 {
144 "fieldPath": "intervalDays",
145 "columnName": "intervalDays",
146 "affinity": "INTEGER",
147 "notNull": true
148 },
149 {
150 "fieldPath": "repetitions",
151 "columnName": "repetitions",
152 "affinity": "INTEGER",
153 "notNull": true
154 },
155 {
156 "fieldPath": "suspended",
157 "columnName": "suspended",
158 "affinity": "INTEGER",
159 "notNull": true
160 },
161 {
162 "fieldPath": "position",
163 "columnName": "position",
164 "affinity": "REAL",
165 "notNull": true
166 }
167 ],
168 "primaryKey": {
169 "autoGenerate": true,
170 "columnNames": [
171 "id"
172 ]
173 },
174 "indices": [
175 {
176 "name": "index_Card_noteId_templateOrd",
177 "unique": true,
178 "columnNames": [
179 "noteId",
180 "templateOrd"
181 ],
182 "orders": [],
183 "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_Card_noteId_templateOrd` ON `${TABLE_NAME}` (`noteId`, `templateOrd`)"
184 },
185 {
186 "name": "index_Card_deckId",
187 "unique": false,
188 "columnNames": [
189 "deckId"
190 ],
191 "orders": [],
192 "createSql": "CREATE INDEX IF NOT EXISTS `index_Card_deckId` ON `${TABLE_NAME}` (`deckId`)"
193 }
194 ]
195 },
196 {
197 "tableName": "ReviewLog",
198 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `cardId` INTEGER NOT NULL, `deckId` INTEGER NOT NULL, `reviewedAt` INTEGER NOT NULL, `grade` INTEGER NOT NULL, `elapsedDays` REAL NOT NULL, `scheduledDays` REAL NOT NULL, `state` INTEGER NOT NULL)",
199 "fields": [
200 {
201 "fieldPath": "id",
202 "columnName": "id",
203 "affinity": "INTEGER",
204 "notNull": true
205 },
206 {
207 "fieldPath": "cardId",
208 "columnName": "cardId",
209 "affinity": "INTEGER",
210 "notNull": true
211 },
212 {
213 "fieldPath": "deckId",
214 "columnName": "deckId",
215 "affinity": "INTEGER",
216 "notNull": true
217 },
218 {
219 "fieldPath": "reviewedAt",
220 "columnName": "reviewedAt",
221 "affinity": "INTEGER",
222 "notNull": true
223 },
224 {
225 "fieldPath": "grade",
226 "columnName": "grade",
227 "affinity": "INTEGER",
228 "notNull": true
229 },
230 {
231 "fieldPath": "elapsedDays",
232 "columnName": "elapsedDays",
233 "affinity": "REAL",
234 "notNull": true
235 },
236 {
237 "fieldPath": "scheduledDays",
238 "columnName": "scheduledDays",
239 "affinity": "REAL",
240 "notNull": true
241 },
242 {
243 "fieldPath": "state",
244 "columnName": "state",
245 "affinity": "INTEGER",
246 "notNull": true
247 }
248 ],
249 "primaryKey": {
250 "autoGenerate": true,
251 "columnNames": [
252 "id"
253 ]
254 }
255 },
256 {
257 "tableName": "NoteType",
258 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `type` INTEGER NOT NULL, `css` TEXT NOT NULL, `mod` INTEGER NOT NULL)",
259 "fields": [
260 {
261 "fieldPath": "id",
262 "columnName": "id",
263 "affinity": "INTEGER",
264 "notNull": true
265 },
266 {
267 "fieldPath": "name",
268 "columnName": "name",
269 "affinity": "TEXT",
270 "notNull": true
271 },
272 {
273 "fieldPath": "type",
274 "columnName": "type",
275 "affinity": "INTEGER",
276 "notNull": true
277 },
278 {
279 "fieldPath": "css",
280 "columnName": "css",
281 "affinity": "TEXT",
282 "notNull": true
283 },
284 {
285 "fieldPath": "mod",
286 "columnName": "mod",
287 "affinity": "INTEGER",
288 "notNull": true
289 }
290 ],
291 "primaryKey": {
292 "autoGenerate": true,
293 "columnNames": [
294 "id"
295 ]
296 }
297 },
298 {
299 "tableName": "NoteTypeField",
300 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `noteTypeId` INTEGER NOT NULL, `ord` INTEGER NOT NULL, `name` TEXT NOT NULL)",
301 "fields": [
302 {
303 "fieldPath": "id",
304 "columnName": "id",
305 "affinity": "INTEGER",
306 "notNull": true
307 },
308 {
309 "fieldPath": "noteTypeId",
310 "columnName": "noteTypeId",
311 "affinity": "INTEGER",
312 "notNull": true
313 },
314 {
315 "fieldPath": "ord",
316 "columnName": "ord",
317 "affinity": "INTEGER",
318 "notNull": true
319 },
320 {
321 "fieldPath": "name",
322 "columnName": "name",
323 "affinity": "TEXT",
324 "notNull": true
325 }
326 ],
327 "primaryKey": {
328 "autoGenerate": true,
329 "columnNames": [
330 "id"
331 ]
332 },
333 "indices": [
334 {
335 "name": "index_NoteTypeField_noteTypeId_ord",
336 "unique": true,
337 "columnNames": [
338 "noteTypeId",
339 "ord"
340 ],
341 "orders": [],
342 "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_NoteTypeField_noteTypeId_ord` ON `${TABLE_NAME}` (`noteTypeId`, `ord`)"
343 }
344 ]
345 },
346 {
347 "tableName": "CardTemplate",
348 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `noteTypeId` INTEGER NOT NULL, `ord` INTEGER NOT NULL, `name` TEXT NOT NULL, `qfmt` TEXT NOT NULL, `afmt` TEXT NOT NULL)",
349 "fields": [
350 {
351 "fieldPath": "id",
352 "columnName": "id",
353 "affinity": "INTEGER",
354 "notNull": true
355 },
356 {
357 "fieldPath": "noteTypeId",
358 "columnName": "noteTypeId",
359 "affinity": "INTEGER",
360 "notNull": true
361 },
362 {
363 "fieldPath": "ord",
364 "columnName": "ord",
365 "affinity": "INTEGER",
366 "notNull": true
367 },
368 {
369 "fieldPath": "name",
370 "columnName": "name",
371 "affinity": "TEXT",
372 "notNull": true
373 },
374 {
375 "fieldPath": "qfmt",
376 "columnName": "qfmt",
377 "affinity": "TEXT",
378 "notNull": true
379 },
380 {
381 "fieldPath": "afmt",
382 "columnName": "afmt",
383 "affinity": "TEXT",
384 "notNull": true
385 }
386 ],
387 "primaryKey": {
388 "autoGenerate": true,
389 "columnNames": [
390 "id"
391 ]
392 },
393 "indices": [
394 {
395 "name": "index_CardTemplate_noteTypeId_ord",
396 "unique": true,
397 "columnNames": [
398 "noteTypeId",
399 "ord"
400 ],
401 "orders": [],
402 "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_CardTemplate_noteTypeId_ord` ON `${TABLE_NAME}` (`noteTypeId`, `ord`)"
403 }
404 ]
405 },
406 {
407 "tableName": "Note",
408 "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `noteTypeId` INTEGER NOT NULL, `deckId` INTEGER NOT NULL, `guid` TEXT NOT NULL, `flds` TEXT NOT NULL, `sortField` TEXT NOT NULL, `tags` TEXT NOT NULL, `mod` INTEGER NOT NULL, `position` REAL NOT NULL)",
409 "fields": [
410 {
411 "fieldPath": "id",
412 "columnName": "id",
413 "affinity": "INTEGER",
414 "notNull": true
415 },
416 {
417 "fieldPath": "noteTypeId",
418 "columnName": "noteTypeId",
419 "affinity": "INTEGER",
420 "notNull": true
421 },
422 {
423 "fieldPath": "deckId",
424 "columnName": "deckId",
425 "affinity": "INTEGER",
426 "notNull": true
427 },
428 {
429 "fieldPath": "guid",
430 "columnName": "guid",
431 "affinity": "TEXT",
432 "notNull": true
433 },
434 {
435 "fieldPath": "flds",
436 "columnName": "flds",
437 "affinity": "TEXT",
438 "notNull": true
439 },
440 {
441 "fieldPath": "sortField",
442 "columnName": "sortField",
443 "affinity": "TEXT",
444 "notNull": true
445 },
446 {
447 "fieldPath": "tags",
448 "columnName": "tags",
449 "affinity": "TEXT",
450 "notNull": true
451 },
452 {
453 "fieldPath": "mod",
454 "columnName": "mod",
455 "affinity": "INTEGER",
456 "notNull": true
457 },
458 {
459 "fieldPath": "position",
460 "columnName": "position",
461 "affinity": "REAL",
462 "notNull": true
463 }
464 ],
465 "primaryKey": {
466 "autoGenerate": true,
467 "columnNames": [
468 "id"
469 ]
470 },
471 "indices": [
472 {
473 "name": "index_Note_noteTypeId",
474 "unique": false,
475 "columnNames": [
476 "noteTypeId"
477 ],
478 "orders": [],
479 "createSql": "CREATE INDEX IF NOT EXISTS `index_Note_noteTypeId` ON `${TABLE_NAME}` (`noteTypeId`)"
480 },
481 {
482 "name": "index_Note_deckId",
483 "unique": false,
484 "columnNames": [
485 "deckId"
486 ],
487 "orders": [],
488 "createSql": "CREATE INDEX IF NOT EXISTS `index_Note_deckId` ON `${TABLE_NAME}` (`deckId`)"
489 }
490 ]
491 }
492 ],
493 "setupQueries": [
494 "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
495 "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '348e538974abbcf8705171b94ce15d9f')"
496 ]
497 }
498}