123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709 |
- {
- "formatVersion": 1,
- "database": {
- "version": 10,
- "identityHash": "c07a2543aa583e08e7b3208f44fcc7ac",
- "entities": [
- {
- "tableName": "User",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `userId` TEXT, `username` TEXT, `baseUrl` TEXT, `token` TEXT, `displayName` TEXT, `pushConfigurationState` TEXT, `capabilities` TEXT, `serverVersion` TEXT DEFAULT '', `clientCertificate` TEXT, `externalSignalingServer` TEXT, `current` INTEGER NOT NULL, `scheduledForDeletion` INTEGER NOT NULL)",
- "fields": [
- {
- "fieldPath": "id",
- "columnName": "id",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "userId",
- "columnName": "userId",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "username",
- "columnName": "username",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "baseUrl",
- "columnName": "baseUrl",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "token",
- "columnName": "token",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "displayName",
- "columnName": "displayName",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "pushConfigurationState",
- "columnName": "pushConfigurationState",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "capabilities",
- "columnName": "capabilities",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "serverVersion",
- "columnName": "serverVersion",
- "affinity": "TEXT",
- "notNull": false,
- "defaultValue": "''"
- },
- {
- "fieldPath": "clientCertificate",
- "columnName": "clientCertificate",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "externalSignalingServer",
- "columnName": "externalSignalingServer",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "current",
- "columnName": "current",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "scheduledForDeletion",
- "columnName": "scheduledForDeletion",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": true,
- "columnNames": [
- "id"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "ArbitraryStorage",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountIdentifier` INTEGER NOT NULL, `key` TEXT NOT NULL, `object` TEXT, `value` TEXT, PRIMARY KEY(`accountIdentifier`, `key`))",
- "fields": [
- {
- "fieldPath": "accountIdentifier",
- "columnName": "accountIdentifier",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "key",
- "columnName": "key",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "storageObject",
- "columnName": "object",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "value",
- "columnName": "value",
- "affinity": "TEXT",
- "notNull": false
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "accountIdentifier",
- "key"
- ]
- },
- "indices": [],
- "foreignKeys": []
- },
- {
- "tableName": "Conversations",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`internalId` TEXT NOT NULL, `accountId` INTEGER NOT NULL, `token` TEXT, `name` TEXT, `displayName` TEXT, `description` TEXT, `type` TEXT, `lastPing` INTEGER NOT NULL, `participantType` TEXT, `hasPassword` INTEGER NOT NULL, `sessionId` TEXT, `actorId` TEXT, `actorType` TEXT, `isFavorite` INTEGER NOT NULL, `lastActivity` INTEGER NOT NULL, `unreadMessages` INTEGER NOT NULL, `unreadMention` INTEGER NOT NULL, `lastMessageJson` TEXT, `objectType` TEXT, `notificationLevel` TEXT, `readOnly` TEXT, `lobbyState` TEXT, `lobbyTimer` INTEGER, `lastReadMessage` INTEGER NOT NULL, `lastCommonReadMessage` INTEGER NOT NULL, `hasCall` INTEGER NOT NULL, `callFlag` INTEGER NOT NULL, `canStartCall` INTEGER NOT NULL, `canLeaveConversation` INTEGER, `canDeleteConversation` INTEGER, `unreadMentionDirect` INTEGER, `notificationCalls` INTEGER, `permissions` INTEGER NOT NULL, `messageExpiration` INTEGER NOT NULL, `status` TEXT, `statusIcon` TEXT, `statusMessage` TEXT, `statusClearAt` INTEGER, `callRecording` INTEGER NOT NULL, `avatarVersion` TEXT, `isCustomAvatar` INTEGER, `callStartTime` INTEGER, `recordingConsent` INTEGER NOT NULL, `remoteServer` TEXT, `remoteToken` TEXT, PRIMARY KEY(`internalId`), FOREIGN KEY(`accountId`) REFERENCES `User`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )",
- "fields": [
- {
- "fieldPath": "internalId",
- "columnName": "internalId",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "accountId",
- "columnName": "accountId",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "token",
- "columnName": "token",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "name",
- "columnName": "name",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "displayName",
- "columnName": "displayName",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "description",
- "columnName": "description",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "type",
- "columnName": "type",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "lastPing",
- "columnName": "lastPing",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "participantType",
- "columnName": "participantType",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "hasPassword",
- "columnName": "hasPassword",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "sessionId",
- "columnName": "sessionId",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "actorId",
- "columnName": "actorId",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "actorType",
- "columnName": "actorType",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "favorite",
- "columnName": "isFavorite",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "lastActivity",
- "columnName": "lastActivity",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "unreadMessages",
- "columnName": "unreadMessages",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "unreadMention",
- "columnName": "unreadMention",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "lastMessageJson",
- "columnName": "lastMessageJson",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "objectType",
- "columnName": "objectType",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "notificationLevel",
- "columnName": "notificationLevel",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "conversationReadOnlyState",
- "columnName": "readOnly",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "lobbyState",
- "columnName": "lobbyState",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "lobbyTimer",
- "columnName": "lobbyTimer",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "lastReadMessage",
- "columnName": "lastReadMessage",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "lastCommonReadMessage",
- "columnName": "lastCommonReadMessage",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "hasCall",
- "columnName": "hasCall",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "callFlag",
- "columnName": "callFlag",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "canStartCall",
- "columnName": "canStartCall",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "canLeaveConversation",
- "columnName": "canLeaveConversation",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "canDeleteConversation",
- "columnName": "canDeleteConversation",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "unreadMentionDirect",
- "columnName": "unreadMentionDirect",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "notificationCalls",
- "columnName": "notificationCalls",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "permissions",
- "columnName": "permissions",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "messageExpiration",
- "columnName": "messageExpiration",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "status",
- "columnName": "status",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "statusIcon",
- "columnName": "statusIcon",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "statusMessage",
- "columnName": "statusMessage",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "statusClearAt",
- "columnName": "statusClearAt",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "callRecording",
- "columnName": "callRecording",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "avatarVersion",
- "columnName": "avatarVersion",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "hasCustomAvatar",
- "columnName": "isCustomAvatar",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "callStartTime",
- "columnName": "callStartTime",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "recordingConsentRequired",
- "columnName": "recordingConsent",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "remoteServer",
- "columnName": "remoteServer",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "remoteToken",
- "columnName": "remoteToken",
- "affinity": "TEXT",
- "notNull": false
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "internalId"
- ]
- },
- "indices": [
- {
- "name": "index_Conversations_accountId",
- "unique": false,
- "columnNames": [
- "accountId"
- ],
- "orders": [],
- "createSql": "CREATE INDEX IF NOT EXISTS `index_Conversations_accountId` ON `${TABLE_NAME}` (`accountId`)"
- }
- ],
- "foreignKeys": [
- {
- "table": "User",
- "onDelete": "CASCADE",
- "onUpdate": "CASCADE",
- "columns": [
- "accountId"
- ],
- "referencedColumns": [
- "id"
- ]
- }
- ]
- },
- {
- "tableName": "ChatMessages",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`internalId` TEXT NOT NULL, `accountId` INTEGER, `token` TEXT, `id` INTEGER NOT NULL, `internalConversationId` TEXT, `actorType` TEXT, `actorId` TEXT, `actorDisplayName` TEXT, `timestamp` INTEGER NOT NULL, `systemMessage` TEXT, `messageType` TEXT, `isReplyable` INTEGER NOT NULL, `message` TEXT, `messageParameters` TEXT, `expirationTimestamp` INTEGER NOT NULL, `parent` INTEGER, `reactions` TEXT, `reactionsSelf` TEXT, `markdown` INTEGER, `lastEditActorType` TEXT, `lastEditActorId` TEXT, `lastEditActorDisplayName` TEXT, `lastEditTimestamp` INTEGER, `deleted` INTEGER NOT NULL, PRIMARY KEY(`internalId`), FOREIGN KEY(`internalConversationId`) REFERENCES `Conversations`(`internalId`) ON UPDATE CASCADE ON DELETE CASCADE )",
- "fields": [
- {
- "fieldPath": "internalId",
- "columnName": "internalId",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "accountId",
- "columnName": "accountId",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "token",
- "columnName": "token",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "id",
- "columnName": "id",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "internalConversationId",
- "columnName": "internalConversationId",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "actorType",
- "columnName": "actorType",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "actorId",
- "columnName": "actorId",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "actorDisplayName",
- "columnName": "actorDisplayName",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "timestamp",
- "columnName": "timestamp",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "systemMessageType",
- "columnName": "systemMessage",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "messageType",
- "columnName": "messageType",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "replyable",
- "columnName": "isReplyable",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "message",
- "columnName": "message",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "messageParameters",
- "columnName": "messageParameters",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "expirationTimestamp",
- "columnName": "expirationTimestamp",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "parentMessageId",
- "columnName": "parent",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "reactions",
- "columnName": "reactions",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "reactionsSelf",
- "columnName": "reactionsSelf",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "renderMarkdown",
- "columnName": "markdown",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "lastEditActorType",
- "columnName": "lastEditActorType",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "lastEditActorId",
- "columnName": "lastEditActorId",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "lastEditActorDisplayName",
- "columnName": "lastEditActorDisplayName",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "lastEditTimestamp",
- "columnName": "lastEditTimestamp",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "deleted",
- "columnName": "deleted",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": false,
- "columnNames": [
- "internalId"
- ]
- },
- "indices": [
- {
- "name": "index_ChatMessages_internalId",
- "unique": true,
- "columnNames": [
- "internalId"
- ],
- "orders": [],
- "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_ChatMessages_internalId` ON `${TABLE_NAME}` (`internalId`)"
- },
- {
- "name": "index_ChatMessages_internalConversationId",
- "unique": false,
- "columnNames": [
- "internalConversationId"
- ],
- "orders": [],
- "createSql": "CREATE INDEX IF NOT EXISTS `index_ChatMessages_internalConversationId` ON `${TABLE_NAME}` (`internalConversationId`)"
- }
- ],
- "foreignKeys": [
- {
- "table": "Conversations",
- "onDelete": "CASCADE",
- "onUpdate": "CASCADE",
- "columns": [
- "internalConversationId"
- ],
- "referencedColumns": [
- "internalId"
- ]
- }
- ]
- },
- {
- "tableName": "ChatBlocks",
- "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `internalConversationId` TEXT NOT NULL, `accountId` INTEGER, `token` TEXT, `oldestMessageId` INTEGER NOT NULL, `newestMessageId` INTEGER NOT NULL, `hasHistory` INTEGER NOT NULL, FOREIGN KEY(`internalConversationId`) REFERENCES `Conversations`(`internalId`) ON UPDATE CASCADE ON DELETE CASCADE )",
- "fields": [
- {
- "fieldPath": "id",
- "columnName": "id",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "internalConversationId",
- "columnName": "internalConversationId",
- "affinity": "TEXT",
- "notNull": true
- },
- {
- "fieldPath": "accountId",
- "columnName": "accountId",
- "affinity": "INTEGER",
- "notNull": false
- },
- {
- "fieldPath": "token",
- "columnName": "token",
- "affinity": "TEXT",
- "notNull": false
- },
- {
- "fieldPath": "oldestMessageId",
- "columnName": "oldestMessageId",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "newestMessageId",
- "columnName": "newestMessageId",
- "affinity": "INTEGER",
- "notNull": true
- },
- {
- "fieldPath": "hasHistory",
- "columnName": "hasHistory",
- "affinity": "INTEGER",
- "notNull": true
- }
- ],
- "primaryKey": {
- "autoGenerate": true,
- "columnNames": [
- "id"
- ]
- },
- "indices": [],
- "foreignKeys": [
- {
- "table": "Conversations",
- "onDelete": "CASCADE",
- "onUpdate": "CASCADE",
- "columns": [
- "internalConversationId"
- ],
- "referencedColumns": [
- "internalId"
- ]
- }
- ]
- }
- ],
- "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, 'c07a2543aa583e08e7b3208f44fcc7ac')"
- ]
- }
- }
|