18 lines
513 B
TypeScript
18 lines
513 B
TypeScript
import prisma from './src/lib/prisma'
|
|
|
|
async function debug() {
|
|
console.log('Checking prisma.pricingPlan...')
|
|
// @ts-ignore
|
|
if (prisma.pricingPlan) {
|
|
console.log('✅ pricingPlan is defined')
|
|
// @ts-ignore
|
|
const count = await prisma.pricingPlan.count()
|
|
console.log('Count:', count)
|
|
} else {
|
|
console.log('❌ pricingPlan is NOT defined')
|
|
console.log('Available models:', Object.keys(prisma).filter(k => !k.startsWith('$') && !k.startsWith('_')))
|
|
}
|
|
}
|
|
|
|
debug().catch(console.error)
|