feat(api): add delist reasons and quality check functionality

This commit is contained in:
Fatih Kadir Akın
2025-12-17 20:41:05 +03:00
parent 2e5f8fd887
commit 363a730fec
8 changed files with 474 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
-- CreateEnum
CREATE TYPE "DelistReason" AS ENUM ('TOO_SHORT', 'NOT_ENGLISH', 'LOW_QUALITY', 'NOT_LLM_INSTRUCTION', 'MANUAL');
-- AlterTable
ALTER TABLE "prompts" ADD COLUMN "delistReason" "DelistReason";

View File

@@ -98,6 +98,7 @@ model Prompt {
isFeatured Boolean @default(false)
isUnlisted Boolean @default(false)
unlistedAt DateTime?
delistReason DelistReason?
deletedAt DateTime?
changeRequests ChangeRequest[]
pinnedBy PinnedPrompt[]
@@ -314,3 +315,11 @@ enum WebhookEvent {
PROMPT_UPDATED
PROMPT_DELETED
}
enum DelistReason {
TOO_SHORT
NOT_ENGLISH
LOW_QUALITY
NOT_LLM_INSTRUCTION
MANUAL
}