feat: add AI Prompts section, database model, public pages, and admin CRUD

This commit is contained in:
AyrisAI
2026-07-23 17:38:06 +03:00
parent bd543c3bda
commit bf4e0da112
8 changed files with 762 additions and 7 deletions
+12
View File
@@ -160,3 +160,15 @@ model Setting {
value String @db.Text
updatedAt DateTime @updatedAt
}
model Prompt {
id String @id @default(cuid())
title String
slug String @unique
category String
description String @db.Text
content String @db.Text
tags String[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
+26
View File
@@ -240,6 +240,32 @@ async function main() {
}
});
// Clear existing prompts
await db.prompt.deleteMany();
// Create Seed Prompts
await db.prompt.create({
data: {
slug: 'fullstack-nextjs-architect-prompt',
title: 'Full-Stack Next.js 16 System Architect Prompt',
category: 'System Architecture',
description: 'System prompt to instruct AI agents to build production-ready Next.js 16 App Router code with Server Actions and Prisma.',
content: `You are a Senior Next.js 16 Architect. Always use TypeScript strict mode, App Router, proxy.ts for middleware, Server Actions with Zod validation, and Prisma ORM. Never write client components unless interactivity (onClick, useState) is required.`,
tags: ['Next.js', 'System Prompt', 'AI Architecture'],
}
});
await db.prompt.create({
data: {
slug: 'ui-ux-design-engineer-prompt',
title: 'Dark Mode Glassmorphism UI/UX Designer Prompt',
category: 'UI & Frontend',
description: 'Instructs AI to design modern dark-mode interfaces with Tailwind CSS v4, subtle glows, and micro-animations.',
content: `Act as a Lead UI/UX Engineer specializing in sleek dark mode interfaces. Use HSL/OKLCH color palettes, slate-950 backgrounds, red-500/10 glows, rounded-2xl containers, and Framer Motion micro-interactions. Avoid generic colors or white backgrounds.`,
tags: ['UI/UX', 'Tailwind CSS', 'Design System'],
}
});
console.log('Seeding completed successfully!');
}