mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2026-02-12 15:52:47 +00:00
feat(prisma, src): add slug field to Prompt model and implement slug generation for prompts without slugs
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "prompts" ADD COLUMN "slug" TEXT;
|
||||
@@ -76,6 +76,7 @@ model VerificationToken {
|
||||
model Prompt {
|
||||
id String @id @default(cuid())
|
||||
title String
|
||||
slug String?
|
||||
description String?
|
||||
content String
|
||||
type PromptType @default(TEXT)
|
||||
|
||||
Reference in New Issue
Block a user