
import { PrismaClient } from '@prisma/client';
import prisma from './src/lib/prisma';

async function main() {
    try {
        console.log('Checking SavedMessage table...');
        const count = await prisma.savedMessage.count();
        console.log(`SavedMessage table exists, count: ${count}`);
    } catch (error: any) {
        console.error('Error accessing SavedMessage table:', error.message);
    } finally {
        await prisma.$disconnect();
    }
}

main();
