fix: 🐛 type errors from not exporting drizzle types

This commit is contained in:
amianthus
2025-08-11 11:58:58 +01:00
parent 7b82d7aa9d
commit 1d3d8f18b6
5 changed files with 20 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import { pgTable, text, foreignKey, boolean } from "drizzle-orm/pg-core";
import { numeric } from "drizzle-orm/pg-core";
import { organizations } from "../../orgModels/orgTable.js";
import { rewards } from "../rewardModels/rewardTable.js";
import { InferSelectModel, InferInsertModel } from "drizzle-orm";
export const rewardPrograms = pgTable(
"reward_programs",
@@ -32,3 +33,6 @@ export const rewardPrograms = pgTable(
}).onDelete("cascade"),
],
);
export type RewardProgramRow = InferSelectModel<typeof rewardPrograms>;
export type InsertRewardProgramRow = InferInsertModel<typeof rewardPrograms>;