You are on page 1of 9

Online Blood Bank System

1. Registration_table:
SR_NO 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Field Registration_Id Registration_Date First_Name Middle_Name Last_Name User_Name
Password Gender DateOfBirth Address City_Id Blood_Group_Id Contact_No Email_Id Role_Id isAvailable

DataType Integer Date
Varchar Varchar Varchar Varchar Varchar Varchar Date Varchar Integer Integer Integer Varchar Integer Varchar

Size 5

constraint Primary NotNull

Description Autogenerated field
when user is login that date For first name For Middle name For last name For new user or old user entry for get username Get password for authentication Gender selection male/female/other Enter a Dateofbirte Full address of user permanent address City name from user Blood group detail Mobile number of user Email id of user User type of our system User available or not

30 30 30 30 20 6

NotNull NotNull NotNull NotNull NotNull NotNull NotNull

100 5 5 20 30 5 5

NotNull Fk Fk NotNull NotNull Fk NotNull

09MCA008

Page 1

Online Blood Bank System 2.Blood_Donor :
SR_NO 1 2 3 4 5 6 7 8 9 10 11 12 Field
Donor_Id Registration_Id

DataType Integer Integer Date Integer Decimal Decimal Integer
Integer

Size 5 5

constraint Description Primary key Autogenerated field for user Fk NotNull
id If donor is register then we will give reference id to go n donate bank to blood. Last date of blood donate Using blood group detail get blood group Blood_Pressure detail Temperature of donor Diseases detail of donor get using Diseases Quantity of blood donate user Percentage of blood Hemoglobin detail Heart beat pulse Weight of donor Branch id for this data is handle by any of blood bank donor and reciver is handle by blood bank we give authorization to access our recivr n donor table.

Blood_Donet_Date Blood_Group_Id

5 5 5 5 5

Fk NotNull NotNull Fk NotNull NotNull NotNull NotNull NotNull

BloodPressure Temperature
Diseases_Id Volume Hemoglobin Pulse Weight

Decimal Decimal Decimal

5 5 4 5

Blood_Bank_Branch_Id integer

09MCA008

Page 2

Online Blood Bank System 3. Blood_Receiver:
SR_NO 1 2 3 4 5 6 7 8 Field
Receiver_Id Registration_Id Blood_Group_Id Diseases_Id Volume Receive Date Doctor_Id BloodBankId

DataType integer integer integer integer Integer Date Integer Integer

Size
5 5 5 5 5

constraint
Primary key Fk Fk Fk NotNull NotNull

Description
Autogenerated field for user id If reciver is register then get info from registration table. Using blood group detail get blood group Diseases detail of donor get using Diseases Quantity of blood receiver receives a blood Receive date Detail Detail

5 5

Fk Fk

4. Doctor_detail:
SR_NO 1 2 3 4 5 Field
Doctor_Id Doctor_Name Bank_branch_Id Registration_Date Doctor_Type_Id

DataType integer varchar integer date Integer

Size
5 30 5

constraint
Primary key NotNull Fk NotNull

Description
Autogenerated field for user id Personal detail of doctor Direct connected to branch id Doctors registration date Which type of doctor get detail from Doctor_Type

5

Fk

09MCA008

Page 3

Online Blood Bank System 5. Doctor_Type:
SR_NO 1 2 Field
Doctor_Type_Id Doctor_Type

DataType integer varchar

Size
5 30

constraint
Primary key NotNull

Description
Autogenerated field for user id Type of doctor like heart, kidney, cancer etc ..

6. Diseases:
SR_NO 1 2 Field
Diseases_Id Diseases

DataType
integer Varchar

Size
5 30

constraint
Primary key NotNull

Description
Autogenerated field for user id Desist details of donor

7. Role_Type:
DataType SR_NO 1 2 Field
Role_Id Role Integer Varchar 5 10 Primary key NotNull Autogenerated field for user id Which type of user like Hospital,bloodbank,bankperson,admin

Size

constraint

Description

09MCA008

Page 4

Online Blood Bank System 8. Bank_Person:
SR_NO 1 2 3 4 5 6 7 8 9 10 11 Field
Bankparson_Id Bankparson_Name Username Password Address AreaId Contact_No Email_Id Registration_Id Blood_Stock_Id

