"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.prisma = void 0;
exports.connectDatabase = connectDatabase;
const client_1 = require("@prisma/client");
const prisma = new client_1.PrismaClient();
exports.prisma = prisma;
async function connectDatabase() {
    try {
        await prisma.$connect();
        console.log('📦 MySQL 连接成功');
    }
    catch (error) {
        console.error('📦 MySQL 连接失败:', error);
        throw error;
    }
}
