mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
auth aint working, trying new version
This commit is contained in:
@@ -1,13 +1,3 @@
|
||||
import { relations } from "drizzle-orm/relations";
|
||||
import { user, authenticator } from "./schema";
|
||||
import { } from "./schema";
|
||||
|
||||
export const authenticatorRelations = relations(authenticator, ({one}) => ({
|
||||
user: one(user, {
|
||||
fields: [authenticator.userId],
|
||||
references: [user.id]
|
||||
}),
|
||||
}));
|
||||
|
||||
export const userRelations = relations(user, ({many}) => ({
|
||||
authenticators: many(authenticator),
|
||||
}));
|
||||
Reference in New Issue
Block a user