- 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
36 lines
802 B
TypeScript
36 lines
802 B
TypeScript
import { PrismaClient } from '@prisma/client'
|
|
|
|
const prisma = new PrismaClient()
|
|
|
|
async function main() {
|
|
const users = await prisma.user.findMany({
|
|
include: {
|
|
aiSettings: true,
|
|
notes: {
|
|
take: 5,
|
|
orderBy: { updatedAt: 'desc' }
|
|
}
|
|
}
|
|
})
|
|
|
|
console.log('Total Users:', users.length)
|
|
|
|
for (const user of users) {
|
|
console.log(`User: ${user.email} (${user.id})`)
|
|
console.log(` AI Settings:`, user.aiSettings)
|
|
console.log(` Recent 5 Notes:`)
|
|
for (const note of user.notes) {
|
|
console.log(` ID: ${note.id}, Title: ${note.title}, Updated: ${note.updatedAt}, Dismissed: ${JSON.stringify(note)}`)
|
|
}
|
|
}
|
|
}
|
|
|
|
main()
|
|
.catch(e => {
|
|
console.error(e)
|
|
process.exit(1)
|
|
})
|
|
.finally(async () => {
|
|
await prisma.$disconnect()
|
|
})
|