Work on better sorting for the IDAA BB posts. Using generated tmp field. Date formats standardized.

This commit is contained in:
Scott Idem
2024-12-11 15:34:44 -05:00
parent eee8a67235
commit 3fef19488c
7 changed files with 23 additions and 12 deletions

View File

@@ -50,6 +50,10 @@ export interface Post {
created_on: Date;
updated_on?: null|Date;
// Generated fields for sorting locally only
tmp_sort_1?: null|string;
tmp_sort_2?: null|string;
// Additional fields for convenience (database views)
post_comment_count?: number;
}
@@ -116,6 +120,7 @@ export class MySubClassedDexie extends Dexie {
post_id,
title,
full_name, email,
tmp_sort_1, tmp_sort_2,
enable, hide, priority, sort, group, notes, created_on, updated_on, [updated_on+created_on]`,
});
}