borrow_book
Creates a loan record for a member borrowing a book, verifying available copies and blocking duplicate active loans.
Instructions
Borrows a book for a member, creating a loan record. Fails if the book has no available copies or the member already has an active loan for it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| book_id | Yes | ||
| member_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |