You are on page 1of 6

Experiment No – 06

AIM:- Design and implementation of Library Information System.


Theory:-
This ER (Entity Relationship) Diagram represents the model of Library Information
System Entity. The entity-relationship diagram of Library Information System shows all the
visual instrument of database tables and the relations between Book Maintenance,
Membership Management, Student, Member etc. It used structure data and to define the
relationships between structured data groups of Library Information System functionalities.
The main entities of the Library Information System are Student, Book Maintenance, Fees
Collection, Membership Management, Facilities and Member.

Library Information System entities and their attributes:


1. Student Entity: Attributes of Student are student_id, student_college_id,
student_name, student_mobile, student_email, student_username, student_password,
student_address.
2. Book Maintenance Entity: Attributes of Book Maintenance ae maintenance_id,
maintenance_type, maintenance_date, maintenance_description,
maintenance_number.
3. Fees Collection Entity: Attributes of Fees Collection are fees_id, fees_amount,
fees_type, fees_description.
4. Membership Management Entity: Attributes of Membership Management are
membership_id, membership_student_id, membership_name, membership_type,
membership_description.
5. Facilities Entity: Attributes of Facilities are Facility_id, Facility_name, Facility_type,
Facility_description.
6. Member Entity: Attributes of Member are memeber_id, memeber_name,
memeber_mobile, memeber_email, memeber_username, memeber_password,
memeber_address.

Description of Library Information System Database :


 The details of Student is store into the Student tables respective with all tables.
 Each entity (Member, Fees Collection, Facilities, Book Maintenance, Student)
contains primary key and unique keys.
 The entity Fees Collection, Facilities has binded with Student, Book Maintenance
entities with foreign key.
 There is one-to-one and one-to-many relationships available between Facilities,
Membership Management, Member, Student.
 All the entities Student, Facilities, Fees Collection, Member are normalized and
reduce duplicity of records.
 We have implemented indexing on each tables of Library Information System tables
for fast query execution.
ER Diagram of Library Information System

Login_role_id
Login_username
Login_id

User_password
Login

user_name
user_mobile Role_id
Role_name
user_id

User Has Roles Role_disc


user_email

user_pass Per_role_id
Per_id
Per_module
Stu_id Permission
Per_name
Stu_name Stu_add
Fee_desc
Student Manager Fee_collec
Fee_id
Stu_mobile Stu_pass Fee_amt
Fee_stu_id
Stu_email Fee_type

Member Memb_email

Memb_add
Memb_mob
Memb_id
Memb_name

Has

Book_maintenance

Mnt_id Mnt_disc
Mnt_type
Database and Tables
Database creation:

Login Table
Command:

 CREATE TABLE Login(Login_id int not null primary key, Login_role_id int,
Login_username varchar(20),User_password varchar(30));
 DESC Login;

User Table
Command:

 CREATE TABLE User(User_id int not null primary key, User_name varchar(30),
User_email varchar(30), User_mobile varchar(10),User_password varchar(20));
 DESC User;

Roles Table
Roles Table
Command:

 CREATE TABLE Roles(Role_id int not null primary key, Role_name varchar(30),
Role_disc varchar(30));
 DESC Roles;

Permission Table
Command:

 CREATE TABLE Permission(Per_id int not null primary key, Per_role_id int,
Per_name varchar(30), Per_module varchar(30));
 DESC Permission;

Student Table
Command:

 CREATE TABLE Student(Stu_id int not null primary key, Stu_name varchar(30),
Stu_mobile varchar(10), Stu_email varchar(30),Stu_address varchar(50),
Stu_password varchar(20));
 DESC Student;
Fees Collection Table
Command-
 CREATE TABLE Fee_collection(Fee_id int not null primary key,
Fee_stu_id int, fee_type varchar(30), Fee_amt int, Fee_disc varchar(30));
 DESC Fee_collection;

Member Table
Command:

 CREATE TABLE Member(Memb_id int not null primary key, Memb_name


varchar(30), Memb_email varchar(30), Memb_mob varchar(10), Memb_add
varchar(40));
 DESC Member;

Book_maintenance Table
Command:

 CREATE TABLE Book_maintenance(Mnt_id int not null primary key, Mnt_type


varchar(10), Mnt_disc varchar(30));
 DESC Member;
Database
Command:
SHOW TABLES;

You might also like