feat: implement home page, business directory, and administrative management features with updated schema and API routes
Some checks failed
Build and Push App / build (push) Failing after 51s
Some checks failed
Build and Push App / build (push) Failing after 51s
This commit is contained in:
15
scratch/check-cats.ts
Normal file
15
scratch/check-cats.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
const prisma = new PrismaClient();
|
||||
async function check() {
|
||||
try {
|
||||
const count = await prisma.businessCategory.count();
|
||||
console.log('Category count:', count);
|
||||
const cats = await prisma.businessCategory.findMany({take: 5});
|
||||
console.log('Sample:', cats);
|
||||
} catch (e: any) {
|
||||
console.error('Error:', e.message);
|
||||
} finally {
|
||||
await prisma.$disconnect();
|
||||
}
|
||||
}
|
||||
check();
|
||||
Reference in New Issue
Block a user