- Add reminders page with navigation support - Upgrade BMad builder module to skills-based architecture - Refactor MCP server: extract tools and auth into separate modules - Add connections cache, custom AI provider support - Update prisma schema and generated client - Various UI/UX improvements and i18n updates - Add service worker for PWA support Made-with: Cursor
10 lines
532 B
TypeScript
10 lines
532 B
TypeScript
import { PrismaClient } from '@prisma/client'
|
|
const prisma = new PrismaClient()
|
|
async function main() {
|
|
const users = await prisma.user.findMany({ select: { email: true }, take: 3 })
|
|
console.log('Users:', JSON.stringify(users))
|
|
const notes = await prisma.note.findMany({ where: { reminder: { not: null } }, select: { id: true, title: true, reminder: true, isReminderDone: true }, take: 5 })
|
|
console.log('Notes avec rappels:', JSON.stringify(notes, null, 2))
|
|
}
|
|
main().catch(console.error).finally(() => prisma.$disconnect())
|