- Implemented `OldNation`, `OldGeneral`, and `Emperor` models in Prisma schema. - Created API routes for fetching dynasty lists and details. - Developed frontend views for displaying dynasty list and detail information. - Enhanced in-memory world to track deleted nation snapshots during unification. - Added functionality to settle dynasty information after unification events.
29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
import type { GamePrisma, GamePrismaClient } from './gamePrisma.js';
|
|
|
|
export interface DatabaseClient {
|
|
$transaction?: GamePrismaClient['$transaction'];
|
|
$queryRaw: GamePrismaClient['$queryRaw'];
|
|
$executeRaw: GamePrismaClient['$executeRaw'];
|
|
worldState: GamePrisma.WorldStateDelegate;
|
|
general: GamePrisma.GeneralDelegate;
|
|
city: GamePrisma.CityDelegate;
|
|
nation: GamePrisma.NationDelegate;
|
|
diplomacy: GamePrisma.DiplomacyDelegate;
|
|
diplomacyLetter: GamePrisma.DiplomacyLetterDelegate;
|
|
yearbookHistory: GamePrisma.YearbookHistoryDelegate;
|
|
rankData: GamePrisma.RankDataDelegate;
|
|
hallOfFame: GamePrisma.HallOfFameDelegate;
|
|
gameHistory: GamePrisma.GameHistoryDelegate;
|
|
oldNation: GamePrisma.OldNationDelegate;
|
|
oldGeneral: GamePrisma.OldGeneralDelegate;
|
|
emperor: GamePrisma.EmperorDelegate;
|
|
generalTurn: GamePrisma.GeneralTurnDelegate;
|
|
nationTurn: GamePrisma.NationTurnDelegate;
|
|
troop: GamePrisma.TroopDelegate;
|
|
logEntry: GamePrisma.LogEntryDelegate;
|
|
inheritancePoint: GamePrisma.InheritancePointDelegate;
|
|
inheritanceLog: GamePrisma.InheritanceLogDelegate;
|
|
inheritanceResult: GamePrisma.InheritanceResultDelegate;
|
|
inheritanceUserState: GamePrisma.InheritanceUserStateDelegate;
|
|
}
|