{ "formatVersion": 1, "database": { "version": 10, "identityHash": "787a7f8939bb6af04085a34c98621bd8", "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_starred` 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": "isStarred", "columnName": "is_starred", "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, `sorting_type` INTEGER NOT NULL, `sorting_method` INTEGER 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)", "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": "sortingType", "columnName": "sorting_type", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "sortingMethod", "columnName": "sorting_method", "affinity": "INTEGER", "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" } ], "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": "labelId", "columnName": "label_id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "labelTitle", "columnName": "label_title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "labelColor", "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": "noteLabelId", "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, '787a7f8939bb6af04085a34c98621bd8')" ] } }