refactor: Use random IDs as primary keys in IDB
This commit refactors the IndexedDB schema to use the string-based random IDs as primary keys instead of the numeric auto-incrementing IDs. This change affects the 'badge' table and all related components that interact with it. The badge detail page and list component have been updated to use the new primary key for more efficient and consistent data retrieval.
This commit is contained in:
@@ -807,7 +807,7 @@ export class MySubClassedDexie extends Dexie {
|
||||
|
||||
// badge: '++id, full_name, email' // Primary key and indexed props
|
||||
badge: `
|
||||
id, id_random, event_badge_id, event_badge_id_random,
|
||||
event_badge_id_random, event_badge_id, id,
|
||||
event_id, event_id_random,
|
||||
full_name, full_name_override, email, email_override,
|
||||
affiliations, affiliations_override,
|
||||
|
||||
Reference in New Issue
Block a user