Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Scripts For Blood Bank Managment System)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

DEPARTMENT OF MASTER OF COMPUTER APPLICATION

ACTIVITY 2
SYPNOSIS
OF
“BLOOD BANK MANAGEMENT SYSTEM”

Submitted by

GAURAV SHARMA

USN No: 20MCAR0140

II Semester

Under the Supervision of

(Prof) Mr. Raghvendra R.


JAIN (Deemed-to-beUniversity)

School of Computer Science and


Information Technology Jayanagar,
Bangalore.

APRIL 2021

1
Abstract

An efficient management system for the blood banks is a necessity as their


functioning involves a lot of complexity. All major blood banks have fine
working management systems which contain their entire databases and other
useful information. This J2SE based Blood Bank Management System
prototype is proposed to provide a management functional to the minor
blood banks (because this software is cheaper) in order to handle their
donors, buyers and staff. The technology platform in implementing this
system uses J2SE programming environment in Java. The entire prototype
has been developed keeping in view of distributed client-server computing
technology in mind.

2
Script Used :-

Name Type Schema


CREATE TABLE "auth_group" ("id" integer
auth_group NOT NULL PRIMARY KEY
AUTOINCREMENT, "name" varchar(150)
NOT NULL UNIQUE)
Id integer "id" integer NOT NULL
Name varchar(150) "name" varchar(150) NOT
NULL UNIQUE
CREATE TABLE
auth_group_permis "auth_group_permissions" ("id" integer
sions NOT NULL PRIMARY KEY
AUTOINCREMENT, "group_id" integer NOT
NULL REFERENCES
"auth_group" ("id") DEFERRABLE
INITIALLY DEFERRED,
"permission_id" integer NOT NULL
REFERENCES
"auth_permission" ("id") DEFERRABLE
INITIALLY DEFERRED)
Id integer "id" integer NOT NULL
group_id integer "group_id" integer NOT NULL
permission_id integer "permission_id" integer NOT NULL
CREATE TABLE "auth_permission" ("id"
auth_permission integer NOT NULL PRIMARY KEY
AUTOINCREMENT,
"content_type_id" integer NOT NULL
REFERENCES
"django_content_type" ("id") DEFERRABLE
INITIALLY DEFERRED,
"codename" varchar(100) NOT NULL,
"name" varchar(255) NOT NULL)

Id integer "id" integer NOT NULL


content_type_id integer "content_type_id" integer NOT NULL
codename varchar(100) "codename" varchar(100) NOT NULL
Name varchar(255) "name" varchar(255) NOT NULL

3
CREATE TABLE "auth_user" ("id" integer
auth_user NOT NULL PRIMARY KEY
AUTOINCREMENT, "password"
varchar(128) NOT NULL, "last_login"
datetime NULL, "is_superuser" bool NOT
NULL, "username" varchar(150) NOT
NULL UNIQUE, "first_name" varchar(30)
NOT NULL, "email" varchar(254) NOT
NULL, "is_staff" bool NOT NULL,

4
Name Type Schema
"is_active" bool NOT NULL, "date_joined"
datetime NOT NULL, "last_name"
varchar(150) NOT NULL)

Id integer "id" integer NOT NULL


password varchar(128) "password" varchar(128) NOT NULL
last_login datetime "last_login" datetime
is_superuser bool "is_superuser" bool NOT NULL
username varchar(150) "username" varchar(150) NOT
NULL UNIQUE
first_name varchar(30) "first_name" varchar(30) NOT NULL
email varchar(254) "email" varchar(254) NOT NULL
is_sta" bool "is_sta"" bool NOT NULL
is_active bool "is_active" bool NOT NULL
date_joined datetime "date_joined" datetime NOT NULL
last_name varchar(150) "last_name" varchar(150) NOT NULL

auth_user_groups CREATE TABLE


"auth_user_groups" ("id" integer NOT
NULL PRIMARY KEY
AUTOINCREMENT, "user_id" integer
NOT NULL REFERENCES
"auth_user" ("id") DEFERRABLE INITIALLY
DEFERRED, "group_id" integer NOT NULL
REFERENCES
"auth_group" ("id") DEFERRABLE
INITIALLY DEFERRED)
id integer "id" integer NOT NULL
user_id integer "user_id" integer NOT NULL
group_id integer "group_id" integer NOT NULL

