Use an 8-digit token for each car so it is easy to share.

This commit is contained in:
RallyBlock committed 2026-10-22 20:54:56 -07:00
1 parent 0224e8f395
commit b95cbefeab
6 files changed
+42 -15

No files matched your search

@@ -253,7 +253,7 @@ abstract class AppDatabase : RoomDatabase() {
db.execSQL(
"""
INSERT INTO cars (carName, raceClass, discipline, token, updatedAt, syncRev, deleted, pending)
VALUES ('$DEFAULT_CAR', '$DEFAULT_CLASS', '$DEFAULT_DISCIPLINE', lower(hex(randomblob(32))), 1, 0, 0, 1)
VALUES ('$DEFAULT_CAR', '$DEFAULT_CLASS', '$DEFAULT_DISCIPLINE', printf('%08d', abs(random()) % 100000000), 1, 0, 0, 1)
""".trimIndent(),
)
}