Requirement Analysis and Project Introduction of Library Management System

Project introduction of library management system

1. Introduction

  1. The library management system provides support for the school library's functions of borrowing and returning books independently. Users have their own accounts and complete operations such as borrowing and returning books offline.

  2. The management system includes the name of the book, author, book classification, book number, remaining quantity, loaned quantity, publishing house, publishing time, and collection quantity.

  3. Users log in with their own e-mails, and then they can add their favorite books, borrow and return them, and can query books and their own records and operate business matters. There are different business restrictions for different users.

  4. Administrators can add, delete, check and modify books, user information, and transaction information.

Second, the realization principle

  1. for books

    • Book information will not be displayed on the book list page, you need to click to enter the details page to view book details

    • All book information is the responsibility of the administrator, the addition, modification, and deletion of book information. The transaction information of the books cannot be changed. In order to ensure the whereabouts of all books and ensure the accountability of lost books.

  2. for users

    • It is divided into students and teachers. The difference between teachers and students lies in the number of borrowed books and the restrictions on borrowing books for different users. The user's pages are: library page, my book, my collection and password change four pages
    • Users log in with their own account
      • On the home page , you can search books with multiple conditions and fuzzy queries on the home page, find books you are interested in, check book details, borrow books, and collect books.
      • The My Books page is your own book borrowing record, you can return the book, and check the returned or unreturned books.
      • On the My Collection page, you can view the details of the books you have collected, and at the same time perform search queries, borrow books and cancel collections. When the user borrows and returns books, collects and cancels the collection, the number of borrowed books and the number of favorites will also change accordingly, and the number of borrowed books will be limited due to different types of users.
      • Change password page can modify your own user password
  3. for administrators

    • Admin has three pages:
      • Book library page : You can add, delete, check and modify books, and view the details.
      • User management page : add, delete, check and modify user information, but cannot view user passwords, only initialize passwords. Due to the extremely powerful functions of the administrator, it is very easy to pollute the data and operate with caution. Therefore, logical deletion and physical deletion are provided when deleting the user's account information.
      • Transaction log page : Inquire about book loan transactions and check the details. Since the user's transaction information is associated with a lot of data, in order to prevent information confusion, the transaction information cannot be modified or deleted.

Three View

  1. Login page: Log in directly, according to different accounts, identify different identities and enter different pages.
    • Account input box: Enter your email address
    • Password input box: enter the password
    • Button: Submit login verification
    • If you forget the password, you can only contact the administrator to initialize the password
    • Click to jump to the registration page
  2. registration page:
    • Name input box: enter a name
    • Birthday input box: select birthday date
    • Faculty Selection Box: Select the Faculty in the Select option
    • Major selection box: According to different colleges, different majors will be displayed for selection
    • User Type Select Box: Select the user category in the options
    • E-mail input box: enter the e-mail
    • Password input box: Enter a custom password
  3. User page:
    • Book library page: query for books (multi-condition query, fuzzy query button), details, borrowing and collection buttons
    • My Books page: Check the status of borrowed books (retrieve button), details, return and collection buttons
    • My collection page: query for book collection (multi-condition query, fuzzy query button), details, borrow books, cancel collection button
    • Modify password page: original password input box, new password input box, new password confirmation box, confirm submit button
  4. Admin page:
    • Book management page: add, delete, check and modify book information, and view details.
    • User management page: add, delete, check and modify user information, and initialize passwords.
    • Transaction log page: View and retrieve all users' borrowing records.

Fourth, the form

  1. Book table:
