refactor(items): merge ancient artifacts into items data model

Migrate ancient artifacts to items table using a category key.
Consolidate detail and edit views into ItemDetail and ItemEdit.
Update API, search, and data tools to reflect unified structure.
This commit is contained in:
2026-05-05 10:46:14 +08:00
parent 839a24566b
commit 5a83a73108
11 changed files with 526 additions and 594 deletions

View File

@@ -258,6 +258,7 @@ export interface Item extends EditInfo {
details: string;
baseDetails?: string;
basePrice: number | null;
ancientArtifactCategory: NamedEntity | null;
isEventItem: boolean;
translations?: TranslationMap;
image: EntityImage | null;
@@ -791,6 +792,7 @@ export interface ItemPayload {
name: string;
details: string;
basePrice: number | null;
ancientArtifactCategoryId: number | null;
translations?: TranslationMap;
categoryId: number;
usageId: number | null;