{ "formatVersion": 1, "database": { "version": 3, "identityHash": "cf9143b35163dbf4c74a088a814ba37a", "entities": [ { "tableName": "VpnConfigEntity", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `privateKey` TEXT NOT NULL, `publicKey` TEXT NOT NULL, `address` TEXT NOT NULL, `dns` TEXT NOT NULL, `mtu` INTEGER NOT NULL, `peerPublicKey` TEXT NOT NULL, `peerPresharedKey` TEXT NOT NULL, `peerAllowedIPs` TEXT NOT NULL, `peerEndpoint` TEXT NOT NULL, `peerKeepalive` INTEGER NOT NULL, `lastUsed` INTEGER NOT NULL, `provider` TEXT NOT NULL, `countryCode` TEXT NOT NULL, `city` TEXT NOT NULL, `bundleId` TEXT NOT NULL, `bundleServerId` TEXT NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "name", "columnName": "name", "affinity": "TEXT", "notNull": true }, { "fieldPath": "privateKey", "columnName": "privateKey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "publicKey", "columnName": "publicKey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "address", "columnName": "address", "affinity": "TEXT", "notNull": true }, { "fieldPath": "dns", "columnName": "dns", "affinity": "TEXT", "notNull": true }, { "fieldPath": "mtu", "columnName": "mtu", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "peerPublicKey", "columnName": "peerPublicKey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "peerPresharedKey", "columnName": "peerPresharedKey", "affinity": "TEXT", "notNull": true }, { "fieldPath": "peerAllowedIPs", "columnName": "peerAllowedIPs", "affinity": "TEXT", "notNull": true }, { "fieldPath": "peerEndpoint", "columnName": "peerEndpoint", "affinity": "TEXT", "notNull": true }, { "fieldPath": "peerKeepalive", "columnName": "peerKeepalive", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "lastUsed", "columnName": "lastUsed", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "provider", "columnName": "provider", "affinity": "TEXT", "notNull": true }, { "fieldPath": "countryCode", "columnName": "countryCode", "affinity": "TEXT", "notNull": true }, { "fieldPath": "city", "columnName": "city", "affinity": "TEXT", "notNull": true }, { "fieldPath": "bundleId", "columnName": "bundleId", "affinity": "TEXT", "notNull": true }, { "fieldPath": "bundleServerId", "columnName": "bundleServerId", "affinity": "TEXT", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] } }, { "tableName": "ConnectionLogEntity", "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `timestampStart` INTEGER NOT NULL, `timestampLast` INTEGER NOT NULL, `uid` INTEGER NOT NULL, `packageName` TEXT, `appLabel` TEXT NOT NULL, `protocol` TEXT NOT NULL, `localIp` TEXT NOT NULL, `localPort` INTEGER NOT NULL, `remoteIp` TEXT NOT NULL, `remotePort` INTEGER NOT NULL, `domain` TEXT, `txBytes` INTEGER NOT NULL, `rxBytes` INTEGER NOT NULL, `requestCount` INTEGER NOT NULL)", "fields": [ { "fieldPath": "id", "columnName": "id", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "timestampStart", "columnName": "timestampStart", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "timestampLast", "columnName": "timestampLast", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "uid", "columnName": "uid", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "packageName", "columnName": "packageName", "affinity": "TEXT" }, { "fieldPath": "appLabel", "columnName": "appLabel", "affinity": "TEXT", "notNull": true }, { "fieldPath": "protocol", "columnName": "protocol", "affinity": "TEXT", "notNull": true }, { "fieldPath": "localIp", "columnName": "localIp", "affinity": "TEXT", "notNull": true }, { "fieldPath": "localPort", "columnName": "localPort", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "remoteIp", "columnName": "remoteIp", "affinity": "TEXT", "notNull": true }, { "fieldPath": "remotePort", "columnName": "remotePort", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "domain", "columnName": "domain", "affinity": "TEXT" }, { "fieldPath": "txBytes", "columnName": "txBytes", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "rxBytes", "columnName": "rxBytes", "affinity": "INTEGER", "notNull": true }, { "fieldPath": "requestCount", "columnName": "requestCount", "affinity": "INTEGER", "notNull": true } ], "primaryKey": { "autoGenerate": true, "columnNames": [ "id" ] }, "indices": [ { "name": "index_ConnectionLogEntity_packageName_domain_timestampLast_remoteIp_uid_protocol", "unique": false, "columnNames": [ "packageName", "domain", "timestampLast", "remoteIp", "uid", "protocol" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_ConnectionLogEntity_packageName_domain_timestampLast_remoteIp_uid_protocol` ON `${TABLE_NAME}` (`packageName`, `domain`, `timestampLast`, `remoteIp`, `uid`, `protocol`)" }, { "name": "index_ConnectionLogEntity_remoteIp_remotePort_protocol_uid", "unique": false, "columnNames": [ "remoteIp", "remotePort", "protocol", "uid" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_ConnectionLogEntity_remoteIp_remotePort_protocol_uid` ON `${TABLE_NAME}` (`remoteIp`, `remotePort`, `protocol`, `uid`)" }, { "name": "index_ConnectionLogEntity_domain", "unique": false, "columnNames": [ "domain" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_ConnectionLogEntity_domain` ON `${TABLE_NAME}` (`domain`)" }, { "name": "index_ConnectionLogEntity_packageName", "unique": false, "columnNames": [ "packageName" ], "orders": [], "createSql": "CREATE INDEX IF NOT EXISTS `index_ConnectionLogEntity_packageName` ON `${TABLE_NAME}` (`packageName`)" } ] } ], "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, 'cf9143b35163dbf4c74a088a814ba37a')" ] } }