auth aint working, trying new version

This commit is contained in:
2024-12-16 23:25:14 -05:00
parent 0bf9011cc6
commit d3ab4df010
30 changed files with 37 additions and 620 deletions

View File

@@ -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),
}));