import { PrismaClient } from '@prisma/client'

const prisma = new PrismaClient()

async function main() {
    const configs = await prisma.systemConfig.findMany()
    console.log('--- System Config ---')
    configs.forEach(c => {
        if (c.key.startsWith('AI_') || c.key.startsWith('OLLAMA_')) {
            console.log(`${c.key}: ${c.value}`)
        }
    })
}

main()
    .catch(e => {
        console.error(e)
        process.exit(1)
    })
    .finally(async () => {
        await prisma.$disconnect()
    })
