Your Prisma client.
A FeedbackStore on your own thumbs table, through a map (see
PrismaFeedbackMap), so the weekly summary's alerts and the hub's
counts read the ratings your app already keeps.
Your Prisma client.
Where your table differs from Evalkeeper's.
An aiFeedback table with a userId column, a rating enum of UP and
DOWN, a reason, an excerpt, and times, that never kept inputs:
const feedbackStore = prismaFeedbackStore(prisma, {
models: { evalFeedback: "aiFeedback" },
fields: {
evalFeedback: {
raterId: "userId",
input: null,
output: null,
status: null,
caseId: null,
},
},
});
A FeedbackStore on the EvalFeedback table.