Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carreraprogrammer/vet-clinic-db
This is a relational database to create the data structure for a vet clinic
https://github.com/carreraprogrammer/vet-clinic-db
psql
Last synced: 13 days ago
JSON representation
This is a relational database to create the data structure for a vet clinic
- Host: GitHub
- URL: https://github.com/carreraprogrammer/vet-clinic-db
- Owner: carreraprogrammer
- Created: 2023-06-06T03:09:57.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2023-06-14T21:50:44.000Z (over 1 year ago)
- Last Synced: 2024-11-10T04:09:01.436Z (about 2 months ago)
- Topics: psql
- Language: PLpgSQL
- Homepage:
- Size: 1.25 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📗 Table of Contents
- [📗 Table of Contents](#-table-of-contents)
- [📖 Paws and Claws Clinic ](#-paws-and-claws-clinic-)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Install](#install)
- [Usage](#usage)
- [Run tests](#run-tests)
- [👥 Authors ](#-authors-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [🙏 Acknowledgments ](#-acknowledgments-)
- [❓ FAQ ](#-faq-)
- [📝 License ](#-license-)**[Vet clinic database]** is a project where I use a relational database to create the data structure for a vet clinic. This repository includes files with plain SQL that can be used to recreate a database:
- Use schema.sql to create all tables.
- Use data.sql to populate tables with sample data.
- Check queries.sql for examples of queries that can be run on a newly created database. Important note: this file might include queries that make changes in the database (e.g., remove records). Use them responsibly!
VET CLINIC DIAGRAM
Database
Query Language
- **Robust Data Management**: The database offers a systematic way to manage information about the clinic's animal patients, making data retrieval and tracking more efficient.
- **Comprehensive Querying Capabilities**: SQL is used to interact with the database, providing powerful querying options for extracting and manipulating data according to various needs.
- **Scalability**: PostgreSQL, as an open-source relational database, offers high scalability, making the database capable of handling an increasing amount of data as the clinic grows.
- **Data Integrity**: PostgreSQL provides strong data consistency and supports ACID (Atomicity, Consistency, Isolation, Durability) properties, ensuring the reliability and integrity of data.
- **Flexibility**: The database schema can be easily adjusted to accommodate changing requirements, demonstrating the system's adaptability.
To get a local copy up and running, follow these steps.
### Prerequisites
In order to run this project you need:
- PostgreSQL installed on your machine. You can download it from the [official website](https://www.postgresql.org/download/).
### Setup
Clone this repository to your desired folder:
```sh
cd your-folder
git clone https://github.comc/carreraprogrammer/vet-clinic.git
```
### Install
Navigate into your project directory and set up your database:
```sh
cd your-project
psql -U postgres -f schema.sql
```
### Usage
To interact with the database, open PostgreSQL and connect to the database:
Connect to database
```sh
psql -U postgres -d vet_clinic
```
### Run tests
To run tests, run the following command (functionality will be added in the future):
```sh
// command to run tests will be available in the future.
```
👤 **Daniel Carrera**
- GitHub: [@carreraprogrammer](https://github.com/carreraprogrammer )
- Twitter: [@carreraprog](https://twitter.com/carreraprog)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/daniel-carrera-85a917244/)
- [x] Project 1: create animals table.
- [x] Project 2: query and update animals table.
- [x] Project 3: query multiple tables.
- [x] Project 4: add "join table" for visits.
- [x] Project 5: database performance audit.
- [x] Exercise: add database schema diagram.
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](https://github.com/carreraprogrammer/vet-clinic-db/issues).
If you like this project please give a star.
This project is [MIT](./LICENSE) licensed.