rewrote all queries to drizzle
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { relations } from "drizzle-orm";
|
||||
import { rewardPrograms } from "./rewardProgramTable.js";
|
||||
import { rewards } from "../rewardModels/rewardTable.js";
|
||||
|
||||
export const rewardProgramRelations = relations(rewardPrograms, ({ one }) => ({
|
||||
reward: one(rewards, {
|
||||
fields: [rewardPrograms.internal_reward_id],
|
||||
references: [rewards.internal_id],
|
||||
}),
|
||||
}));
|
||||
Reference in New Issue
Block a user