0% found this document useful (0 votes)
6 views8 pages

Final Pro Info

The document outlines a final project for designing a relational database for a Pet Adoption Center, detailing its purpose, entities, and relationships. It includes five main entities: Pets, Adopters, Adoptions, Staff, and HealthRecords, with a focus on maintaining data integrity through foreign key constraints. Additionally, it provides SQL scripts for creating tables and inserting sample data to illustrate the database structure and functionality.

Uploaded by

rak.chris14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views8 pages

Final Pro Info

The document outlines a final project for designing a relational database for a Pet Adoption Center, detailing its purpose, entities, and relationships. It includes five main entities: Pets, Adopters, Adoptions, Staff, and HealthRecords, with a focus on maintaining data integrity through foreign key constraints. Additionally, it provides SQL scripts for creating tables and inserting sample data to illustrate the database structure and functionality.

Uploaded by

rak.chris14
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

SCHOOL OF INFORMATION TECHNOLOGY EDUCATION

UNIVERSIDAD DE DAGUPAN
ARELLANO ST., DAGUPAN CITY 2400

FINAL PROJECT IN
ITC05 INFORMATION MANAGEMENT

DATABASE DESIGN FOR A PET


ADOPTION CENTER

LEADER:
PIOQUINTO, RAVENN LLOYD B.
MEMBERS:
VELOZA, KRISTINE L.
OLIVA, JOHN PAUL B.

22-ITE-06

MAY 2025
Universidad de Dagupan
SCHOOL OF INFORMATION TECHNOLOGY EDUCATION
Center of Development in Information Technology Education
site.udd.edu.ph

I. Application Description
This project undertakes designing and implementation of a relational database for a Pet
Adoption Center. The purpose of the system is to schedule an organized approach of
recording and handling information with regards to pets, adopters, transactions of adoptions,
staff members, and records of pets’ health in an adoption center environment. There are five
main entities in the database structure. Pets, Adopters, Adoptions, Staff and HealthRecords.

The Pets entity contains necessary information about the animals which can be adopted
such as the pet name, pet species, breed, age, gender and the current status of the pet
(available, adopted, under treatment). Every pet is distinctively identified by a pet_id, hence
accurate referencing and management of pet records. The Adopters entity provides the
personal information of interested individuals who are willing to adopt pets on their first
name, last name, contact details, address and whether they are verified. Unique adopter_id
is used for each adopter to have a separate identification in the system.

The Adoptions entity will store the details of any transaction concerning pet adoption. Each
adoption comes with a unique adoption_id and also has foreign keys for the adopter and pet
being adopted. The adoption record includes the date of adoption, the amount paid of the
adoption fee, and stipulations regarding any special conditions attached to the adoptions.
The Staff entity contains information about employees who work at the adoption center –
their position, contact information, the date of their hire. Every staff has a unique staff_id.

The HealthRecords entity is responsible for the accommodation of the medical history of
pets, such as vaccination status, medical condition, treatment details. Every health record
has a unique identifier, record_id and it is associated with a particular pet by a foreign key
association.

The relationships between entities are imposed by using foreign key constraints for
maintaining referential integrity throughout the database. This design allows for proper
tracking of availability of pets, monitoring of adoption activities, and management of health
information concerning pets in the center. In addition, the system is designed in a way that it
can be expanded in future, such as including donation tracking, volunteer management and
pet fostering programs.
Universidad de Dagupan
SCHOOL OF INFORMATION TECHNOLOGY EDUCATION
Center of Development in Information Technology Education
site.udd.edu.ph

II. Database Design

![Database ERD Diagram for Pet Adoption Center]

The Entity-Relationship Diagram above illustrates the structure of the Pet Adoption Center
database system. The diagram shows five main entities (Pets, Adopters, Staff, Adoptions,
and HealthRecords) and their relationships:

1. Relationship between Pets and HealthRecords:


 One-to-many (1:N) relationship
 One pet can have multiple health records
 Each health record belongs to exactly one pet

2. Relationship between Pets and Adoptions:


 One-to-one (1:0..1) relationship
 One pet can be included in at most one adoption
 Each adoption must include exactly one pet

3. Relationship between Adopters and Adoptions:


 One-to-many (1:N) relationship
 One adopter can make many adoptions
 Each adoption involves exactly one adopter

4. Relationship between Staff and Adoptions:


 One-to-many (1:N) relationship
 One staff member can oversee many adoptions
 Each adoption is overseen by exactly one staff member

5. Relationship between Staff and HealthRecords:


 One-to-many (1:N) relationship
 One staff member can manage many health records
 Each health record is managed by exactly one staff member
Universidad de Dagupan
SCHOOL OF INFORMATION TECHNOLOGY EDUCATION
Center of Development in Information Technology Education
site.udd.edu.ph

This design is normalized to third normal form (3NF) where data integrity and redundancy in
the database is reduced.
Universidad de Dagupan
SCHOOL OF INFORMATION TECHNOLOGY EDUCATION
Center of Development in Information Technology Education
site.udd.edu.ph
Universidad de Dagupan
SCHOOL OF INFORMATION TECHNOLOGY EDUCATION
Center of Development in Information Technology Education
site.udd.edu.ph
Universidad de Dagupan
SCHOOL OF INFORMATION TECHNOLOGY EDUCATION
Center of Development in Information Technology Education
site.udd.edu.ph