auth_user_user_per CREATE TABLE


"auth_user_user_permissions" ("id" integer
missions NOT NULL PRIMARY KEY
AUTOINCREMENT, "user_id" integer NOT
NULL REFERENCES
"auth_user" ("id") DEFERRABLE INITIALLY
DEFERRED,
"permission_id" integer NOT NULL
REFERENCES
"auth_permission" ("id") DEFERRABLE
INITIALLY DEFERRED)
id integer "id" integer NOT NULL
user_id integer "user_id" integer NOT NULL
permission_id integer "permission_id" integer NOT NULL
Name Type Schema
CREATE TABLE "blood_bloodrequest" ("id"
blood_bloodrequest integer NOT NULL PRIMARY KEY
AUTOINCREMENT, "patient_name"
varchar(30) NOT NULL, "patient_age"
integer unsigned NOT NULL CHECK
("patient_age"
>= 0), "reason" varchar(500) NOT NULL,
"bloodgroup" varchar(10) NOT NULL,
"unit" integer unsigned NOT NULL CHECK
("unit" >= 0), "status" varchar(20) NOT
NULL, "request_by_donor_id" integer
NULL REFERENCES "donor_donor" ("id")
DEFERRABLE INITIALLY DEFERRED,
"request_by_patient_id" integer NULL
REFERENCES "patient_patient" ("id")
DEFERRABLE INITIALLY DEFERRED,
"date" date NOT NULL)

id integer "id" integer NOT NULL


patient_name varchar(30) "patient_name" varchar(30) NOT NULL
patient_age integer unsigned "patient_age" integer unsigned NOT
NULL CHECK("patient_age" >= 0)
reason varchar(500) "reason" varchar(500) NOT NULL
bloodgroup varchar(10) "bloodgroup" varchar(10) NOT NULL
unit integer unsigned "unit" integer unsigned NOT
NULL CHECK("unit" >= 0)
status varchar(20) "status" varchar(20) NOT NULL
request_by_donor_id integer "request_by_donor_id" integer
request_by_patient_id integer "request_by_patient_id" integer
date date "date" date NOT NULL
CREATE TABLE "blood_stock" ("id" integer
blood_stock NOT NULL PRIMARY KEY
AUTOINCREMENT,
"bloodgroup" varchar(10) NOT NULL,
"unit" integer unsigned NOT NULL CHECK
("unit" >= 0))
id integer "id" integer NOT NULL
bloodgroup varchar(10) "bloodgroup" varchar(10) NOT NULL
unit integer unsigned "unit" integer unsigned NOT
NULL CHECK("unit" >= 0)
CREATE TABLE
django_admin_log "django_admin_log" ("id" integer NOT
NULL PRIMARY KEY
Name Type Schema
AUTOINCREMENT, "action_time" datetime
NOT NULL, "object_id" text NULL,
"object_repr" varchar(200) NOT NULL,
"change_message" text NOT NULL,
"content_type_id" integer NULL
REFERENCES "django_content_type" ("id")
DEFERRABLE INITIALLY DEFERRED,
"user_id" integer NOT NULL REFERENCES
"auth_user" ("id") DEFERRABLE INITIALLY
DEFERRED,
"action_flag" smallint unsigned
NOT NULL CHECK ("action_flag"
>= 0))

id integer "id" integer NOT NULL


action_time datetime "action_time" datetime NOT NULL
object_id text "object_id" text
object_repr varchar(200) "object_repr" varchar(200) NOT NULL
change_message text "change_message" text NOT NULL
content_type_id integer "content_type_id" integer
user_id integer "user_id" integer NOT NULL
action_flag smallint "action_flag" smallint unsigned
unsigned NOT NULL CHECK("action_flag" >=
0)
CREATE TABLE
django_content_typ e "django_content_type" ("id" integer NOT
NULL PRIMARY KEY
AUTOINCREMENT, "app_label"
varchar(100) NOT NULL, "model"
varchar(100) NOT NULL)
id integer "id" integer NOT NULL
app_label varchar(100) "app_label" varchar(100) NOT NULL
model varchar(100) "model" varchar(100) NOT NULL
CREATE TABLE
django_migrations "django_migrations" ("id" integer NOT
NULL PRIMARY KEY AUTOINCREMENT,
"app"
varchar(255) NOT NULL, "name"
varchar(255) NOT NULL, "applied"
datetime NOT NULL)
id integer "id" integer NOT NULL
app varchar(255) "app" varchar(255) NOT NULL
name varchar(255) "name" varchar(255) NOT NULL
applied datetime "applied" datetime NOT NULL
CREATE TABLE "django_session"
Name Type Schema

