Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890{ "formatVersion": 1, "database": { "version": 2, "identityHash": "d9a6572007739d47bf16664b39c42437", "entities": [ { "tableName": "externalEmbeds", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`uri` TEXT NOT NULL, `title` TEXT NOT NULL, `description` TEXT NOT NULL, `thumb` TEXT, PRIMARY KEY(`uri`))", "fields": [ { "fieldPath": "uri", "columnName": "uri", "affinity": "TEXT", "notNull": true }, { "fieldPath": "title", "columnName": "title", "affinity": "TEXT", "notNull": true }, { "fieldPath": "description", "columnName": "description", "affinity": "TEXT", "notNull": true }, { "fieldPath": "thumb", "columnName": "thumb", "affinity": "TEXT" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "uri" ] } }, { "tableName": "images", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`fullSize` TEXT NOT NULL, `thumb` TEXT NOT NULL, `alt` TEXT NOT NULL, `width` INTEGER, `height` INTEGER, PRIMARY KEY(`fullSize`))", "fields": [ { "fieldPath": "fullSize", "columnName": "fullSize", "affinity": "TEXT", "notNull": true }, { "fieldPath": "thumb", "columnName": "thumb", "affinity": "TEXT", "notNull": true }, { "fieldPath": "alt", "columnName": "alt", "affinity": "TEXT", "notNull": true }, { "fieldPath": "width", "columnName": "width", "affinity": "INTEGER" }, { "fieldPath": "height", "columnName": "height", "affinity": "INTEGER" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "fullSize" ] } }, { "tableName": "videos", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`cid` TEXT NOT NULL, `playlist` TEXT NOT NULL, `thumbnail` TEXT, `alt` TEXT, `width` INTEGER, `height` INTEGER, PRIMARY KEY(`cid`))", "fields": [ { "fieldPath": "cid", "columnName": "cid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "playlist", "columnName": "playlist", "affinity": "TEXT", "notNull": true }, { "fieldPath": "thumbnail", "columnName": "thumbnail", "affinity": "TEXT" }, { "fieldPath": "alt", "columnName": "alt", "affinity": "TEXT" }, { "fieldPath": "width", "columnName": "width", "affinity": "INTEGER" }, { "fieldPath": "height", "columnName": "height", "affinity": "INTEGER" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "cid" ] } }, { "tableName": "postExternalEmbeds", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`postId` TEXT NOT NULL, `externalEmbedUri` TEXT NOT NULL, PRIMARY KEY(`postId`, `externalEmbedUri`), FOREIGN KEY(`postId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`externalEmbedUri`) REFERENCES `externalEmbeds`(`uri`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "postId", "columnName": "postId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "externalEmbedUri", "columnName": "externalEmbedUri", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "postId", "externalEmbedUri" ] }, "indices": [ { "name": "index_postExternalEmbeds_postId", "unique": false, "columnNames": [ "postId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postExternalEmbeds_postId` ON `${TABLE_NAME}` (`postId`)" }, { "name": "index_postExternalEmbeds_externalEmbedUri", "unique": false, "columnNames": [ "externalEmbedUri" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postExternalEmbeds_externalEmbedUri` ON `${TABLE_NAME}` (`externalEmbedUri`)" } ], "foreignKeys": [ { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "postId" ], "referencedColumns": [ "cid" ] }, { "table": "externalEmbeds", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "externalEmbedUri" ], "referencedColumns": [ "uri" ] } ] }, { "tableName": "postImages", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`postId` TEXT NOT NULL, `imageUri` TEXT NOT NULL, PRIMARY KEY(`postId`, `imageUri`), FOREIGN KEY(`postId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`imageUri`) REFERENCES `images`(`fullSize`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "postId", "columnName": "postId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "imageUri", "columnName": "imageUri", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "postId", "imageUri" ] }, "indices": [ { "name": "index_postImages_postId", "unique": false, "columnNames": [ "postId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postImages_postId` ON `${TABLE_NAME}` (`postId`)" }, { "name": "index_postImages_imageUri", "unique": false, "columnNames": [ "imageUri" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postImages_imageUri` ON `${TABLE_NAME}` (`imageUri`)" } ], "foreignKeys": [ { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "postId" ], "referencedColumns": [ "cid" ] }, { "table": "images", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "imageUri" ], "referencedColumns": [ "fullSize" ] } ] }, { "tableName": "postVideos", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`postId` TEXT NOT NULL, `videoId` TEXT NOT NULL, PRIMARY KEY(`postId`, `videoId`), FOREIGN KEY(`postId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`videoId`) REFERENCES `videos`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "postId", "columnName": "postId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "videoId", "columnName": "videoId", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "postId", "videoId" ] }, "indices": [ { "name": "index_postVideos_postId", "unique": false, "columnNames": [ "postId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postVideos_postId` ON `${TABLE_NAME}` (`postId`)" }, { "name": "index_postVideos_videoId", "unique": false, "columnNames": [ "videoId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postVideos_videoId` ON `${TABLE_NAME}` (`videoId`)" } ], "foreignKeys": [ { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "postId" ], "referencedColumns": [ "cid" ] }, { "table": "videos", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "videoId" ], "referencedColumns": [ "cid" ] } ] }, { "tableName": "postPosts", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`postId` TEXT NOT NULL, `embeddedPostId` TEXT NOT NULL, PRIMARY KEY(`postId`, `embeddedPostId`), FOREIGN KEY(`postId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`embeddedPostId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "postId", "columnName": "postId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "embeddedPostId", "columnName": "embeddedPostId", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "postId", "embeddedPostId" ] }, "indices": [ { "name": "index_postPosts_postId", "unique": false, "columnNames": [ "postId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postPosts_postId` ON `${TABLE_NAME}` (`postId`)" }, { "name": "index_postPosts_embeddedPostId", "unique": false, "columnNames": [ "embeddedPostId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postPosts_embeddedPostId` ON `${TABLE_NAME}` (`embeddedPostId`)" } ], "foreignKeys": [ { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "postId" ], "referencedColumns": [ "cid" ] }, { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "embeddedPostId" ], "referencedColumns": [ "cid" ] } ] }, { "tableName": "posts", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`cid` TEXT NOT NULL, `uri` TEXT, `authorId` TEXT, `replyCount` INTEGER, `repostCount` INTEGER, `likeCount` INTEGER, `quoteCount` INTEGER, `indexedAt` INTEGER NOT NULL, `text` TEXT, `createdAt` INTEGER, PRIMARY KEY(`cid`))", "fields": [ { "fieldPath": "cid", "columnName": "cid", "affinity": "TEXT", "notNull": true }, { "fieldPath": "uri", "columnName": "uri", "affinity": "TEXT" }, { "fieldPath": "authorId", "columnName": "authorId", "affinity": "TEXT" }, { "fieldPath": "replyCount", "columnName": "replyCount", "affinity": "INTEGER" }, { "fieldPath": "repostCount", "columnName": "repostCount", "affinity": "INTEGER" }, { "fieldPath": "likeCount", "columnName": "likeCount", "affinity": "INTEGER" }, { "fieldPath": "quoteCount", "columnName": "quoteCount", "affinity": "INTEGER" }, { "fieldPath": "indexedAt", "columnName": "indexedAt", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "record.text", "columnName": "text", "affinity": "TEXT" }, { "fieldPath": "record.createdAt", "columnName": "createdAt", "affinity": "INTEGER" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "cid" ] } }, { "tableName": "postAuthors", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`postId` TEXT NOT NULL, `authorId` TEXT NOT NULL, PRIMARY KEY(`postId`, `authorId`), FOREIGN KEY(`postId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`authorId`) REFERENCES `profiles`(`did`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "postId", "columnName": "postId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "authorId", "columnName": "authorId", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "postId", "authorId" ] }, "indices": [ { "name": "index_postAuthors_postId", "unique": false, "columnNames": [ "postId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postAuthors_postId` ON `${TABLE_NAME}` (`postId`)" }, { "name": "index_postAuthors_authorId", "unique": false, "columnNames": [ "authorId" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_postAuthors_authorId` ON `${TABLE_NAME}` (`authorId`)" } ], "foreignKeys": [ { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "postId" ], "referencedColumns": [ "cid" ] }, { "table": "profiles", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "authorId" ], "referencedColumns": [ "did" ] } ] }, { "tableName": "postThreads", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`parentPostId` TEXT NOT NULL, `postId` TEXT NOT NULL, PRIMARY KEY(`parentPostId`, `postId`), FOREIGN KEY(`parentPostId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`postId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "parentPostId", "columnName": "parentPostId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "postId", "columnName": "postId", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "parentPostId", "postId" ] }, "foreignKeys": [ { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "parentPostId" ], "referencedColumns": [ "cid" ] }, { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "postId" ], "referencedColumns": [ "cid" ] } ] }, { "tableName": "postViewerStatistics", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`postId` TEXT NOT NULL, `liked` INTEGER NOT NULL, `reposted` INTEGER NOT NULL, `threadMuted` INTEGER NOT NULL, `replyDisabled` INTEGER NOT NULL, `embeddingDisabled` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, PRIMARY KEY(`postId`), FOREIGN KEY(`postId`) REFERENCES `posts`(`cid`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "postId", "columnName": "postId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "liked", "columnName": "liked", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "reposted", "columnName": "reposted", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "threadMuted", "columnName": "threadMuted", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "replyDisabled", "columnName": "replyDisabled", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "embeddingDisabled", "columnName": "embeddingDisabled", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "pinned", "columnName": "pinned", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "postId" ] }, "foreignKeys": [ { "table": "posts", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "postId" ], "referencedColumns": [ "cid" ] } ] }, { "tableName": "profileProfileRelationships", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`profileId` TEXT NOT NULL, `otherProfileId` TEXT NOT NULL, `blocking` INTEGER NOT NULL, `muted` INTEGER NOT NULL, `follows` INTEGER NOT NULL, PRIMARY KEY(`profileId`, `otherProfileId`), FOREIGN KEY(`profileId`) REFERENCES `profiles`(`did`) ON UPDATE NO ACTION ON DELETE CASCADE , FOREIGN KEY(`otherProfileId`) REFERENCES `profiles`(`did`) ON UPDATE NO ACTION ON DELETE CASCADE )", "fields": [ { "fieldPath": "profileId", "columnName": "profileId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "otherProfileId", "columnName": "otherProfileId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "blocking", "columnName": "blocking", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "muted", "columnName": "muted", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "follows", "columnName": "follows", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "profileId", "otherProfileId" ] }, "foreignKeys": [ { "table": "profiles", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "profileId" ], "referencedColumns": [ "did" ] }, { "table": "profiles", "onDelete": "CASCADE", "onUpdate": "NO ACTION", "columns": [ "otherProfileId" ], "referencedColumns": [ "did" ] } ] }, { "tableName": "profiles", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`did` TEXT NOT NULL, `handle` TEXT NOT NULL, `displayName` TEXT, `description` TEXT, `avatar` TEXT, `banner` TEXT, `followersCount` INTEGER, `followsCount` INTEGER, `postsCount` INTEGER, `joinedViaStarterPack` TEXT, `indexedAt` INTEGER, `createdAt` INTEGER, PRIMARY KEY(`did`))", "fields": [ { "fieldPath": "did", "columnName": "did", "affinity": "TEXT", "notNull": true }, { "fieldPath": "handle", "columnName": "handle", "affinity": "TEXT", "notNull": true }, { "fieldPath": "displayName", "columnName": "displayName", "affinity": "TEXT" }, { "fieldPath": "description", "columnName": "description", "affinity": "TEXT" }, { "fieldPath": "avatar", "columnName": "avatar", "affinity": "TEXT" }, { "fieldPath": "banner", "columnName": "banner", "affinity": "TEXT" }, { "fieldPath": "followersCount", "columnName": "followersCount", "affinity": "INTEGER" }, { "fieldPath": "followsCount", "columnName": "followsCount", "affinity": "INTEGER" }, { "fieldPath": "postsCount", "columnName": "postsCount", "affinity": "INTEGER" }, { "fieldPath": "joinedViaStarterPack", "columnName": "joinedViaStarterPack", "affinity": "TEXT" }, { "fieldPath": "indexedAt", "columnName": "indexedAt", "affinity": "INTEGER" }, { "fieldPath": "createdAt", "columnName": "createdAt", "affinity": "INTEGER" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "did" ] } }, { "tableName": "timelineItems", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`postId` TEXT NOT NULL, `sourceId` TEXT NOT NULL, `reposter` TEXT, `isPinned` INTEGER NOT NULL, `indexedAt` INTEGER NOT NULL, `id` TEXT NOT NULL, `rootPostId` TEXT, `parentPostId` TEXT, PRIMARY KEY(`id`))", "fields": [ { "fieldPath": "postId", "columnName": "postId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "sourceId", "columnName": "sourceId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "reposter", "columnName": "reposter", "affinity": "TEXT" }, { "fieldPath": "isPinned", "columnName": "isPinned", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "indexedAt", "columnName": "indexedAt", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "id", "columnName": "id", "affinity": "TEXT", "notNull": true }, { "fieldPath": "reply.rootPostId", "columnName": "rootPostId", "affinity": "TEXT" }, { "fieldPath": "reply.parentPostId", "columnName": "parentPostId", "affinity": "TEXT" } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "id" ] }, "indices": [ { "name": "index_timelineItems_indexedAt", "unique": false, "columnNames": [ "indexedAt" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_timelineItems_indexedAt` ON `${TABLE_NAME}` (`indexedAt`)" } ] }, { "tableName": "timelineFetchKeys", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`sourceId` TEXT NOT NULL, `lastFetchedAt` INTEGER NOT NULL, PRIMARY KEY(`sourceId`))", "fields": [ { "fieldPath": "sourceId", "columnName": "sourceId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "lastFetchedAt", "columnName": "lastFetchedAt", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": false, "columnNames": [ "sourceId" ] } } ], "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, 'd9a6572007739d47bf16664b39c42437')" ] }}