amer-sabah / bookshelf

0 stars 5 forks source link

As a Library owner, I want to return a borrowed book to the system so other customers can borrow it. #35

Open AsemLab opened 3 years ago

AsemLab commented 3 years ago

The use case description

Use case name: Return borrowed book

Brief description: Library owner return a borrowed book to the system.

Actor: Library owner

Preconditions: Customer borrowed a book.

Main flow:

  1. Customer returns the book.
  2. Library owner opens the borrowed books page
  3. Owner selects the book.
  4. Owner clicks return.
  5. System update the book status.

Postcondition: The book can be borrowed.

Alternatives: None

AsemLab commented 3 years ago

The use case description

Use case name: Return borrowed book

Brief description: Library owner return a borrowed book to the system.

Actor: Library owner

Preconditions: Customer borrowed a book.

Main flow:

  1. Customer returns the book.
  2. Library owner opens the borrowed books page
  3. Owner selects the book.
  4. Owner clicks return.
  5. System update the book status.

Postcondition: The book can be borrowed.

Alternatives: None

AsemLab commented 3 years ago

The required tables:

customers (id, email) Libraries (id, books) books (id) library_owners (id, library_id)