// A book belongs to ONE author. The inverse of authors→books. // `one(authors)` resolves the `authorId` FK automatically. import { relations } from '@voltro/database' import { authors } from './authors.entity' import { books } from './books.entity' export const booksRelations = relations(books, ({ one }) => ({ author: one(authors), }))