https://github.com/ashmalzahra/vet_clinic-database
In this project, PostgreSQL - relational database, is used to create the data structure for a Vet Clinic.
https://github.com/ashmalzahra/vet_clinic-database
database postgres postgresql sql
Last synced: 2 months ago
JSON representation
In this project, PostgreSQL - relational database, is used to create the data structure for a Vet Clinic.
- Host: GitHub
- URL: https://github.com/ashmalzahra/vet_clinic-database
- Owner: ashmalzahra
- License: mit
- Created: 2023-03-27T20:00:32.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-04-16T23:52:52.000Z (about 3 years ago)
- Last Synced: 2025-04-05T10:31:40.172Z (over 1 year ago)
- Topics: database, postgres, postgresql, sql
- Homepage:
- Size: 190 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 📗 Table of Contents
- [📖 About the Project](#about-project)
- [🛠 Built With](#built-with)
- [Tech Stack](#tech-stack)
- [Key Features](#key-features)
- [💻 Getting Started](#getting-started)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Create database](#create-database)
- [👥 Author](#author)
- [🤝 Contributing](#contributing)
- [⭐️ Show your support](#support)
- [🙏 Acknowledgements](#acknowledgements)
- [❓ FAQ](#faq)
- [📝 License](#license)
A relational database has been used to create the data structure for a vet clinic. The database is complete with data about:
- animals
- animals' owners
- clinic employees
- visits
Database
- **[GitFlow]**
- **[Relational Database]**
- To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
- [PostgreSQL server](https://www.postgresql.org/download/) installed and running
- [psql](https://www.postgresql.org/docs/current/app-psql.html) installed
### Install
- Install the relational database [PostgreSQL](https://www.postgresql.org/).
- After installing PostgreSQL read the [Getting started](https://www.postgresql.org/docs/current/tutorial-start.html) chapter from PostgreSQL's manual to understand the basics and how to check if it's working.
### Setup
Clone this repository to your desired folder.
1. Connect to your PostgreSQL server with `psql`
```
> psql
postgres=#
```
2. Create the database `vet_clinic`
```
postgres=# CREATE DATABASE vet_clinic;
CREATE DATABASE
```
3. Connect to your database vet_clinic. Inside your current session do:
```
postgres=# \c vet_clinic
You are now connected to database "vet_clinic" as user "postgres".
vet_clinic=#
```
That's it! Congratulations, you have created your database and connected to it. Next, we will add a table.
- Use [schema.sql](./schema.sql) to create all tables.
- Use [data.sql](./data.sql) to populate tables with sample data.
- Check [queries.sql](./queries.sql) for examples of queries that can be run on a newly created database.
👤 **Ashmal Zahra**
- GitHub: [@ashmalzahra](https://github.com/ashmalzahra)
- Twitter: [@AshmalZahraa](https://twitter.com/AshmalZahraa)
- LinkedIn: [ashmal-zahra](https://www.linkedin.com/in/ashmal-zahra)
## 🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/ashmalzahra/vet_clinic-database/issues).
## ⭐️ Show your support
Give a ⭐️ if you like this project!
## Acknowledgments
- [curriculum-databases-projects-template](https://github.com/microverseinc/curriculum-template-databases) from Microverse
This project is [MIT](./LICENSE) licensed.