{ "formatVersion": 1, "database": { "version": 2, "identityHash": "4aba1e072ec7b6ee3b0739823ddad274", "entities": [ { "tableName": "lexicon", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `category` TEXT, `diminutive` TEXT, `gender` TEXT, `race` TEXT, `status` TEXT, `location` TEXT, `portrait` TEXT, `description` TEXT, `history` TEXT, `tags` TEXT, `lastUpdated` INTEGER, `lastRead` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "category", "columnName": "category", "affinity": "TEXT", "notNull": false }, { "fieldPath": "diminutive", "columnName": "diminutive", "affinity": "TEXT", "notNull": false }, { "fieldPath": "gender", "columnName": "gender", "affinity": "TEXT", "notNull": false }, { "fieldPath": "race", "columnName": "race", "affinity": "TEXT", "notNull": false }, { "fieldPath": "status", "columnName": "status", "affinity": "TEXT", "notNull": false }, { "fieldPath": "location", "columnName": "location", "affinity": "TEXT", "notNull": false }, { "fieldPath": "portrait", "columnName": "portrait", "affinity": "TEXT", "notNull": false }, { "fieldPath": "description", "columnName": "description", "affinity": "TEXT", "notNull": false }, { "fieldPath": "history", "columnName": "history", "affinity": "TEXT", "notNull": false }, { "fieldPath": "tags", "columnName": "tags", "affinity": "TEXT", "notNull": false }, { "fieldPath": "lastUpdated", "columnName": "lastUpdated", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "lastRead", "columnName": "lastRead", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "quest", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `category` TEXT, `title` TEXT NOT NULL, `subTitle` TEXT, `completed` INTEGER NOT NULL, `questGiverId` TEXT, `questGiverName` TEXT, `locationId` TEXT, `locationName` TEXT, `groupReward` TEXT, `individualReward` TEXT, `description` TEXT NOT NULL, `illustrations` TEXT, `background` TEXT, `lastUpdated` INTEGER, `lastRead` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "category", "columnName": "category", "affinity": "TEXT", "notNull": false }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "subTitle", "columnName": "subTitle", "affinity": "TEXT", "notNull": false }, { "fieldPath": "completed", "columnName": "completed", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "questGiverId", "columnName": "questGiverId", "affinity": "TEXT", "notNull": false }, { "fieldPath": "questGiverName", "columnName": "questGiverName", "affinity": "TEXT", "notNull": false }, { "fieldPath": "locationId", "columnName": "locationId", "affinity": "TEXT", "notNull": false }, { "fieldPath": "locationName", "columnName": "locationName", "affinity": "TEXT", "notNull": false }, { "fieldPath": "groupReward", "columnName": "groupReward", "affinity": "TEXT", "notNull": false }, { "fieldPath": "individualReward", "columnName": "individualReward", "affinity": "TEXT", "notNull": false }, { "fieldPath": "description", "columnName": "description", "affinity": "TEXT", "notNull": true }, { "fieldPath": "illustrations", "columnName": "illustrations", "affinity": "TEXT", "notNull": false }, { "fieldPath": "background", "columnName": "background", "affinity": "TEXT", "notNull": false }, { "fieldPath": "lastUpdated", "columnName": "lastUpdated", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "lastRead", "columnName": "lastRead", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "location", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` TEXT NOT NULL, `name` TEXT NOT NULL, `category` TEXT, `description` TEXT, `map` TEXT, `illustrations` TEXT, `lastUpdated` INTEGER, `lastRead` INTEGER NOT NULL, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "category", "columnName": "category", "affinity": "TEXT", "notNull": false }, { "fieldPath": "description", "columnName": "description", "affinity": "TEXT", "notNull": false }, { "fieldPath": "map", "columnName": "map", "affinity": "TEXT", "notNull": false }, { "fieldPath": "illustrations", "columnName": "illustrations", "affinity": "TEXT", "notNull": false }, { "fieldPath": "lastUpdated", "columnName": "lastUpdated", "affinity": "INTEGER", "notNull": false }, { "fieldPath": "lastRead", "columnName": "lastRead", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "world", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`parentId` TEXT NOT NULL, `childId` TEXT NOT NULL, `child` TEXT NOT NULL, `x` REAL, `y` REAL, PRIMARY KEY(`parentId`, `childId`))", "fields": [ { "fieldPath": "parentId", "columnName": "parentId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "childId", "columnName": "childId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "child", "columnName": "child", "affinity": "TEXT", "notNull": true }, { "fieldPath": "x", "columnName": "x", "affinity": "REAL", "notNull": false }, { "fieldPath": "y", "columnName": "y", "affinity": "REAL", "notNull": false } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "parentId", "childId" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "AdventureBooks", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`documentId` TEXT NOT NULL, `title` TEXT NOT NULL, `icon` TEXT, PRIMARY KEY(`documentId`))", "fields": [ { "fieldPath": "documentId", "columnName": "documentId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "icon", "columnName": "icon", "affinity": "TEXT", "notNull": false } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "documentId" ] }, "indices": [], "foreignKeys": [] }, { "tableName": "AdventureStory", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`title` TEXT NOT NULL, `category` TEXT, `background` TEXT, `revision` INTEGER NOT NULL, `index` INTEGER NOT NULL, `documentId` TEXT NOT NULL, PRIMARY KEY(`title`, `documentId`), FOREIGN KEY(`documentId`) REFERENCES `AdventureBooks`(`documentId`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "category", "columnName": "category", "affinity": "TEXT", "notNull": false }, { "fieldPath": "background", "columnName": "background", "affinity": "TEXT", "notNull": false }, { "fieldPath": "revision", "columnName": "revision", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "index", "columnName": "index", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "documentId", "columnName": "documentId", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "title", "documentId" ] }, "indices": [ { "name": "index_AdventureStory_documentId", "unique": false, "columnNames": [ "documentId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_AdventureStory_documentId` ON `${TABLE_NAME}` (`documentId`)" } ], "foreignKeys": [ { "table": "AdventureBooks", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "documentId" ], "referencedColumns": [ "documentId" ] } ] }, { "tableName": "AdventureLine", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`index` INTEGER NOT NULL, `text` TEXT NOT NULL, `format` TEXT NOT NULL, `documentId` TEXT NOT NULL, `title` TEXT NOT NULL, PRIMARY KEY(`index`, `title`, `documentId`), FOREIGN KEY(`title`, `documentId`) REFERENCES `AdventureStory`(`title`, `documentId`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "index", "columnName": "index", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "text", "columnName": "text", "affinity": "TEXT", "notNull": true }, { "fieldPath": "format", "columnName": "format", "affinity": "TEXT", "notNull": true }, { "fieldPath": "documentId", "columnName": "documentId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "story", "columnName": "title", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "index", "title", "documentId" ] }, "indices": [ { "name": "index_AdventureLine_documentId", "unique": false, "columnNames": [ "documentId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_AdventureLine_documentId` ON `${TABLE_NAME}` (`documentId`)" }, { "name": "index_AdventureLine_title", "unique": false, "columnNames": [ "title" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_AdventureLine_title` ON `${TABLE_NAME}` (`title`)" } ], "foreignKeys": [ { "table": "AdventureStory", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "title", "documentId" ], "referencedColumns": [ "title", "documentId" ] } ] } ], "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, '4aba1e072ec7b6ee3b0739823ddad274')" ] } }