desc t_books;
+---------------+--------------+------+-----+---------+----------------+
| Field         | Type         | Null | Key | Default | Extra          |
+---------------+--------------+------+-----+---------+----------------+
| b_id          | int          | NO   | PRI | NULL    | auto_increment |
| b_name        | varchar(255) | YES  |     | NULL    |                |
| b_author      | varchar(255) | YES  |     | NULL    |                |
| b_no          | varchar(255) | NO   |     | NULL    |                |
| b_type        | varchar(255) | YES  |     | NULL    |                |
| b_left        | int          | YES  |     | NULL    |                |
| b_lend        | int          | YES  |     | NULL    |                |
| press         | varchar(255) | YES  |     | NULL    |                |
| press_time    | date         | YES  |     | NULL    |                |
| collected_num | int          | YES  |     | NULL    |                |
| is_delete     | bit(1)       | NO   |     | b'0'    |                |
+---------------+--------------+------+-----+---------+----------------+
  1. user table
t_users;
+------------+--------------+------+-----+---------+-------+
| Field      | Type         | Null | Key | Default | Extra |
+------------+--------------+------+-----+---------+-------+
| name       | varchar(255) | YES  |     | NULL    |       |
| brith      | date         | YES  |     | NULL    |       |
| academy    | varchar(255) | YES  |     | NULL    |       |
| major      | varchar(255) | YES  |     | NULL    |       |
| email      | varchar(255) | NO   | PRI | NULL    |       |
| password   | varchar(255) | YES  |     | NULL    |       |
| user_type  | varchar(255) | YES  |     | NULL    |       |
| borrow_num | varchar(255) | YES  |     | NULL    |       |
| is_delete  | bit(1)       | YES  |     | b'0'    |       |
+------------+--------------+------+-----+---------+-------+
  1. Book Borrowing Record Form
desc t_borrowlog;
+-------------+--------------+------+-----+---------+-----------------------------+
| Field       | Type         | Null | Key | Default | Extra                       |
+-------------+--------------+------+-----+---------+-----------------------------+
| log_num     | int          | NO   | PRI | NULL    | auto_increment              |
| email       | varchar(255) | YES  | MUL | NULL    |                             |
| b_no        | varchar(255) | YES  |     | NULL    |                             |
| time_lend   | datetime     | YES  |     | NULL    |                             |
| time_return | datetime     | YES  |     | NULL    | on update CURRENT_TIMESTAMP |
| is_late     | varchar(255) | YES  |     | NULL    |                             |
+-------------+--------------+------+-----+---------+-----------------------------+
  1. Favorite Record Form
desc t_collectlog;
+---------+--------------+------+-----+---------+----------------+
| Field   | Type         | Null | Key | Default | Extra          |
+---------+--------------+------+-----+---------+----------------+
| log_num | int          | NO   | PRI | NULL    | auto_increment |
| email   | varchar(255) | YES  | MUL | NULL    |                |
| b_no    | varchar(255) | YES  |     | NULL    |                |
| time    | datetime     | YES  |     | NULL    |                |
+---------+--------------+------+-----+---------+----------------+
  1. User Type Table
desc t_usertype;
+---------+--------------+------+-----+---------+----------------+
| Field   | Type         | Null | Key | Default | Extra          |
+---------+--------------+------+-----+---------+----------------+
| log_num | int          | NO   | PRI | NULL    | auto_increment |
| email   | varchar(255) | YES  | MUL | NULL    |                |
| b_no    | varchar(255) | YES  |     | NULL    |                |
| time    | datetime     | YES  |     | NULL    |                |
+---------+--------------+------+-----+---------+----------------+
  1. college table
desc academy
+---------+--------------+------+-----+---------+----------------+
| Field   | Type         | Null | Key | Default | Extra          |
+---------+--------------+------+-----+---------+----------------+
| id      | int          | NO   | PRI | NULL    | auto_increment |
| academy | varchar(255) | NO   |     | NULL    |                |
| major   | varchar(255) | NO   |     | NULL    |                |
+---------+--------------+------+-----+---------+----------------+

Five, ER diagram

[External link image transfer...(img-lTkFCIib-1663493470981)]

Guess you like

Origin blog.csdn.net/m0_58121644/article/details/126920373
Recommended