mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
fixes, nested the NextLink, it works, removed prisma
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
import { relations } from "drizzle-orm/relations";
|
||||
import { } from "./schema";
|
||||
import { balAccounts, builds } from "./schema";
|
||||
|
||||
export const buildsRelations = relations(builds, ({one}) => ({
|
||||
balAccount: one(balAccounts, {
|
||||
fields: [builds.accountId],
|
||||
references: [balAccounts.id]
|
||||
}),
|
||||
}));
|
||||
|
||||
export const balAccountsRelations = relations(balAccounts, ({many}) => ({
|
||||
builds: many(builds),
|
||||
}));
|
||||
Reference in New Issue
Block a user