{ "formatVersion": 1, "database": { "version": 14, "identityHash": "c4801cd1e9c4300aa45441bb9dfde3a2", "entities": [ { "tableName": "notes", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `library_id` INTEGER NOT NULL, `title` TEXT NOT NULL, `body` TEXT NOT NULL, `position` INTEGER NOT NULL, `creation_date` TEXT NOT NULL, `is_pinned` INTEGER NOT NULL, `is_archived` INTEGER NOT NULL, `reminder_date` TEXT, FOREIGN KEY(`library_id`) REFERENCES `libraries`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "libraryId", "columnName": "library_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "body", "columnName": "body", "affinity": "TEXT", "notNull": true }, { "fieldPath": "position", "columnName": "position", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "creationDate", "columnName": "creation_date", "affinity": "TEXT", "notNull": true }, { "fieldPath": "isPinned", "columnName": "is_pinned", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "isArchived", "columnName": "is_archived", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "reminderDate", "columnName": "reminder_date", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "columnNames": [ "id" ], "autoGenerate": true }, "indices": [], "foreignKeys": [ { "table": "libraries", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "library_id" ], "referencedColumns": [ "id" ] } ] }, { "tableName": "libraries", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `title` TEXT NOT NULL, `position` INTEGER NOT NULL, `color` INTEGER NOT NULL, `creation_date` TEXT NOT NULL, `layout_manager` INTEGER NOT NULL DEFAULT 0, `note_preview_size` INTEGER NOT NULL DEFAULT 15, `is_archived` INTEGER NOT NULL DEFAULT 0, `is_pinned` INTEGER NOT NULL DEFAULT 0, `is_show_note_creation_date` INTEGER NOT NULL DEFAULT 0, `is_set_new_note_cursor_on_title` INTEGER NOT NULL DEFAULT 0, `sorting` INTEGER NOT NULL DEFAULT 1, `sorting_order` INTEGER NOT NULL DEFAULT 1, `sorting_method` INTEGER NOT NULL, `sorting_type` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "position", "columnName": "position", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "color", "columnName": "color", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "creationDate", "columnName": "creation_date", "affinity": "TEXT", "notNull": true }, { "fieldPath": "layoutManager", "columnName": "layout_manager", "affinity": "INTEGER", "notNull": true, "defaultValue": "0" }, { "fieldPath": "notePreviewSize", "columnName": "note_preview_size", "affinity": "INTEGER", "notNull": true, "defaultValue": "15" }, { "fieldPath": "isArchived", "columnName": "is_archived", "affinity": "INTEGER", "notNull": true, "defaultValue": "0" }, { "fieldPath": "isPinned", "columnName": "is_pinned", "affinity": "INTEGER", "notNull": true, "defaultValue": "0" }, { "fieldPath": "isShowNoteCreationDate", "columnName": "is_show_note_creation_date", "affinity": "INTEGER", "notNull": true, "defaultValue": "0" }, { "fieldPath": "isSetNewNoteCursorOnTitle", "columnName": "is_set_new_note_cursor_on_title", "affinity": "INTEGER", "notNull": true, "defaultValue": "0" }, { "fieldPath": "sorting", "columnName": "sorting", "affinity": "INTEGER", "notNull": true, "defaultValue": "1" }, { "fieldPath": "sortingOrder", "columnName": "sorting_order", "affinity": "INTEGER", "notNull": true, "defaultValue": "1" }, { "fieldPath": "sortingMethod", "columnName": "sorting_method", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "sortingType", "columnName": "sorting_type", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "columnNames": [ "id" ], "autoGenerate": true }, "indices": [], "foreignKeys": [] }, { "tableName": "labels", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`label_id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `label_title` TEXT NOT NULL, `label_noto_color` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "label_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "title", "columnName": "label_title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "color", "columnName": "label_noto_color", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "columnNames": [ "label_id" ], "autoGenerate": true }, "indices": [], "foreignKeys": [] }, { "tableName": "noto_labels", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`noto_label_id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `id` INTEGER NOT NULL, `label_id` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "noto_label_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "noteId", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "labelId", "columnName": "label_id", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "columnNames": [ "noto_label_id" ], "autoGenerate": true }, "indices": [], "foreignKeys": [] } ], "views": [], "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, 'c4801cd1e9c4300aa45441bb9dfde3a2')" ] } }