build: export Room schemas everywhere; drop stale proguard keeps
- Commit
bdf73f783c657f90a79729015b4721eb0cbc2e62- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-20 21:30 UTC (15 days ago)
- Parents
f1dd701
Only todo wired room.schemaLocation, so the other committed schema dirs were stale artifacts (clock v1 vs code v3, findfamily v1 vs v14, photos v1 vs v20, passwords v2 vs v5) and ~21 databases had none - migrations had no expected schema to diff against. The shared Room wiring now sets schemaLocation for every KSP module, and the main @Database classes flip exportSchema to true. All schemas regenerated and verified version == code version (clock 3, findfamily 14, photos 20/1, passwords 5, music 5, notes 4, openassistant 5, todo 3, email 21, and fifteen more newly covered). Dead-FQN dirs deleted (music's old package, notes' data.database, openassistant's orphans); historical versions kept for migration tests. youpipe's proguard file still kept org.schabi.newpipe classes for a dependency that no longer exists (extractor is the Rust port) - removed; media3 rules kept. Verified: kspDevKotlin for all affected modules; youpipe compiles.
Diff
appstore/schemas/com.vayunmathur.appstore.data.AppDatabase/9.json
diff --git a/appstore/schemas/com.vayunmathur.appstore.data.AppDatabase/9.json b/appstore/schemas/com.vayunmathur.appstore.data.AppDatabase/9.jsonnew file mode 100644index 0000000000..158b0e9fd1--- /dev/null+++ b/appstore/schemas/com.vayunmathur.appstore.data.AppDatabase/9.json@@ -0,0 +1,320 @@+{+ "formatVersion": 1,+ "database": {+ "version": 9,+ "identityHash": "46b6f56b6d3f17289295c91917c08d07",+ "entities": [+ {+ "tableName": "RepoEntity",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `name` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `fingerprint` TEXT, `lastSync` INTEGER NOT NULL, PRIMARY KEY(`url`))",+ "fields": [+ {+ "fieldPath": "url",+ "columnName": "url",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "enabled",+ "columnName": "enabled",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "fingerprint",+ "columnName": "fingerprint",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "lastSync",+ "columnName": "lastSync",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "url"+ ]+ }+ },+ {+ "tableName": "CachedAppEntity",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`packageName` TEXT NOT NULL, `source` TEXT NOT NULL, `name` TEXT NOT NULL, `summary` TEXT NOT NULL, `description` TEXT NOT NULL, `iconUrl` TEXT, `author` TEXT, `categories` TEXT NOT NULL, `versionName` TEXT, `versionCode` INTEGER NOT NULL, `sizeBytes` INTEGER NOT NULL, `apkUrl` TEXT, `targetSdk` INTEGER, `reproducible` INTEGER NOT NULL, `repoUrl` TEXT, `lastUpdated` INTEGER NOT NULL, `expectedSigners` TEXT, `apkSha256` TEXT, `license` TEXT, `website` TEXT, `sourceCode` TEXT, `screenshots` TEXT, `featureGraphic` TEXT, `rating` REAL, `ratingCount` INTEGER NOT NULL, `installs` INTEGER NOT NULL, `updatedOn` TEXT, `contentRating` TEXT, `containsAds` INTEGER NOT NULL, `antiFeatures` TEXT, `whatsNew` TEXT, `addedTimestamp` INTEGER NOT NULL, `tvScreenshots` TEXT, `requiredFeatures` TEXT, `tvCompatible` INTEGER, `splitFiles` TEXT, PRIMARY KEY(`packageName`))",+ "fields": [+ {+ "fieldPath": "packageName",+ "columnName": "packageName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "source",+ "columnName": "source",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "summary",+ "columnName": "summary",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "description",+ "columnName": "description",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "iconUrl",+ "columnName": "iconUrl",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "author",+ "columnName": "author",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "categories",+ "columnName": "categories",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "versionName",+ "columnName": "versionName",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "versionCode",+ "columnName": "versionCode",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "sizeBytes",+ "columnName": "sizeBytes",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "apkUrl",+ "columnName": "apkUrl",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "targetSdk",+ "columnName": "targetSdk",+ "affinity": "INTEGER"+ },+ {+ "fieldPath": "reproducible",+ "columnName": "reproducible",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "repoUrl",+ "columnName": "repoUrl",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "lastUpdated",+ "columnName": "lastUpdated",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "expectedSigners",+ "columnName": "expectedSigners",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "apkSha256",+ "columnName": "apkSha256",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "license",+ "columnName": "license",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "website",+ "columnName": "website",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "sourceCode",+ "columnName": "sourceCode",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "screenshots",+ "columnName": "screenshots",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "featureGraphic",+ "columnName": "featureGraphic",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "rating",+ "columnName": "rating",+ "affinity": "REAL"+ },+ {+ "fieldPath": "ratingCount",+ "columnName": "ratingCount",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "installs",+ "columnName": "installs",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "updatedOn",+ "columnName": "updatedOn",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "contentRating",+ "columnName": "contentRating",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "containsAds",+ "columnName": "containsAds",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "antiFeatures",+ "columnName": "antiFeatures",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "whatsNew",+ "columnName": "whatsNew",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "addedTimestamp",+ "columnName": "addedTimestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "tvScreenshots",+ "columnName": "tvScreenshots",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "requiredFeatures",+ "columnName": "requiredFeatures",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "tvCompatible",+ "columnName": "tvCompatible",+ "affinity": "INTEGER"+ },+ {+ "fieldPath": "splitFiles",+ "columnName": "splitFiles",+ "affinity": "TEXT"+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "packageName"+ ]+ }+ },+ {+ "tableName": "PinnedStampEntity",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`packageName` TEXT NOT NULL, `stampSha256` TEXT NOT NULL, `firstSeen` INTEGER NOT NULL, PRIMARY KEY(`packageName`))",+ "fields": [+ {+ "fieldPath": "packageName",+ "columnName": "packageName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "stampSha256",+ "columnName": "stampSha256",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "firstSeen",+ "columnName": "firstSeen",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "packageName"+ ]+ }+ },+ {+ "tableName": "AccrescentTrustEntity",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`appId` TEXT NOT NULL, `signingCertHash` TEXT NOT NULL, `minVersionCode` INTEGER NOT NULL, PRIMARY KEY(`appId`))",+ "fields": [+ {+ "fieldPath": "appId",+ "columnName": "appId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "signingCertHash",+ "columnName": "signingCertHash",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "minVersionCode",+ "columnName": "minVersionCode",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "appId"+ ]+ }+ }+ ],+ "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, '46b6f56b6d3f17289295c91917c08d07')"+ ]+ }+}\ No newline at end of file
appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.kt
diff --git a/appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.kt b/appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.ktindex bea4609be7..5b042fcb66 100644--- a/appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.kt+++ b/appstore/src/main/java/com/vayunmathur/appstore/data/AppDatabase.kt@@ -398,7 +398,7 @@ interface CachedAppDao { AccrescentTrustEntity::class, ], version = 9,- exportSchema = false+ exportSchema = true ) /** Room database holding repositories, cached apps and trust records. */ abstract class AppDatabase : RoomDatabase() {
build-logic/src/main/kotlin/RoomExtension.kt
diff --git a/build-logic/src/main/kotlin/RoomExtension.kt b/build-logic/src/main/kotlin/RoomExtension.ktindex 5a7a485afc..313d7c02c5 100644--- a/build-logic/src/main/kotlin/RoomExtension.kt+++ b/build-logic/src/main/kotlin/RoomExtension.kt@@ -1,6 +1,26 @@+import com.google.devtools.ksp.gradle.KspExtension+import org.gradle.api.Project import org.gradle.kotlin.dsl.DependencyHandlerScope+import org.gradle.kotlin.dsl.configure fun DependencyHandlerScope.implementRoom(libs: org.gradle.accessors.dm.LibrariesForLibs) { add("implementation", libs.androidx.room3.runtime) add("ksp", libs.androidx.room3.compiler) }++/**+ * Every Room module exports its schema to `<module>/schemas` (committed, so+ * migrations can be tested against the actual previous schema). Wired once+ * here instead of a per-module `ksp { arg("room.schemaLocation", ...) }`+ * block (only `:todo` had one, and the other committed schema dirs went+ * stale). Configuration-cache safe: resolves the project dir eagerly and+ * captures only the resulting String.+ */+fun Project.wireRoomSchemaLocation() {+ val schemaDir = layout.projectDirectory.dir("schemas").asFile.absolutePath+ pluginManager.withPlugin("com.google.devtools.ksp") {+ extensions.configure<KspExtension> {+ arg("room.schemaLocation", schemaDir)+ }+ }+}
build-logic/src/main/kotlin/common-conventions-app.gradle.kts
diff --git a/build-logic/src/main/kotlin/common-conventions-app.gradle.kts b/build-logic/src/main/kotlin/common-conventions-app.gradle.ktsindex 0f34fbc193..e690b8a337 100644--- a/build-logic/src/main/kotlin/common-conventions-app.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-app.gradle.kts@@ -22,6 +22,7 @@ val libs = the<org.gradle.accessors.dm.LibrariesForLibs>() // every Test task builds + links the host libs of this module and each project // dep that registers one. Lazy — assemble/install never build them. wireRustHostLibsForUnitTests()+wireRoomSchemaLocation() includeRobolectricClassesInCoverage() /**
build-logic/src/main/kotlin/common-conventions-library.gradle.kts
diff --git a/build-logic/src/main/kotlin/common-conventions-library.gradle.kts b/build-logic/src/main/kotlin/common-conventions-library.gradle.ktsindex 96bea25696..05befb2538 100644--- a/build-logic/src/main/kotlin/common-conventions-library.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-library.gradle.kts@@ -21,6 +21,7 @@ val libs = the<org.gradle.accessors.dm.LibrariesForLibs>() // every Test task builds + links the host libs of this module and each project // dep that registers one. Lazy — assemble/install never build them. wireRustHostLibsForUnitTests()+wireRoomSchemaLocation() includeRobolectricClassesInCoverage() configure<com.android.build.api.dsl.LibraryExtension> {
build-logic/src/main/kotlin/common-conventions-wear.gradle.kts
diff --git a/build-logic/src/main/kotlin/common-conventions-wear.gradle.kts b/build-logic/src/main/kotlin/common-conventions-wear.gradle.ktsindex a58c5bbfd1..194d8547c1 100644--- a/build-logic/src/main/kotlin/common-conventions-wear.gradle.kts+++ b/build-logic/src/main/kotlin/common-conventions-wear.gradle.kts@@ -15,6 +15,8 @@ plugins { val libs = the<org.gradle.accessors.dm.LibrariesForLibs>() +wireRoomSchemaLocation()+ // Shared with common-conventions-app: version.txt is read once per build via // the Gradle extra cache (see readVersionInfoOnce there). No wear module // exists yet (settings.gradle.kts has no wear consumers); when one lands,
clock/schemas/com.vayunmathur.clock.data.ClockDatabase/3.json
diff --git a/clock/schemas/com.vayunmathur.clock.data.ClockDatabase/3.json b/clock/schemas/com.vayunmathur.clock.data.ClockDatabase/3.jsonnew file mode 100644index 0000000000..701088f6ad--- /dev/null+++ b/clock/schemas/com.vayunmathur.clock.data.ClockDatabase/3.json@@ -0,0 +1,131 @@+{+ "formatVersion": 1,+ "database": {+ "version": 3,+ "identityHash": "95b7b343a9ef010cab044b38514a3c84",+ "entities": [+ {+ "tableName": "Timer",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`isRunning` INTEGER NOT NULL, `name` TEXT NOT NULL, `remainingStartTime` INTEGER NOT NULL, `remainingLength` INTEGER NOT NULL, `totalLength` INTEGER NOT NULL, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",+ "fields": [+ {+ "fieldPath": "isRunning",+ "columnName": "isRunning",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "remainingStartTime",+ "columnName": "remainingStartTime",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "remainingLength",+ "columnName": "remainingLength",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "totalLength",+ "columnName": "totalLength",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "Alarm",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`time` INTEGER NOT NULL, `name` TEXT NOT NULL, `enabled` INTEGER NOT NULL, `days` INTEGER NOT NULL, `ringtoneUri` TEXT, `vibrate` INTEGER NOT NULL, `snoozeMinutes` INTEGER NOT NULL, `gradualVolumeSeconds` INTEGER NOT NULL, `snoozedUntil` INTEGER, `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)",+ "fields": [+ {+ "fieldPath": "time",+ "columnName": "time",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "enabled",+ "columnName": "enabled",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "days",+ "columnName": "days",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "ringtoneUri",+ "columnName": "ringtoneUri",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "vibrate",+ "columnName": "vibrate",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "snoozeMinutes",+ "columnName": "snoozeMinutes",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "gradualVolumeSeconds",+ "columnName": "gradualVolumeSeconds",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "snoozedUntil",+ "columnName": "snoozedUntil",+ "affinity": "INTEGER"+ },+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ }+ ],+ "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, '95b7b343a9ef010cab044b38514a3c84')"+ ]+ }+}\ No newline at end of file
clock/src/main/java/com/vayunmathur/clock/data/ClockDatabase.kt
diff --git a/clock/src/main/java/com/vayunmathur/clock/data/ClockDatabase.kt b/clock/src/main/java/com/vayunmathur/clock/data/ClockDatabase.ktindex 1b0eecb583..466622dc7f 100644--- a/clock/src/main/java/com/vayunmathur/clock/data/ClockDatabase.kt+++ b/clock/src/main/java/com/vayunmathur/clock/data/ClockDatabase.kt@@ -105,7 +105,7 @@ interface AlarmDao { /** Room database holding the clock app's timers and alarms. */ @ColumnTypeConverters(DefaultConverters::class)-@Database(entities = [Timer::class, Alarm::class], version = 3, exportSchema = false)+@Database(entities = [Timer::class, Alarm::class], version = 3, exportSchema = true) abstract class ClockDatabase: RoomDatabase() { abstract fun timerDao(): TimerDao abstract fun alarmDao(): AlarmDao
communicate/schemas/com.vayunmathur.communicate.data.rcs.RcsDatabase/3.json
diff --git a/communicate/schemas/com.vayunmathur.communicate.data.rcs.RcsDatabase/3.json b/communicate/schemas/com.vayunmathur.communicate.data.rcs.RcsDatabase/3.jsonnew file mode 100644index 0000000000..29e289fad5--- /dev/null+++ b/communicate/schemas/com.vayunmathur.communicate.data.rcs.RcsDatabase/3.json@@ -0,0 +1,274 @@+{+ "formatVersion": 1,+ "database": {+ "version": 3,+ "identityHash": "4ce414769e41a0eef207fb803988527d",+ "entities": [+ {+ "tableName": "rcs_conversation",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`remoteId` TEXT NOT NULL, `isGroup` INTEGER NOT NULL, `name` TEXT, `participants` TEXT NOT NULL, `unreadCount` INTEGER NOT NULL, `lastMessageTimestamp` INTEGER NOT NULL, PRIMARY KEY(`remoteId`))",+ "fields": [+ {+ "fieldPath": "remoteId",+ "columnName": "remoteId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "isGroup",+ "columnName": "isGroup",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "participants",+ "columnName": "participants",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "unreadCount",+ "columnName": "unreadCount",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastMessageTimestamp",+ "columnName": "lastMessageTimestamp",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "remoteId"+ ]+ }+ },+ {+ "tableName": "rcs_cached_message",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `conversationId` TEXT NOT NULL, `body` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `outgoing` INTEGER NOT NULL, `senderId` TEXT NOT NULL, `ftUrl` TEXT, `ftMime` TEXT, `status` INTEGER NOT NULL, `imdnId` TEXT NOT NULL, PRIMARY KEY(`messageId`))",+ "fields": [+ {+ "fieldPath": "messageId",+ "columnName": "messageId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "conversationId",+ "columnName": "conversationId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "body",+ "columnName": "body",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "timestamp",+ "columnName": "timestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "outgoing",+ "columnName": "outgoing",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "senderId",+ "columnName": "senderId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "ftUrl",+ "columnName": "ftUrl",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "ftMime",+ "columnName": "ftMime",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "status",+ "columnName": "status",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "imdnId",+ "columnName": "imdnId",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "messageId"+ ]+ }+ },+ {+ "tableName": "rcs_mls_identity",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`e164` TEXT NOT NULL, `identity` BLOB NOT NULL, `updatedAt` INTEGER NOT NULL, `verified` INTEGER NOT NULL, PRIMARY KEY(`e164`))",+ "fields": [+ {+ "fieldPath": "e164",+ "columnName": "e164",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "identity",+ "columnName": "identity",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "updatedAt",+ "columnName": "updatedAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "verified",+ "columnName": "verified",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "e164"+ ]+ }+ },+ {+ "tableName": "rcs_mls_group",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`groupIdHex` TEXT NOT NULL, `conversationId` TEXT NOT NULL, `storage` BLOB NOT NULL, `updatedAt` INTEGER NOT NULL, `members` TEXT NOT NULL, PRIMARY KEY(`groupIdHex`))",+ "fields": [+ {+ "fieldPath": "groupIdHex",+ "columnName": "groupIdHex",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "conversationId",+ "columnName": "conversationId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "storage",+ "columnName": "storage",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "updatedAt",+ "columnName": "updatedAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "members",+ "columnName": "members",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "groupIdHex"+ ]+ }+ },+ {+ "tableName": "rcs_outbox",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `conversationId` TEXT NOT NULL, `kind` TEXT NOT NULL, `body` TEXT NOT NULL, `attachments` TEXT NOT NULL, `attempts` INTEGER NOT NULL, `nextRetryMs` INTEGER NOT NULL, `expiryMs` INTEGER NOT NULL, `createdAt` INTEGER NOT NULL, PRIMARY KEY(`messageId`))",+ "fields": [+ {+ "fieldPath": "messageId",+ "columnName": "messageId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "conversationId",+ "columnName": "conversationId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "kind",+ "columnName": "kind",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "body",+ "columnName": "body",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "attachments",+ "columnName": "attachments",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "attempts",+ "columnName": "attempts",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "nextRetryMs",+ "columnName": "nextRetryMs",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "expiryMs",+ "columnName": "expiryMs",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "createdAt",+ "columnName": "createdAt",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "messageId"+ ]+ }+ }+ ],+ "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, '4ce414769e41a0eef207fb803988527d')"+ ]+ }+}\ No newline at end of file
communicate/schemas/com.vayunmathur.communicate.data.signal.SignalDatabase/5.json
diff --git a/communicate/schemas/com.vayunmathur.communicate.data.signal.SignalDatabase/5.json b/communicate/schemas/com.vayunmathur.communicate.data.signal.SignalDatabase/5.jsonnew file mode 100644index 0000000000..0e83a53347--- /dev/null+++ b/communicate/schemas/com.vayunmathur.communicate.data.signal.SignalDatabase/5.json@@ -0,0 +1,682 @@+{+ "formatVersion": 1,+ "database": {+ "version": 5,+ "identityHash": "505f56466a63a89d23b485fb0c8e88f6",+ "entities": [+ {+ "tableName": "signal_devices",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `phoneNumber` TEXT NOT NULL, `pushName` TEXT NOT NULL, `platform` TEXT NOT NULL, `lastSeen` INTEGER NOT NULL, `jid` TEXT NOT NULL, `timezone` TEXT NOT NULL, `loggedInAt` INTEGER NOT NULL, PRIMARY KEY(`deviceId`))",+ "fields": [+ {+ "fieldPath": "deviceId",+ "columnName": "deviceId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "phoneNumber",+ "columnName": "phoneNumber",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "pushName",+ "columnName": "pushName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "platform",+ "columnName": "platform",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "lastSeen",+ "columnName": "lastSeen",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "jid",+ "columnName": "jid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "timezone",+ "columnName": "timezone",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "loggedInAt",+ "columnName": "loggedInAt",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "deviceId"+ ]+ }+ },+ {+ "tableName": "signal_sessions",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`jid` TEXT NOT NULL, `sessionData` BLOB NOT NULL, `timestamp` INTEGER NOT NULL, `isPreKey` INTEGER NOT NULL, PRIMARY KEY(`jid`))",+ "fields": [+ {+ "fieldPath": "jid",+ "columnName": "jid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "sessionData",+ "columnName": "sessionData",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "timestamp",+ "columnName": "timestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isPreKey",+ "columnName": "isPreKey",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "jid"+ ]+ }+ },+ {+ "tableName": "signal_conversation",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`chatId` TEXT NOT NULL, `isGroup` INTEGER NOT NULL, `name` TEXT, `participants` TEXT NOT NULL, `unreadCount` INTEGER NOT NULL, `lastMessageTimestamp` INTEGER NOT NULL, `archived` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `groupMasterKey` BLOB, `groupRevision` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`chatId`))",+ "fields": [+ {+ "fieldPath": "chatId",+ "columnName": "chatId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "isGroup",+ "columnName": "isGroup",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "participants",+ "columnName": "participants",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "unreadCount",+ "columnName": "unreadCount",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastMessageTimestamp",+ "columnName": "lastMessageTimestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "archived",+ "columnName": "archived",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "pinned",+ "columnName": "pinned",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "groupMasterKey",+ "columnName": "groupMasterKey",+ "affinity": "BLOB"+ },+ {+ "fieldPath": "groupRevision",+ "columnName": "groupRevision",+ "affinity": "INTEGER",+ "notNull": true,+ "defaultValue": "0"+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "chatId"+ ]+ }+ },+ {+ "tableName": "signal_cached_message",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `conversationId` TEXT NOT NULL, `body` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `outgoing` INTEGER NOT NULL, `senderId` TEXT NOT NULL, `isEdited` INTEGER NOT NULL, `isRevoked` INTEGER NOT NULL, `mediaUrl` TEXT, `mediaMime` TEXT, `serviceData` TEXT, `status` INTEGER NOT NULL, PRIMARY KEY(`messageId`))",+ "fields": [+ {+ "fieldPath": "messageId",+ "columnName": "messageId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "conversationId",+ "columnName": "conversationId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "body",+ "columnName": "body",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "timestamp",+ "columnName": "timestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "outgoing",+ "columnName": "outgoing",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "senderId",+ "columnName": "senderId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "isEdited",+ "columnName": "isEdited",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isRevoked",+ "columnName": "isRevoked",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "mediaUrl",+ "columnName": "mediaUrl",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "mediaMime",+ "columnName": "mediaMime",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "serviceData",+ "columnName": "serviceData",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "status",+ "columnName": "status",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "messageId"+ ]+ }+ },+ {+ "tableName": "signal_cached_reaction",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `emoji` TEXT NOT NULL, `senderId` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, PRIMARY KEY(`messageId`, `senderId`))",+ "fields": [+ {+ "fieldPath": "messageId",+ "columnName": "messageId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "emoji",+ "columnName": "emoji",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "senderId",+ "columnName": "senderId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "timestamp",+ "columnName": "timestamp",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "messageId",+ "senderId"+ ]+ }+ },+ {+ "tableName": "signal_contact",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`aci` TEXT NOT NULL, `phoneE164` TEXT NOT NULL, `displayName` TEXT NOT NULL, `onSignal` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, `pni` TEXT NOT NULL DEFAULT '', PRIMARY KEY(`aci`))",+ "fields": [+ {+ "fieldPath": "aci",+ "columnName": "aci",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "phoneE164",+ "columnName": "phoneE164",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "displayName",+ "columnName": "displayName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "onSignal",+ "columnName": "onSignal",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "updatedAt",+ "columnName": "updatedAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "pni",+ "columnName": "pni",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "''"+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "aci"+ ]+ }+ },+ {+ "tableName": "signal_e2e_sessions",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `deviceId` INTEGER NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`address`, `deviceId`))",+ "fields": [+ {+ "fieldPath": "address",+ "columnName": "address",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "deviceId",+ "columnName": "deviceId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "address",+ "deviceId"+ ]+ }+ },+ {+ "tableName": "signal_e2e_identities",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `identityKey` BLOB NOT NULL, PRIMARY KEY(`address`))",+ "fields": [+ {+ "fieldPath": "address",+ "columnName": "address",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "identityKey",+ "columnName": "identityKey",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "address"+ ]+ }+ },+ {+ "tableName": "signal_e2e_pre_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, `uploaded` INTEGER NOT NULL, PRIMARY KEY(`id`))",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "uploaded",+ "columnName": "uploaded",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "signal_e2e_signed_pre_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`id`))",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "signal_e2e_kyber_pre_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, `lastResort` INTEGER NOT NULL, `uploaded` INTEGER NOT NULL, PRIMARY KEY(`id`))",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "lastResort",+ "columnName": "lastResort",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "uploaded",+ "columnName": "uploaded",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "signal_e2e_kyber_used_base_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`kyberPreKeyId` INTEGER NOT NULL, `signedPreKeyId` INTEGER NOT NULL, `baseKeyB64` TEXT NOT NULL, PRIMARY KEY(`kyberPreKeyId`, `signedPreKeyId`, `baseKeyB64`))",+ "fields": [+ {+ "fieldPath": "kyberPreKeyId",+ "columnName": "kyberPreKeyId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "signedPreKeyId",+ "columnName": "signedPreKeyId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "baseKeyB64",+ "columnName": "baseKeyB64",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "kyberPreKeyId",+ "signedPreKeyId",+ "baseKeyB64"+ ]+ }+ },+ {+ "tableName": "signal_e2e_sender_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `deviceId` INTEGER NOT NULL, `distributionId` TEXT NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`address`, `deviceId`, `distributionId`))",+ "fields": [+ {+ "fieldPath": "address",+ "columnName": "address",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "deviceId",+ "columnName": "deviceId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "distributionId",+ "columnName": "distributionId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "address",+ "deviceId",+ "distributionId"+ ]+ }+ },+ {+ "tableName": "signal_sender_certificate",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, `expiration` INTEGER NOT NULL, `includesE164` INTEGER NOT NULL, PRIMARY KEY(`id`))",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "expiration",+ "columnName": "expiration",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "includesE164",+ "columnName": "includesE164",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "signal_profile_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `profileKey` BLOB NOT NULL, PRIMARY KEY(`address`))",+ "fields": [+ {+ "fieldPath": "address",+ "columnName": "address",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "profileKey",+ "columnName": "profileKey",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "address"+ ]+ }+ },+ {+ "tableName": "signal_call_log",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`callId` TEXT NOT NULL, `peerId` TEXT NOT NULL, `peerName` TEXT NOT NULL, `outgoing` INTEGER NOT NULL, `video` INTEGER NOT NULL, `startTime` INTEGER NOT NULL, `durationSeconds` INTEGER NOT NULL, `outcome` TEXT NOT NULL, PRIMARY KEY(`callId`))",+ "fields": [+ {+ "fieldPath": "callId",+ "columnName": "callId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "peerId",+ "columnName": "peerId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "peerName",+ "columnName": "peerName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "outgoing",+ "columnName": "outgoing",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "video",+ "columnName": "video",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "startTime",+ "columnName": "startTime",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "durationSeconds",+ "columnName": "durationSeconds",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "outcome",+ "columnName": "outcome",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "callId"+ ]+ }+ }+ ],+ "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, '505f56466a63a89d23b485fb0c8e88f6')"+ ]+ }+}\ No newline at end of file
communicate/schemas/com.vayunmathur.communicate.data.whatsapp.WhatsAppDatabase/4.json
diff --git a/communicate/schemas/com.vayunmathur.communicate.data.whatsapp.WhatsAppDatabase/4.json b/communicate/schemas/com.vayunmathur.communicate.data.whatsapp.WhatsAppDatabase/4.jsonnew file mode 100644index 0000000000..ff5ca7cf17--- /dev/null+++ b/communicate/schemas/com.vayunmathur.communicate.data.whatsapp.WhatsAppDatabase/4.json@@ -0,0 +1,757 @@+{+ "formatVersion": 1,+ "database": {+ "version": 4,+ "identityHash": "c17ae1b51ef7530e7d3cae99210d9ac1",+ "entities": [+ {+ "tableName": "whatsapp_devices",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`deviceId` TEXT NOT NULL, `phoneNumber` TEXT NOT NULL, `pushName` TEXT NOT NULL, `platform` TEXT NOT NULL, `lastSeen` INTEGER NOT NULL, `jid` TEXT NOT NULL, `timezone` TEXT NOT NULL, `loggedInAt` INTEGER NOT NULL, `phoneLastSeen` INTEGER NOT NULL, `phoneLastPinged` INTEGER NOT NULL, `businessName` TEXT NOT NULL, PRIMARY KEY(`deviceId`))",+ "fields": [+ {+ "fieldPath": "deviceId",+ "columnName": "deviceId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "phoneNumber",+ "columnName": "phoneNumber",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "pushName",+ "columnName": "pushName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "platform",+ "columnName": "platform",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "lastSeen",+ "columnName": "lastSeen",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "jid",+ "columnName": "jid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "timezone",+ "columnName": "timezone",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "loggedInAt",+ "columnName": "loggedInAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "phoneLastSeen",+ "columnName": "phoneLastSeen",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "phoneLastPinged",+ "columnName": "phoneLastPinged",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "businessName",+ "columnName": "businessName",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "deviceId"+ ]+ }+ },+ {+ "tableName": "whatsapp_sessions",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`jid` TEXT NOT NULL, `sessionData` BLOB NOT NULL, `timestamp` INTEGER NOT NULL, `isPreKey` INTEGER NOT NULL, PRIMARY KEY(`jid`))",+ "fields": [+ {+ "fieldPath": "jid",+ "columnName": "jid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "sessionData",+ "columnName": "sessionData",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "timestamp",+ "columnName": "timestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isPreKey",+ "columnName": "isPreKey",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "jid"+ ]+ }+ },+ {+ "tableName": "whatsapp_history_sync_conversation",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`chatJid` TEXT NOT NULL, `userLoginId` TEXT NOT NULL, `lastMessageTimestamp` INTEGER NOT NULL, `archived` INTEGER NOT NULL, `pinned` INTEGER NOT NULL, `muteEndTime` INTEGER NOT NULL, `endOfHistoryTransferType` INTEGER NOT NULL, `ephemeralExpiration` INTEGER NOT NULL, `ephemeralSettingTimestamp` INTEGER NOT NULL, `markedAsUnread` INTEGER NOT NULL, `unreadCount` INTEGER NOT NULL, `isGroup` INTEGER NOT NULL, `name` TEXT, `participants` TEXT NOT NULL, PRIMARY KEY(`chatJid`))",+ "fields": [+ {+ "fieldPath": "chatJid",+ "columnName": "chatJid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "userLoginId",+ "columnName": "userLoginId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "lastMessageTimestamp",+ "columnName": "lastMessageTimestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "archived",+ "columnName": "archived",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "pinned",+ "columnName": "pinned",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "muteEndTime",+ "columnName": "muteEndTime",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "endOfHistoryTransferType",+ "columnName": "endOfHistoryTransferType",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "ephemeralExpiration",+ "columnName": "ephemeralExpiration",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "ephemeralSettingTimestamp",+ "columnName": "ephemeralSettingTimestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "markedAsUnread",+ "columnName": "markedAsUnread",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "unreadCount",+ "columnName": "unreadCount",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isGroup",+ "columnName": "isGroup",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "participants",+ "columnName": "participants",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "chatJid"+ ]+ }+ },+ {+ "tableName": "whatsapp_media_backfill_request",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `userLoginId` TEXT NOT NULL, `portalId` TEXT NOT NULL, `portalReceiver` TEXT NOT NULL, `mediaKey` BLOB NOT NULL, `status` INTEGER NOT NULL, `error` TEXT NOT NULL, PRIMARY KEY(`messageId`))",+ "fields": [+ {+ "fieldPath": "messageId",+ "columnName": "messageId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "userLoginId",+ "columnName": "userLoginId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "portalId",+ "columnName": "portalId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "portalReceiver",+ "columnName": "portalReceiver",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "mediaKey",+ "columnName": "mediaKey",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "status",+ "columnName": "status",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "error",+ "columnName": "error",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "messageId"+ ]+ }+ },+ {+ "tableName": "whatsapp_avatar_cache",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`entityJid` TEXT NOT NULL, `avatarId` TEXT NOT NULL, `directPath` TEXT NOT NULL, `expiry` INTEGER NOT NULL, `gone` INTEGER NOT NULL, PRIMARY KEY(`entityJid`, `avatarId`))",+ "fields": [+ {+ "fieldPath": "entityJid",+ "columnName": "entityJid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "avatarId",+ "columnName": "avatarId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "directPath",+ "columnName": "directPath",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "expiry",+ "columnName": "expiry",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "gone",+ "columnName": "gone",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "entityJid",+ "avatarId"+ ]+ }+ },+ {+ "tableName": "whatsapp_poll_option",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`msgId` TEXT NOT NULL, `optionHash` TEXT NOT NULL, `optionName` TEXT NOT NULL, PRIMARY KEY(`msgId`, `optionHash`))",+ "fields": [+ {+ "fieldPath": "msgId",+ "columnName": "msgId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "optionHash",+ "columnName": "optionHash",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "optionName",+ "columnName": "optionName",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "msgId",+ "optionHash"+ ]+ }+ },+ {+ "tableName": "whatsapp_poll_secret",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`msgId` TEXT NOT NULL, `secret` TEXT NOT NULL, PRIMARY KEY(`msgId`))",+ "fields": [+ {+ "fieldPath": "msgId",+ "columnName": "msgId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "secret",+ "columnName": "secret",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "msgId"+ ]+ }+ },+ {+ "tableName": "whatsapp_e2e_sessions",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `deviceId` INTEGER NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`address`, `deviceId`))",+ "fields": [+ {+ "fieldPath": "address",+ "columnName": "address",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "deviceId",+ "columnName": "deviceId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "address",+ "deviceId"+ ]+ }+ },+ {+ "tableName": "whatsapp_e2e_identities",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `identityKey` BLOB NOT NULL, PRIMARY KEY(`address`))",+ "fields": [+ {+ "fieldPath": "address",+ "columnName": "address",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "identityKey",+ "columnName": "identityKey",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "address"+ ]+ }+ },+ {+ "tableName": "whatsapp_e2e_pre_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, `uploaded` INTEGER NOT NULL, PRIMARY KEY(`id`))",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ },+ {+ "fieldPath": "uploaded",+ "columnName": "uploaded",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "whatsapp_e2e_signed_pre_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`id`))",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "whatsapp_e2e_sender_keys",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, `deviceId` INTEGER NOT NULL, `distributionId` TEXT NOT NULL, `record` BLOB NOT NULL, PRIMARY KEY(`address`, `deviceId`, `distributionId`))",+ "fields": [+ {+ "fieldPath": "address",+ "columnName": "address",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "deviceId",+ "columnName": "deviceId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "distributionId",+ "columnName": "distributionId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "record",+ "columnName": "record",+ "affinity": "BLOB",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "address",+ "deviceId",+ "distributionId"+ ]+ }+ },+ {+ "tableName": "whatsapp_cached_message",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `conversationJid` TEXT NOT NULL, `body` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, `outgoing` INTEGER NOT NULL, `senderJid` TEXT NOT NULL, `senderName` TEXT NOT NULL, `isEdited` INTEGER NOT NULL, `isRevoked` INTEGER NOT NULL, `quotedMessageId` TEXT, `mediaUrl` TEXT, `mediaMime` TEXT, `mediaName` TEXT, `serviceData` TEXT, `status` INTEGER NOT NULL, PRIMARY KEY(`messageId`))",+ "fields": [+ {+ "fieldPath": "messageId",+ "columnName": "messageId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "conversationJid",+ "columnName": "conversationJid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "body",+ "columnName": "body",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "timestamp",+ "columnName": "timestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "outgoing",+ "columnName": "outgoing",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "senderJid",+ "columnName": "senderJid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "senderName",+ "columnName": "senderName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "isEdited",+ "columnName": "isEdited",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isRevoked",+ "columnName": "isRevoked",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "quotedMessageId",+ "columnName": "quotedMessageId",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "mediaUrl",+ "columnName": "mediaUrl",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "mediaMime",+ "columnName": "mediaMime",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "mediaName",+ "columnName": "mediaName",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "serviceData",+ "columnName": "serviceData",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "status",+ "columnName": "status",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "messageId"+ ]+ }+ },+ {+ "tableName": "whatsapp_cached_reaction",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`messageId` TEXT NOT NULL, `emoji` TEXT NOT NULL, `senderJid` TEXT NOT NULL, `timestamp` INTEGER NOT NULL, PRIMARY KEY(`messageId`, `senderJid`))",+ "fields": [+ {+ "fieldPath": "messageId",+ "columnName": "messageId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "emoji",+ "columnName": "emoji",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "senderJid",+ "columnName": "senderJid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "timestamp",+ "columnName": "timestamp",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "messageId",+ "senderJid"+ ]+ }+ },+ {+ "tableName": "whatsapp_contact",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`phoneE164` TEXT NOT NULL, `lid` TEXT NOT NULL, `displayName` TEXT NOT NULL, `onWhatsApp` INTEGER NOT NULL, `updatedAt` INTEGER NOT NULL, PRIMARY KEY(`phoneE164`))",+ "fields": [+ {+ "fieldPath": "phoneE164",+ "columnName": "phoneE164",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "lid",+ "columnName": "lid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "displayName",+ "columnName": "displayName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "onWhatsApp",+ "columnName": "onWhatsApp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "updatedAt",+ "columnName": "updatedAt",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "phoneE164"+ ]+ }+ },+ {+ "tableName": "whatsapp_call_log",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`callId` TEXT NOT NULL, `peerJid` TEXT NOT NULL, `peerName` TEXT NOT NULL, `outgoing` INTEGER NOT NULL, `video` INTEGER NOT NULL, `startTime` INTEGER NOT NULL, `durationSeconds` INTEGER NOT NULL, `outcome` TEXT NOT NULL, PRIMARY KEY(`callId`))",+ "fields": [+ {+ "fieldPath": "callId",+ "columnName": "callId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "peerJid",+ "columnName": "peerJid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "peerName",+ "columnName": "peerName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "outgoing",+ "columnName": "outgoing",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "video",+ "columnName": "video",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "startTime",+ "columnName": "startTime",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "durationSeconds",+ "columnName": "durationSeconds",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "outcome",+ "columnName": "outcome",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "callId"+ ]+ }+ }+ ],+ "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, 'c17ae1b51ef7530e7d3cae99210d9ac1')"+ ]+ }+}\ No newline at end of file
communicate/src/main/java/com/vayunmathur/communicate/data/rcs/RcsDatabase.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/rcs/RcsDatabase.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/rcs/RcsDatabase.ktindex 81b40b84dd..d3233dd6a3 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/rcs/RcsDatabase.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/rcs/RcsDatabase.kt@@ -31,7 +31,7 @@ import com.vayunmathur.library.util.DatabaseMigrations RcsOutboxMessage::class, ], version = 3,- exportSchema = false,+ exportSchema = true, ) @ColumnTypeConverters(RcsTypeConverters::class) abstract class RcsDatabase : RoomDatabase() {
communicate/src/main/java/com/vayunmathur/communicate/data/signal/SignalDatabase.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/signal/SignalDatabase.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/signal/SignalDatabase.ktindex 5704bc80b1..43b3ad156a 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/signal/SignalDatabase.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/signal/SignalDatabase.kt@@ -43,7 +43,7 @@ import com.vayunmathur.library.util.DatabaseMigrations SignalCallLog::class, ], version = 5,- exportSchema = false+ exportSchema = true ) @ColumnTypeConverters(SignalTypeConverters::class) abstract class SignalDatabase : RoomDatabase() {
communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppDatabase.kt
diff --git a/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppDatabase.kt b/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppDatabase.ktindex a3427dda15..c80841ab93 100644--- a/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppDatabase.kt+++ b/communicate/src/main/java/com/vayunmathur/communicate/data/whatsapp/WhatsAppDatabase.kt@@ -52,7 +52,7 @@ import com.vayunmathur.library.util.DatabaseMigrations WhatsAppCallLog::class, ], version = 4,- exportSchema = false+ exportSchema = true ) @ColumnTypeConverters(WhatsAppTypeConverters::class) abstract class WhatsAppDatabase : RoomDatabase() {
education/schemas/com.vayunmathur.education.data.EducationDatabase/1.json
diff --git a/education/schemas/com.vayunmathur.education.data.EducationDatabase/1.json b/education/schemas/com.vayunmathur.education.data.EducationDatabase/1.jsonnew file mode 100644index 0000000000..77ccd99235--- /dev/null+++ b/education/schemas/com.vayunmathur.education.data.EducationDatabase/1.json@@ -0,0 +1,167 @@+{+ "formatVersion": 1,+ "database": {+ "version": 1,+ "identityHash": "7eec443c343e100c268e0e0ba98e44c0",+ "entities": [+ {+ "tableName": "Learner",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `name` TEXT NOT NULL, `avatar` TEXT NOT NULL, `gradeLevel` INTEGER NOT NULL, `bandOverride` TEXT, `pinHash` TEXT, `dailyGoal` INTEGER NOT NULL, `streakCount` INTEGER NOT NULL, `lastActivityEpochDay` INTEGER NOT NULL, `totalStars` INTEGER NOT NULL, `onboarded` INTEGER NOT NULL, PRIMARY KEY(`id`))",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "avatar",+ "columnName": "avatar",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "gradeLevel",+ "columnName": "gradeLevel",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "bandOverride",+ "columnName": "bandOverride",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "pinHash",+ "columnName": "pinHash",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "dailyGoal",+ "columnName": "dailyGoal",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "streakCount",+ "columnName": "streakCount",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastActivityEpochDay",+ "columnName": "lastActivityEpochDay",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "totalStars",+ "columnName": "totalStars",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "onboarded",+ "columnName": "onboarded",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "SkillProgress",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`skillId` TEXT NOT NULL, `stars` INTEGER NOT NULL, `attempts` INTEGER NOT NULL, `lastPracticedEpochDay` INTEGER NOT NULL, PRIMARY KEY(`skillId`))",+ "fields": [+ {+ "fieldPath": "skillId",+ "columnName": "skillId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "stars",+ "columnName": "stars",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "attempts",+ "columnName": "attempts",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastPracticedEpochDay",+ "columnName": "lastPracticedEpochDay",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "skillId"+ ]+ }+ },+ {+ "tableName": "Deadline",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `moduleType` TEXT NOT NULL, `moduleId` TEXT NOT NULL, `dueEpochDay` INTEGER NOT NULL, `note` TEXT NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "moduleType",+ "columnName": "moduleType",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "moduleId",+ "columnName": "moduleId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "dueEpochDay",+ "columnName": "dueEpochDay",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "note",+ "columnName": "note",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ }+ ],+ "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, '7eec443c343e100c268e0e0ba98e44c0')"+ ]+ }+}\ No newline at end of file
education/src/main/java/com/vayunmathur/education/data/EducationDatabase.kt
diff --git a/education/src/main/java/com/vayunmathur/education/data/EducationDatabase.kt b/education/src/main/java/com/vayunmathur/education/data/EducationDatabase.ktindex 27a88a518c..dd60fbc8f4 100644--- a/education/src/main/java/com/vayunmathur/education/data/EducationDatabase.kt+++ b/education/src/main/java/com/vayunmathur/education/data/EducationDatabase.kt@@ -59,7 +59,7 @@ interface DeadlineDao { @Database( entities = [Learner::class, SkillProgress::class, Deadline::class], version = 1,- exportSchema = false,+ exportSchema = true, ) /** Room database holding the learner, skill-progress, and deadline tables. */ abstract class EducationDatabase : RoomDatabase() {
email/schemas/com.vayunmathur.email.data.EmailDatabase/21.json
diff --git a/email/schemas/com.vayunmathur.email.data.EmailDatabase/21.json b/email/schemas/com.vayunmathur.email.data.EmailDatabase/21.jsonnew file mode 100644index 0000000000..a93da37f54--- /dev/null+++ b/email/schemas/com.vayunmathur.email.data.EmailDatabase/21.json@@ -0,0 +1,598 @@+{+ "formatVersion": 1,+ "database": {+ "version": 21,+ "identityHash": "12303499e72fb6e249dd6465463c2e5a",+ "entities": [+ {+ "tableName": "EmailFolder",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountEmail` TEXT NOT NULL, `fullName` TEXT NOT NULL, `name` TEXT NOT NULL, `parentFullName` TEXT, `holdsMessages` INTEGER NOT NULL, `delimiter` TEXT NOT NULL, PRIMARY KEY(`accountEmail`, `fullName`))",+ "fields": [+ {+ "fieldPath": "accountEmail",+ "columnName": "accountEmail",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "fullName",+ "columnName": "fullName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "parentFullName",+ "columnName": "parentFullName",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "holdsMessages",+ "columnName": "holdsMessages",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "delimiter",+ "columnName": "delimiter",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "accountEmail",+ "fullName"+ ]+ }+ },+ {+ "tableName": "EmailMessage",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountEmail` TEXT NOT NULL, `folderName` TEXT NOT NULL, `id` INTEGER NOT NULL, `serverId` TEXT, `threadId` TEXT, `subject` TEXT NOT NULL, `from` TEXT NOT NULL, `to` TEXT, `cc` TEXT, `date` TEXT NOT NULL, `dateMillis` INTEGER NOT NULL, `body` TEXT, `isHtml` INTEGER NOT NULL, `isRead` INTEGER NOT NULL, `references` TEXT, `hasAttachments` INTEGER NOT NULL, `snoozedUntil` INTEGER NOT NULL, `listUnsubscribe` TEXT, `listUnsubscribePost` TEXT, `peekContent` TEXT NOT NULL DEFAULT '', PRIMARY KEY(`accountEmail`, `folderName`, `id`))",+ "fields": [+ {+ "fieldPath": "accountEmail",+ "columnName": "accountEmail",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "folderName",+ "columnName": "folderName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "serverId",+ "columnName": "serverId",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "threadId",+ "columnName": "threadId",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "subject",+ "columnName": "subject",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "from",+ "columnName": "from",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "to",+ "columnName": "to",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "cc",+ "columnName": "cc",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "date",+ "columnName": "date",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "dateMillis",+ "columnName": "dateMillis",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "body",+ "columnName": "body",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "isHtml",+ "columnName": "isHtml",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isRead",+ "columnName": "isRead",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "references",+ "columnName": "references",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "hasAttachments",+ "columnName": "hasAttachments",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "snoozedUntil",+ "columnName": "snoozedUntil",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "listUnsubscribe",+ "columnName": "listUnsubscribe",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "listUnsubscribePost",+ "columnName": "listUnsubscribePost",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "peekContent",+ "columnName": "peekContent",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "''"+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "accountEmail",+ "folderName",+ "id"+ ]+ }+ },+ {+ "tableName": "EmailAccount",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`email` TEXT NOT NULL, `accessToken` TEXT NOT NULL, `refreshToken` TEXT, `expiresAt` INTEGER NOT NULL, `provider` TEXT NOT NULL DEFAULT 'gmail', `imapHost` TEXT NOT NULL DEFAULT 'imap.gmail.com', `imapPort` INTEGER NOT NULL DEFAULT 993, `imapUseSsl` INTEGER NOT NULL DEFAULT 1, `smtpHost` TEXT NOT NULL DEFAULT 'smtp.gmail.com', `smtpPort` INTEGER NOT NULL DEFAULT 465, `smtpUseSsl` INTEGER NOT NULL DEFAULT 1, `username` TEXT NOT NULL DEFAULT '', `authType` TEXT NOT NULL DEFAULT 'oauth2', `passwordEncrypted` BLOB, `passwordIv` BLOB, `signature` TEXT NOT NULL DEFAULT '', `allowInsecureCertificates` INTEGER NOT NULL DEFAULT 0, PRIMARY KEY(`email`))",+ "fields": [+ {+ "fieldPath": "email",+ "columnName": "email",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "accessToken",+ "columnName": "accessToken",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "refreshToken",+ "columnName": "refreshToken",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "expiresAt",+ "columnName": "expiresAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "provider",+ "columnName": "provider",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "'gmail'"+ },+ {+ "fieldPath": "imapHost",+ "columnName": "imapHost",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "'imap.gmail.com'"+ },+ {+ "fieldPath": "imapPort",+ "columnName": "imapPort",+ "affinity": "INTEGER",+ "notNull": true,+ "defaultValue": "993"+ },+ {+ "fieldPath": "imapUseSsl",+ "columnName": "imapUseSsl",+ "affinity": "INTEGER",+ "notNull": true,+ "defaultValue": "1"+ },+ {+ "fieldPath": "smtpHost",+ "columnName": "smtpHost",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "'smtp.gmail.com'"+ },+ {+ "fieldPath": "smtpPort",+ "columnName": "smtpPort",+ "affinity": "INTEGER",+ "notNull": true,+ "defaultValue": "465"+ },+ {+ "fieldPath": "smtpUseSsl",+ "columnName": "smtpUseSsl",+ "affinity": "INTEGER",+ "notNull": true,+ "defaultValue": "1"+ },+ {+ "fieldPath": "username",+ "columnName": "username",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "''"+ },+ {+ "fieldPath": "authType",+ "columnName": "authType",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "'oauth2'"+ },+ {+ "fieldPath": "passwordEncrypted",+ "columnName": "passwordEncrypted",+ "affinity": "BLOB"+ },+ {+ "fieldPath": "passwordIv",+ "columnName": "passwordIv",+ "affinity": "BLOB"+ },+ {+ "fieldPath": "signature",+ "columnName": "signature",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "''"+ },+ {+ "fieldPath": "allowInsecureCertificates",+ "columnName": "allowInsecureCertificates",+ "affinity": "INTEGER",+ "notNull": true,+ "defaultValue": "0"+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "email"+ ]+ }+ },+ {+ "tableName": "Attachment",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountEmail` TEXT NOT NULL, `folderName` TEXT NOT NULL, `messageId` INTEGER NOT NULL, `partId` TEXT NOT NULL, `fileName` TEXT NOT NULL, `mimeType` TEXT NOT NULL, `size` INTEGER NOT NULL, `localUri` TEXT, PRIMARY KEY(`accountEmail`, `messageId`, `partId`))",+ "fields": [+ {+ "fieldPath": "accountEmail",+ "columnName": "accountEmail",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "folderName",+ "columnName": "folderName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "messageId",+ "columnName": "messageId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "partId",+ "columnName": "partId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "fileName",+ "columnName": "fileName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "mimeType",+ "columnName": "mimeType",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "size",+ "columnName": "size",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "localUri",+ "columnName": "localUri",+ "affinity": "TEXT"+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "accountEmail",+ "messageId",+ "partId"+ ]+ }+ },+ {+ "tableName": "OutboxEntry",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `accountEmail` TEXT NOT NULL, `to` TEXT NOT NULL, `cc` TEXT, `bcc` TEXT, `subject` TEXT NOT NULL, `body` TEXT NOT NULL, `attachmentLocalPaths` TEXT NOT NULL, `inlineImageJson` TEXT NOT NULL DEFAULT '[]', `inReplyTo` TEXT, `references` TEXT, `createdAt` INTEGER NOT NULL, `lastError` TEXT, `attemptCount` INTEGER NOT NULL, `lastAttemptAt` INTEGER NOT NULL, `scheduledAt` INTEGER NOT NULL, `isHtml` INTEGER NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "accountEmail",+ "columnName": "accountEmail",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "to",+ "columnName": "to",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "cc",+ "columnName": "cc",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "bcc",+ "columnName": "bcc",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "subject",+ "columnName": "subject",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "body",+ "columnName": "body",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "attachmentLocalPaths",+ "columnName": "attachmentLocalPaths",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "inlineImageJson",+ "columnName": "inlineImageJson",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "'[]'"+ },+ {+ "fieldPath": "inReplyTo",+ "columnName": "inReplyTo",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "references",+ "columnName": "references",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "createdAt",+ "columnName": "createdAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastError",+ "columnName": "lastError",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "attemptCount",+ "columnName": "attemptCount",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastAttemptAt",+ "columnName": "lastAttemptAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "scheduledAt",+ "columnName": "scheduledAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isHtml",+ "columnName": "isHtml",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "DraftEntry",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `accountEmail` TEXT NOT NULL, `to` TEXT NOT NULL, `cc` TEXT NOT NULL, `bcc` TEXT NOT NULL, `subject` TEXT NOT NULL, `body` TEXT NOT NULL, `inlineImageJson` TEXT NOT NULL DEFAULT '[]', `updatedAt` INTEGER NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "accountEmail",+ "columnName": "accountEmail",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "to",+ "columnName": "to",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "cc",+ "columnName": "cc",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "bcc",+ "columnName": "bcc",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "subject",+ "columnName": "subject",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "body",+ "columnName": "body",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "inlineImageJson",+ "columnName": "inlineImageJson",+ "affinity": "TEXT",+ "notNull": true,+ "defaultValue": "'[]'"+ },+ {+ "fieldPath": "updatedAt",+ "columnName": "updatedAt",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "BlockedSender",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`address` TEXT NOT NULL, PRIMARY KEY(`address`))",+ "fields": [+ {+ "fieldPath": "address",+ "columnName": "address",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "address"+ ]+ }+ },+ {+ "tableName": "DeletedUid",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`accountEmail` TEXT NOT NULL, `folderName` TEXT NOT NULL, `uid` INTEGER NOT NULL, PRIMARY KEY(`accountEmail`, `folderName`, `uid`))",+ "fields": [+ {+ "fieldPath": "accountEmail",+ "columnName": "accountEmail",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "folderName",+ "columnName": "folderName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "uid",+ "columnName": "uid",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "accountEmail",+ "folderName",+ "uid"+ ]+ }+ }+ ],+ "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, '12303499e72fb6e249dd6465463c2e5a')"+ ]+ }+}\ No newline at end of file
email/src/main/java/com/vayunmathur/email/data/EmailDatabase.kt
diff --git a/email/src/main/java/com/vayunmathur/email/data/EmailDatabase.kt b/email/src/main/java/com/vayunmathur/email/data/EmailDatabase.ktindex c1cdfa165f..923611c6ea 100644--- a/email/src/main/java/com/vayunmathur/email/data/EmailDatabase.kt+++ b/email/src/main/java/com/vayunmathur/email/data/EmailDatabase.kt@@ -27,7 +27,7 @@ import com.vayunmathur.email.data.Attachment DeletedUid::class, ], version = 21,- exportSchema = false,+ exportSchema = true, ) /** Room database holding email folders, messages, accounts and outbox state. */ abstract class EmailDatabase : RoomDatabase() {
flashcards/schemas/com.vayunmathur.flashcards.data.FlashcardsDatabase/4.json
diff --git a/flashcards/schemas/com.vayunmathur.flashcards.data.FlashcardsDatabase/4.json b/flashcards/schemas/com.vayunmathur.flashcards.data.FlashcardsDatabase/4.jsonnew file mode 100644index 0000000000..aa1d6bec4a--- /dev/null+++ b/flashcards/schemas/com.vayunmathur.flashcards.data.FlashcardsDatabase/4.json@@ -0,0 +1,498 @@+{+ "formatVersion": 1,+ "database": {+ "version": 4,+ "identityHash": "348e538974abbcf8705171b94ce15d9f",+ "entities": [+ {+ "tableName": "Deck",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `newPerDay` INTEGER NOT NULL, `maxReviewsPerDay` INTEGER NOT NULL, `desiredRetention` REAL NOT NULL, `fsrsWeights` TEXT NOT NULL, `leechThreshold` INTEGER NOT NULL, `position` REAL NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "newPerDay",+ "columnName": "newPerDay",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "maxReviewsPerDay",+ "columnName": "maxReviewsPerDay",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "desiredRetention",+ "columnName": "desiredRetention",+ "affinity": "REAL",+ "notNull": true+ },+ {+ "fieldPath": "fsrsWeights",+ "columnName": "fsrsWeights",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "leechThreshold",+ "columnName": "leechThreshold",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "position",+ "columnName": "position",+ "affinity": "REAL",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "Card",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `noteId` INTEGER NOT NULL, `templateOrd` INTEGER NOT NULL, `deckId` INTEGER NOT NULL, `stability` REAL NOT NULL, `difficulty` REAL NOT NULL, `state` INTEGER NOT NULL, `lastReview` INTEGER NOT NULL, `lapses` INTEGER NOT NULL, `reps` INTEGER NOT NULL, `dueDate` INTEGER NOT NULL, `easeFactor` REAL NOT NULL, `intervalDays` INTEGER NOT NULL, `repetitions` INTEGER NOT NULL, `suspended` INTEGER NOT NULL, `position` REAL NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "noteId",+ "columnName": "noteId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "templateOrd",+ "columnName": "templateOrd",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "deckId",+ "columnName": "deckId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "stability",+ "columnName": "stability",+ "affinity": "REAL",+ "notNull": true+ },+ {+ "fieldPath": "difficulty",+ "columnName": "difficulty",+ "affinity": "REAL",+ "notNull": true+ },+ {+ "fieldPath": "state",+ "columnName": "state",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastReview",+ "columnName": "lastReview",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lapses",+ "columnName": "lapses",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "reps",+ "columnName": "reps",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "dueDate",+ "columnName": "dueDate",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "easeFactor",+ "columnName": "easeFactor",+ "affinity": "REAL",+ "notNull": true+ },+ {+ "fieldPath": "intervalDays",+ "columnName": "intervalDays",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "repetitions",+ "columnName": "repetitions",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "suspended",+ "columnName": "suspended",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "position",+ "columnName": "position",+ "affinity": "REAL",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ },+ "indices": [+ {+ "name": "index_Card_noteId_templateOrd",+ "unique": true,+ "columnNames": [+ "noteId",+ "templateOrd"+ ],+ "orders": [],+ "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_Card_noteId_templateOrd` ON `${TABLE_NAME}` (`noteId`, `templateOrd`)"+ },+ {+ "name": "index_Card_deckId",+ "unique": false,+ "columnNames": [+ "deckId"+ ],+ "orders": [],+ "createSql": "CREATE INDEX IF NOT EXISTS `index_Card_deckId` ON `${TABLE_NAME}` (`deckId`)"+ }+ ]+ },+ {+ "tableName": "ReviewLog",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `cardId` INTEGER NOT NULL, `deckId` INTEGER NOT NULL, `reviewedAt` INTEGER NOT NULL, `grade` INTEGER NOT NULL, `elapsedDays` REAL NOT NULL, `scheduledDays` REAL NOT NULL, `state` INTEGER NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "cardId",+ "columnName": "cardId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "deckId",+ "columnName": "deckId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "reviewedAt",+ "columnName": "reviewedAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "grade",+ "columnName": "grade",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "elapsedDays",+ "columnName": "elapsedDays",+ "affinity": "REAL",+ "notNull": true+ },+ {+ "fieldPath": "scheduledDays",+ "columnName": "scheduledDays",+ "affinity": "REAL",+ "notNull": true+ },+ {+ "fieldPath": "state",+ "columnName": "state",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "NoteType",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT NOT NULL, `type` INTEGER NOT NULL, `css` TEXT NOT NULL, `mod` INTEGER NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "type",+ "columnName": "type",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "css",+ "columnName": "css",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "mod",+ "columnName": "mod",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "NoteTypeField",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `noteTypeId` INTEGER NOT NULL, `ord` INTEGER NOT NULL, `name` TEXT NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "noteTypeId",+ "columnName": "noteTypeId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "ord",+ "columnName": "ord",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ },+ "indices": [+ {+ "name": "index_NoteTypeField_noteTypeId_ord",+ "unique": true,+ "columnNames": [+ "noteTypeId",+ "ord"+ ],+ "orders": [],+ "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_NoteTypeField_noteTypeId_ord` ON `${TABLE_NAME}` (`noteTypeId`, `ord`)"+ }+ ]+ },+ {+ "tableName": "CardTemplate",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `noteTypeId` INTEGER NOT NULL, `ord` INTEGER NOT NULL, `name` TEXT NOT NULL, `qfmt` TEXT NOT NULL, `afmt` TEXT NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "noteTypeId",+ "columnName": "noteTypeId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "ord",+ "columnName": "ord",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "qfmt",+ "columnName": "qfmt",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "afmt",+ "columnName": "afmt",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ },+ "indices": [+ {+ "name": "index_CardTemplate_noteTypeId_ord",+ "unique": true,+ "columnNames": [+ "noteTypeId",+ "ord"+ ],+ "orders": [],+ "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_CardTemplate_noteTypeId_ord` ON `${TABLE_NAME}` (`noteTypeId`, `ord`)"+ }+ ]+ },+ {+ "tableName": "Note",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `noteTypeId` INTEGER NOT NULL, `deckId` INTEGER NOT NULL, `guid` TEXT NOT NULL, `flds` TEXT NOT NULL, `sortField` TEXT NOT NULL, `tags` TEXT NOT NULL, `mod` INTEGER NOT NULL, `position` REAL NOT NULL)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "noteTypeId",+ "columnName": "noteTypeId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "deckId",+ "columnName": "deckId",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "guid",+ "columnName": "guid",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "flds",+ "columnName": "flds",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "sortField",+ "columnName": "sortField",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "tags",+ "columnName": "tags",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "mod",+ "columnName": "mod",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "position",+ "columnName": "position",+ "affinity": "REAL",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ },+ "indices": [+ {+ "name": "index_Note_noteTypeId",+ "unique": false,+ "columnNames": [+ "noteTypeId"+ ],+ "orders": [],+ "createSql": "CREATE INDEX IF NOT EXISTS `index_Note_noteTypeId` ON `${TABLE_NAME}` (`noteTypeId`)"+ },+ {+ "name": "index_Note_deckId",+ "unique": false,+ "columnNames": [+ "deckId"+ ],+ "orders": [],+ "createSql": "CREATE INDEX IF NOT EXISTS `index_Note_deckId` ON `${TABLE_NAME}` (`deckId`)"+ }+ ]+ }+ ],+ "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, '348e538974abbcf8705171b94ce15d9f')"+ ]+ }+}\ No newline at end of file
flashcards/src/main/java/com/vayunmathur/flashcards/data/FlashcardsDatabase.kt
diff --git a/flashcards/src/main/java/com/vayunmathur/flashcards/data/FlashcardsDatabase.kt b/flashcards/src/main/java/com/vayunmathur/flashcards/data/FlashcardsDatabase.ktindex c713aee167..fa7598f82e 100644--- a/flashcards/src/main/java/com/vayunmathur/flashcards/data/FlashcardsDatabase.kt+++ b/flashcards/src/main/java/com/vayunmathur/flashcards/data/FlashcardsDatabase.kt@@ -248,7 +248,7 @@ interface ReviewLogDao { Note::class, ], version = 4,- exportSchema = false,+ exportSchema = true, ) /** Room database holding decks, notes, cards, and review history. */ abstract class FlashcardsDatabase : RoomDatabase() {
games/hub/schemas/com.vayunmathur.games.hub.data.GamesHubDatabase/3.json
diff --git a/games/hub/schemas/com.vayunmathur.games.hub.data.GamesHubDatabase/3.json b/games/hub/schemas/com.vayunmathur.games.hub.data.GamesHubDatabase/3.jsonnew file mode 100644index 0000000000..c019a12586--- /dev/null+++ b/games/hub/schemas/com.vayunmathur.games.hub.data.GamesHubDatabase/3.json@@ -0,0 +1,438 @@+{+ "formatVersion": 1,+ "database": {+ "version": 3,+ "identityHash": "974c42ef4c450a9f5de1fa6d1f3847c5",+ "entities": [+ {+ "tableName": "hub_games",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`gameId` TEXT NOT NULL, `packageName` TEXT NOT NULL, `displayName` TEXT NOT NULL, `description` TEXT, `versionName` TEXT, `versionCode` INTEGER, `registeredAt` INTEGER NOT NULL, `lastSeenAt` INTEGER NOT NULL, `lastPlayedAt` INTEGER, `totalPlaytimeMs` INTEGER NOT NULL, `totalSessions` INTEGER NOT NULL, PRIMARY KEY(`gameId`))",+ "fields": [+ {+ "fieldPath": "gameId",+ "columnName": "gameId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "packageName",+ "columnName": "packageName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "displayName",+ "columnName": "displayName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "description",+ "columnName": "description",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "versionName",+ "columnName": "versionName",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "versionCode",+ "columnName": "versionCode",+ "affinity": "INTEGER"+ },+ {+ "fieldPath": "registeredAt",+ "columnName": "registeredAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastSeenAt",+ "columnName": "lastSeenAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastPlayedAt",+ "columnName": "lastPlayedAt",+ "affinity": "INTEGER"+ },+ {+ "fieldPath": "totalPlaytimeMs",+ "columnName": "totalPlaytimeMs",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "totalSessions",+ "columnName": "totalSessions",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "gameId"+ ]+ }+ },+ {+ "tableName": "achievement_defs",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`gameId` TEXT NOT NULL, `achievementId` TEXT NOT NULL, `name` TEXT NOT NULL, `description` TEXT NOT NULL, `xpReward` INTEGER NOT NULL, `targetProgress` INTEGER NOT NULL, `isSecret` INTEGER NOT NULL, `tier` TEXT NOT NULL, `iconResName` TEXT, PRIMARY KEY(`gameId`, `achievementId`))",+ "fields": [+ {+ "fieldPath": "gameId",+ "columnName": "gameId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "achievementId",+ "columnName": "achievementId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "name",+ "columnName": "name",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "description",+ "columnName": "description",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "xpReward",+ "columnName": "xpReward",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "targetProgress",+ "columnName": "targetProgress",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isSecret",+ "columnName": "isSecret",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "tier",+ "columnName": "tier",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "iconResName",+ "columnName": "iconResName",+ "affinity": "TEXT"+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "gameId",+ "achievementId"+ ]+ }+ },+ {+ "tableName": "achievement_progress",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`gameId` TEXT NOT NULL, `achievementId` TEXT NOT NULL, `progress` INTEGER NOT NULL, `isUnlocked` INTEGER NOT NULL, `unlockedAt` INTEGER, `lastUpdated` INTEGER NOT NULL, PRIMARY KEY(`gameId`, `achievementId`))",+ "fields": [+ {+ "fieldPath": "gameId",+ "columnName": "gameId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "achievementId",+ "columnName": "achievementId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "progress",+ "columnName": "progress",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "isUnlocked",+ "columnName": "isUnlocked",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "unlockedAt",+ "columnName": "unlockedAt",+ "affinity": "INTEGER"+ },+ {+ "fieldPath": "lastUpdated",+ "columnName": "lastUpdated",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "gameId",+ "achievementId"+ ]+ }+ },+ {+ "tableName": "play_sessions",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `gameId` TEXT NOT NULL, `sessionId` TEXT NOT NULL, `startTime` INTEGER NOT NULL, `endTime` INTEGER, `durationMs` INTEGER)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "gameId",+ "columnName": "gameId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "sessionId",+ "columnName": "sessionId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "startTime",+ "columnName": "startTime",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "endTime",+ "columnName": "endTime",+ "affinity": "INTEGER"+ },+ {+ "fieldPath": "durationMs",+ "columnName": "durationMs",+ "affinity": "INTEGER"+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ },+ "indices": [+ {+ "name": "index_play_sessions_sessionId",+ "unique": true,+ "columnNames": [+ "sessionId"+ ],+ "orders": [],+ "createSql": "CREATE UNIQUE INDEX IF NOT EXISTS `index_play_sessions_sessionId` ON `${TABLE_NAME}` (`sessionId`)"+ }+ ]+ },+ {+ "tableName": "player_profile",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER NOT NULL, `displayName` TEXT NOT NULL, `avatarSymbol` TEXT, `avatarUri` TEXT, `createdAt` INTEGER NOT NULL, `title` TEXT, PRIMARY KEY(`id`))",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "displayName",+ "columnName": "displayName",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "avatarSymbol",+ "columnName": "avatarSymbol",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "avatarUri",+ "columnName": "avatarUri",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "createdAt",+ "columnName": "createdAt",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "title",+ "columnName": "title",+ "affinity": "TEXT"+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "activity_events",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `timestamp` INTEGER NOT NULL, `type` TEXT NOT NULL, `gameId` TEXT, `title` TEXT NOT NULL, `description` TEXT, `payloadJson` TEXT)",+ "fields": [+ {+ "fieldPath": "id",+ "columnName": "id",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "timestamp",+ "columnName": "timestamp",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "type",+ "columnName": "type",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "gameId",+ "columnName": "gameId",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "title",+ "columnName": "title",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "description",+ "columnName": "description",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "payloadJson",+ "columnName": "payloadJson",+ "affinity": "TEXT"+ }+ ],+ "primaryKey": {+ "autoGenerate": true,+ "columnNames": [+ "id"+ ]+ }+ },+ {+ "tableName": "daily_streaks",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`gameId` TEXT NOT NULL, `currentStreak` INTEGER NOT NULL, `longestStreak` INTEGER NOT NULL, `lastCompletedDay` INTEGER NOT NULL, `lastUpdated` INTEGER NOT NULL, PRIMARY KEY(`gameId`))",+ "fields": [+ {+ "fieldPath": "gameId",+ "columnName": "gameId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "currentStreak",+ "columnName": "currentStreak",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "longestStreak",+ "columnName": "longestStreak",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "lastCompletedDay
Diff truncated.