feat(i18n): add featured and latest prompts translations in multiple languages

This commit is contained in:
Fatih Kadir Akın
2025-12-11 12:52:56 +03:00
parent 805b47fbd5
commit a9a86f3bbc
30 changed files with 706 additions and 167 deletions

View File

@@ -0,0 +1,6 @@
-- AlterTable
ALTER TABLE "prompts" ADD COLUMN "featuredAt" TIMESTAMP(3),
ADD COLUMN "isFeatured" BOOLEAN NOT NULL DEFAULT false;
-- CreateIndex
CREATE INDEX "prompts_isFeatured_idx" ON "prompts"("isFeatured");

View File

@@ -134,6 +134,8 @@ model Prompt {
// Metadata
viewCount Int @default(0)
isFeatured Boolean @default(false)
featuredAt DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@ -154,6 +156,7 @@ model Prompt {
@@index([categoryId])
@@index([type])
@@index([isPrivate])
@@index([isFeatured])
@@map("prompts")
}