mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2026-03-03 02:57:01 +00:00
feat(i18n): add featured and latest prompts translations in multiple languages
This commit is contained in:
@@ -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");
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user