diff --git a/api/prisma/schema.prisma b/api/prisma/schema.prisma index 7ecca71..bbc01e0 100644 --- a/api/prisma/schema.prisma +++ b/api/prisma/schema.prisma @@ -34,6 +34,7 @@ model Game { links Link[] series String? seriesOrder Int? @db.Int + timeSpent Int? @db.Int createdAt DateTime @default(now()) updatedAt DateTime @updatedAt comments Comment[] @@ -62,6 +63,7 @@ model Book { links Link[] series String? seriesOrder Int? @db.Int + timeSpent Int? @db.Int createdAt DateTime @default(now()) updatedAt DateTime @updatedAt comments Comment[] @@ -89,6 +91,7 @@ model Music { coverArt String? tags String[] links Link[] + timeSpent Int? @db.Int createdAt DateTime @default(now()) updatedAt DateTime @updatedAt comments Comment[] @@ -135,6 +138,7 @@ model Show { coverImage String? tags String[] links Link[] + timeSpent Int? @db.Int createdAt DateTime @default(now()) updatedAt DateTime @updatedAt comments Comment[] @@ -168,6 +172,7 @@ model Manga { coverImage String? tags String[] links Link[] + timeSpent Int? @db.Int createdAt DateTime @default(now()) updatedAt DateTime @updatedAt comments Comment[] diff --git a/apps/frontend/src/app/components/games/games-list.component.ts b/apps/frontend/src/app/components/games/games-list.component.ts index aa24251..61a65a9 100644 --- a/apps/frontend/src/app/components/games/games-list.component.ts +++ b/apps/frontend/src/app/components/games/games-list.component.ts @@ -104,6 +104,34 @@ import { Game, GameStatus, CreateGameDto, UpdateGameDto, Comment, SuggestionEnti > +