refactor: add relation names to schema (#56)
This commit is contained in:
@@ -81,5 +81,6 @@ export const apiKeyRelations = relations(apikey, ({ one }) => ({
|
||||
user: one(users, {
|
||||
fields: [apikey.userId],
|
||||
references: [users.id],
|
||||
relationName: "apiKeyUser",
|
||||
}),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user