DataType
Integer Varchar Varchar Varchar Varchar Integer Varchar Varchar Integer Integer

Size
5 30 30 20 100 5 20 50 5 5

Constraint
Primary key No No No No Fk No No Fk Fk

Description
Autogenerated field for user id Bankperson is application employee.. Bankperson username detail Password detail of bank person Full address of bankperson City of bankperson Contact information of bank person Email_Id detail of bank person Autogenerated field for user id Count the blood stock by bank person using stock table User available or not .

isAvailable

Varchar

Varchar

NotNull

09MCA008

Page 5

Online Blood Bank System 9. Admin :
SR_NO 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Field
Admin_Id First_Name Middle_Name Last_Name User_Name Password Gender DateOfBirth Address City Area_Id Blood_Group_Id Contact_No Email_Id Registration_Date isApproved

DataType
integer Varchar Varchar Varchar Varchar Varchar Varchar Date Varchar Varchar Integer Integer Integer varchar Date Varchar

Size
5 30 30 30 30 20 6

Constraint
Primary key NotNull NotNull NotNull NotNull NotNull NotNull NotNull

Description
Autogenerated field for user id Admin first name detail Admin middle name detail Last name of admin user User name detail of admin Password authentication detail Sex detail Date of birth detail of admin person Full address of admin person City record

100 20 5 5 20 50

NotNull Fk Fk Fk NotNull NotNull NotNull

Blood group of admin person Mobile or any number of detail Email_Id detail Register date detail Any bankperson is approval by this detail

10

NotNull

09MCA008

Page 6

Online Blood Bank System 10. Blood_Group:
SR_NO 1 2 Field
Blood_Group_Id Blood_Group_Name

DataType
Integer Varchar

Size
5 5

constraint
Primary key NotNull

Description
Autogenerated field for user id Blood group name

11. Blood_Bank:
SR_NO 1 2 Field
Blood_Bank_Id Blood_Bank_Name

DataType
Integer varchar

Size
5 30

constraint
Primary key NotNull

Description
Autogenerated field for user id Autogenerated field for user id

12. Blood_Stock:
SR_NO 1 2 3 4 Field
Blood_Stock_Id Blood_Stock Blood_Group_Id

DataType
Integer Varchar Integer

Size
5 7 5 5

constraint
Primary key NotNull Fk Fk

Description
Autogenerated field for user id Quantity of blood Blood group id detail Branch id for get information of branch detail

Blood_Bank_Branch_Id integer

09MCA008

Page 7

Online Blood Bank System 13. Blood_Bank_Branch:
SR_NO 1 2 3 4 5 6 7 8 9 Field DataType Size
5 100 5 5 5 30 20 5 15

constraint
Primary key NotNull Fk Fk Fk NotNull NotNull Fk NotNull

Description
Autogenerated field for user id All branch location detail City detail Area wise search bank Blood bank detail User name detail of branch Authentication of branch To check authorized branch or not. Check for authoraisation

Blood_Bank_Branch_Id Integer Branch_Address City_Id Area_Id Blood_Bank_Id Username Password Admin_Id isApproved Varchar Integer Integer Integer Varchar varchar Integer varchar

14. Area:
SR_NO 1 2 3 Field
Area_Id Area_Name City_Id

DataType
integer varchar integer

Size
5 30 5

constraint
Primary key NotNull Fk

Description
Autogenerated field for user id Detail of area names City detail

15.City :
SR_NO 1 2 3 Field
City_Id City_Name State_Id

DataType
integer varchar integer

Size
5 30 5

constraint
Primary NotNull Fk

Description
Autogenerated field for user id Detail of city names State details

09MCA008

Page 8

Online Blood Bank System 16. State:
SR_NO 1 2 3 Field
State_Id State_Name Country_Id

DataType
integer varchar integer

Size
5 30 5

constraint
Primary NotNull Fk

Description
Autogenerated field for user id Detail of state names Country details

17. Country:
SR_NO 1 2 Field
Country_Id Country_Name

DataType
integer varchar

Size
5 30

constraint
Primary NotNull

Description
Autogenerated field for user id Country names detail

09MCA008

Page 9