diff --git a/packages/db/schema.ts b/packages/db/schema.ts index 4acd86c4..8d08282e 100644 --- a/packages/db/schema.ts +++ b/packages/db/schema.ts @@ -219,3 +219,13 @@ export const tagsOnBookmarksRelations = relations( }), }), ); + +export const apiKeyRelations = relations( + apiKeys, + ({ one }) => ({ + user: one(users, { + fields: [apiKeys.userId], + references: [users.id], + }), + }), +);