11 lines
368 B
TypeScript
11 lines
368 B
TypeScript
import { relations } from "drizzle-orm";
|
|
import { replaceables } from "./replaceableTable.js";
|
|
import { customerEntitlements } from "./cusEntTable.js";
|
|
|
|
export const replaceableRelations = relations(replaceables, ({ one }) => ({
|
|
customer_entitlement: one(customerEntitlements, {
|
|
fields: [replaceables.cus_ent_id],
|
|
references: [customerEntitlements.id],
|
|
}),
|
|
}));
|