{ "formatVersion": 1, "database": { "version": 4, "identityHash": "348e538974abbcf8705171b94ce15d9f", "entities": [ { "tableName": "Deck", "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)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "newPerDay", "columnName": "newPerDay", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "maxReviewsPerDay", "columnName": "maxReviewsPerDay", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "desiredRetention", "columnName": "desiredRetention", "affinity": "REAL", "notNull": true }, { "fieldPath": "fsrsWeights", "columnName": "fsrsWeights", "affinity": "TEXT", "notNull": true }, { "fieldPath": "leechThreshold", "columnName": "leechThreshold", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "position", "columnName": "position", "affinity": "REAL", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } }, { "tableName": "Card", "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)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "noteId", "columnName": "noteId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "templateOrd", "columnName": "templateOrd", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "deckId", "columnName": "deckId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "stability", "columnName": "stability", "affinity": "REAL", "notNull": true }, { "fieldPath": "difficulty", "columnName": "difficulty", "affinity": "REAL", "notNull": true }, { "fieldPath": "state", "columnName": "state", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "lastReview", "columnName": "lastReview", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "lapses", "columnName": "lapses", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "reps", "columnName": "reps", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "dueDate", "columnName": "dueDate", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "easeFactor", "columnName": "easeFactor", "affinity": "REAL", "notNull": true }, { "fieldPath": "intervalDays", "columnName": "intervalDays", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "repetitions", "columnName": "repetitions", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "suspended", "columnName": "suspended", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "position", "columnName": "position", "affinity": "REAL", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_Card_noteId_templateOrd", "unique": true, "columnNames": [ "noteId", "templateOrd" ], "orders": [], "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_Card_noteId_templateOrd` ON `${TABLE_NAME}` (`noteId`, `templateOrd`)" }, { "name": "index_Card_deckId", "unique": false, "columnNames": [ "deckId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_Card_deckId` ON `${TABLE_NAME}` (`deckId`)" } ] }, { "tableName": "ReviewLog", "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)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "cardId", "columnName": "cardId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "deckId", "columnName": "deckId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "reviewedAt", "columnName": "reviewedAt", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "grade", "columnName": "grade", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "elapsedDays", "columnName": "elapsedDays", "affinity": "REAL", "notNull": true }, { "fieldPath": "scheduledDays", "columnName": "scheduledDays", "affinity": "REAL", "notNull": true }, { "fieldPath": "state", "columnName": "state", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } }, { "tableName": "NoteType", "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)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "type", "columnName": "type", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "css", "columnName": "css", "affinity": "TEXT", "notNull": true }, { "fieldPath": "mod", "columnName": "mod", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } }, { "tableName": "NoteTypeField", "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)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "noteTypeId", "columnName": "noteTypeId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "ord", "columnName": "ord", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_NoteTypeField_noteTypeId_ord", "unique": true, "columnNames": [ "noteTypeId", "ord" ], "orders": [], "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_NoteTypeField_noteTypeId_ord` ON `${TABLE_NAME}` (`noteTypeId`, `ord`)" } ] }, { "tableName": "CardTemplate", "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)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "noteTypeId", "columnName": "noteTypeId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "ord", "columnName": "ord", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "qfmt", "columnName": "qfmt", "affinity": "TEXT", "notNull": true }, { "fieldPath": "afmt", "columnName": "afmt", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_CardTemplate_noteTypeId_ord", "unique": true, "columnNames": [ "noteTypeId", "ord" ], "orders": [], "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_CardTemplate_noteTypeId_ord` ON `${TABLE_NAME}` (`noteTypeId`, `ord`)" } ] }, { "tableName": "Note", "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)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "noteTypeId", "columnName": "noteTypeId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "deckId", "columnName": "deckId", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "guid", "columnName": "guid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "flds", "columnName": "flds", "affinity": "TEXT", "notNull": true }, { "fieldPath": "sortField", "columnName": "sortField", "affinity": "TEXT", "notNull": true }, { "fieldPath": "tags", "columnName": "tags", "affinity": "TEXT", "notNull": true }, { "fieldPath": "mod", "columnName": "mod", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "position", "columnName": "position", "affinity": "REAL", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_Note_noteTypeId", "unique": false, "columnNames": [ "noteTypeId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_Note_noteTypeId` ON `${TABLE_NAME}` (`noteTypeId`)" }, { "name": "index_Note_deckId", "unique": false, "columnNames": [ "deckId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_Note_deckId` ON `${TABLE_NAME}` (`deckId`)" } ] } ], "setupQueries": [ "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)", "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '348e538974abbcf8705171b94ce15d9f')" ] } }