feat: implement core platform features including business directory, admin dashboard, authentication, and API infrastructure
Some checks failed
Build and Push App / build (push) Failing after 16m2s
Some checks failed
Build and Push App / build (push) Failing after 16m2s
This commit is contained in:
17
admin/test-pricing.ts
Normal file
17
admin/test-pricing.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user