django_session ("session_key" varchar(40) NOT NULL


PRIMARY KEY,
"session_data" text NOT NULL,
"expire_date" datetime NOT NULL)

session_key varchar(40) "session_key" varchar(40) NOT NULL


session_data text "session_data" text NOT NULL
expire_date datetime "expire_date" datetime NOT NULL

donor_blooddonate CREATE TABLE


"donor_blooddonate" ("id" integer NOT
NULL PRIMARY KEY
AUTOINCREMENT, "disease"
varchar(100) NOT NULL, "age" integer
unsigned NOT NULL CHECK ("age" >= 0),
"bloodgroup" varchar(10) NOT NULL,
"unit" integer unsigned NOT NULL CHECK
("unit" >= 0),
"status" varchar(20) NOT NULL, "date"
date NOT NULL, "donor_id" integer NOT
NULL REFERENCES "donor_donor" ("id")
DEFERRABLE INITIALLY DEFERRED)

id integer "id" integer NOT NULL


disease varchar(100) "disease" varchar(100) NOT NULL
age integer unsigned "age" integer unsigned NOT
NULL CHECK("age" >= 0)
bloodgroup varchar(10) "bloodgroup" varchar(10) NOT NULL
unit integer unsigned "unit" integer unsigned NOT
NULL CHECK("unit" >= 0)
status varchar(20) "status" varchar(20) NOT NULL
date date "date" date NOT NULL
donor_id integer "donor_id" integer NOT NULL

donor_donor CREATE TABLE "donor_donor" ("id"


integer NOT NULL PRIMARY KEY
AUTOINCREMENT,
"profile_pic" varchar(100) NULL,
"bloodgroup" varchar(10) NOT NULL,
"address" varchar(40) NOT NULL,
"mobile" varchar(20) NOT NULL,
"user_id" integer NOT NULL UNIQUE
REFERENCES "auth_user" ("id")
DEFERRABLE INITIALLY DEFERRED)

id integer "id" integer NOT NULL


Name Type Schema
profile_pic varchar(100) "profile_pic" varchar(100)
bloodgroup varchar(10) "bloodgroup" varchar(10) NOT NULL
address varchar(40) "address" varchar(40) NOT NULL
mobile varchar(20) "mobile" varchar(20) NOT NULL
user_id integer "user_id" integer NOT NULL UNIQUE

patient_patient CREATE TABLE "patient_patient" ("id"


integer NOT NULL PRIMARY KEY
AUTOINCREMENT,
"profile_pic" varchar(100) NULL, "age"
integer unsigned NOT NULL CHECK ("age"
>= 0),
"bloodgroup" varchar(10) NOT NULL,
"disease" varchar(100) NOT NULL,
"doctorname" varchar(50) NOT NULL,
"address" varchar(40) NOT NULL,
"mobile" varchar(20) NOT NULL,
"user_id" integer NOT NULL UNIQUE
REFERENCES
"auth_user" ("id") DEFERRABLE INITIALLY
DEFERRED)

id integer "id" integer NOT NULL


profile_pic varchar(100) "profile_pic" varchar(100)
age integer unsigned "age" integer unsigned NOT
NULL CHECK("age" >= 0)
bloodgroup varchar(10) "bloodgroup" varchar(10) NOT NULL
disease varchar(100) "disease" varchar(100) NOT NULL
doctorname varchar(50) "doctorname" varchar(50) NOT NULL
address varchar(40) "address" varchar(40) NOT NULL
mobile varchar(20) "mobile" varchar(20) NOT NULL
user_id integer "user_id" integer NOT NULL UNIQUE

sqlite_sequence CREATE TABLE


sqlite_sequence(name,seq)
name "name"
seq "seq"

Views (0)
Name Type Schema

Triggers (0)
Name Type Schema

TOOLS/IDES
Front End:
1. HTML
2. CSS
3. PYTHON
Back End:
1. PHP
2. APACHE (SERVER)
3. MYSQL

You might also like