{ "formatVersion": 1, "database": { "version": 6, "identityHash": "545c79d5cee4c39cd84d8c73e3149f02", "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)", "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 } ], "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, '545c79d5cee4c39cd84d8c73e3149f02')" ] } }