import game option
Build and Publish Docker Image / build-and-push-image (push) Successful in 58s

This commit is contained in:
Zed
2026-07-11 02:37:40 +02:00
parent 9a63240113
commit bb07d7ef30
13 changed files with 519 additions and 12 deletions
+14
View File
@@ -7,6 +7,7 @@ import {
Profile,
SyncState,
} from "../types";
import { ImportedGame } from "../types/gameImport";
import { generateId } from "../utils/id";
// When the sync engine applies records pulled/acked from the server, it flips
@@ -25,6 +26,7 @@ export class BoardScoreDatabase extends Dexie {
locations!: Table<Location, string>;
profiles!: Table<Profile, string>;
syncState!: Table<SyncState, string>;
importedGames!: Table<ImportedGame, [string, string]>;
constructor() {
super("BoardScoreDatabase");
@@ -141,6 +143,18 @@ export class BoardScoreDatabase extends Dexie {
});
}
});
// Version 6: imported game definitions (per profile)
this.version(6).stores({
sessions:
"id, gameId, dateStart, status, locationId, updatedAt, profileId, dirty",
settings: "id",
players: "id, name, createdAt, updatedAt, profileId, dirty",
locations: "id, name, createdAt, updatedAt, profileId, dirty",
profiles: "id, name, createdAt, updatedAt",
syncState: "profileId",
importedGames: "[profileId+id], profileId, id, name",
});
}
}