III. SQL Script


 Create the Pets table
CREATE TABLE Pets (
Pet_id INT PRIMARY KEY,
Pet_name VARCHAR(50),
Species VARCHAR(30),
Breed VARCHAR(50),
Age INT,
Gender VARCHAR(10),
Status VARCHAR(20)
);

 Create the Adopters table


CREATE TABLE Adopters (
Adopter_id INT PRIMARY KEY,
First_name VARCHAR(50),
Last_name VARCHAR(50),
Phone VARCHAR(15),
Email VARCHAR(100),
Address VARCHAR(200),
Verification_date DATE
);

 Create the Staff table


CREATE TABLE Staff (
Staff_id INT PRIMARY KEY,
First_name VARCHAR(50),
Last_name VARCHAR(50),
Position VARCHAR(50),
Phone VARCHAR(15),
Email VARCHAR(100),
Hire_date DATE
);

 Create the Adoptions table


CREATE TABLE Adoptions (
Adoption_id INT PRIMARY KEY,
Pet_id INT,
Adopter_id INT,
Staff_id INT,
Adoption_date DATE,
Adoption_fee DECIMAL(10,2),
Special_conditions VARCHAR(255),
FOREIGN KEY (pet_id) REFERENCES Pets(pet_id),
FOREIGN KEY (adopter_id) REFERENCES Adopters(adopter_id),
FOREIGN KEY (staff_id) REFERENCES Staff(staff_id)
);

 Create the HealthRecords table


Universidad de Dagupan
SCHOOL OF INFORMATION TECHNOLOGY EDUCATION
Center of Development in Information Technology Education
site.udd.edu.ph

CREATE TABLE HealthRecords (


Record_id INT PRIMARY KEY,
Pet_id INT,
Staff_id INT,
Checkup_date DATE,
Vaccination_status VARCHAR(50),
Medical_condition VARCHAR(200),
Treatment VARCHAR(200),
FOREIGN KEY (pet_id) REFERENCES Pets(pet_id),
FOREIGN KEY (staff_id) REFERENCES Staff(staff_id)
);

 Insert sample data into Pets


INSERT INTO Pets (pet_id, pet_name, species, breed, age, gender, status) VALUES
(1, ‘Buddy’, ‘Dog’, ‘Golden Retriever’, 3, ‘Male’, ‘Available’),
(2, ‘Luna’, ‘Cat’, ‘Siamese’, 2, ‘Female’, ‘Available’),
(3, ‘Max’, ‘Dog’, ‘German Shepherd’, 5, ‘Male’, ‘Adopted’);

 Insert sample data into Adopters


INSERT INTO Adopters (adopter_id, first_name, last_name, phone, email, address,
verification_date) VALUES
(1, ‘John’, ‘Paul’, ‘123-456-7890’, ‘john.paul@gmail.com’, ‘123 Main St, Dagupan City’,
‘2025-01-15’),
(2, ‘Kristine’, ‘Veloza’, ‘234-567-8901’, ‘kristine.veloza@gmail.com’, ‘456 Park Ave, Dagupan
City’, ‘2025-02-10’),
(3, ‘Ravenn, ‘Lloyd’, ‘345-678-9012’, ‘ravenn.lloyd@gmail.com’, ‘789 Oak Rd, Dagupan City’,
‘2025-03-05’);

 Insert sample data into Staff


INSERT INTO Staff (staff_id, first_name, last_name, position, phone, email, hire_date)
VALUES
(1, ‘John’, ‘Paul’, ‘Manager’, ‘456-789-0123’, ‘john.paul@petadoption.com’, ‘2023-05-10’),
(2, ‘Kristine’, ‘Veloza’, ‘Veterinarian’, ‘567-890-1234’, ‘kristine.veloza@petadoption.com’,
‘2023-06-15’),
(3, ‘Ravenn’, ‘Lloyd’, ‘Adoption Counselor’, ‘678-901-2345’, ‘ravenn.lloyd@petadoption.com’,
‘2023-07-20’);

 Insert sample data into Adoptions


INSERT INTO Adoptions (adoption_id, pet_id, adopter_id, staff_id, adoption_date,
adoption_fee, special_conditions) VALUES
(1, 3, 1, 3, ‘2025-04-12’, 150.00, ‘Regular exercise needed’),
(2, 2, 2, 3, ‘2025-04-15’, 100.00, NULL),
(3, 1, 3, 3, ‘2025-04-20’, 175.00, ‘Special diet required’);

 Insert sample data into HealthRecords


INSERT INTO HealthRecords (record_id, pet_id, staff_id, checkup_date, vaccination_status,
medical_condition, treatment) VALUES
(1, 1, 2, ‘2025-03-01’, ‘Up to date’, ‘None’, ‘Regular checkup’),
(2, 2, 2, ‘2025-03-05’, ‘Up to date’, ‘Minor ear infection’, ‘Prescribed ear drops’),
(3, 3, 2, ‘2025-03-10’, ‘Needs booster’, ‘None’, ‘Scheduled for vaccination next month’);

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy