module.exports=[224873,e=>{"use strict";var t=e.i(886588),s=e.i(739943);async function o(e){let o=await (0,s.getAdapter)(),a=(0,t.v4)(),r=e.timestamp||new Date().toISOString();return await o.run("INSERT INTO usage_records (id, userId, apiKeyId, model, inputTokens, outputTokens, totalTokens, cost, creditUsed, status, errorMessage, endpoint, timestamp) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",[a,e.userId,e.apiKeyId,e.model,e.inputTokens||0,e.outputTokens||0,e.totalTokens||0,e.cost||0,e.creditUsed||0,e.status,e.errorMessage,e.endpoint,r]),a}e.s(["logUsage",0,o])}];

//# sourceMappingURL=src_lib_db_repos_usageRecordsRepo_0549fvr.js.map