Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/david-lafontant/vet-clinic
https://github.com/david-lafontant/vet-clinic
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/david-lafontant/vet-clinic
- Owner: david-lafontant
- Created: 2022-04-03T13:44:24.000Z (over 2 years ago)
- Default Branch: develop
- Last Pushed: 2022-04-12T20:42:27.000Z (over 2 years ago)
- Last Synced: 2024-04-18T07:02:34.460Z (8 months ago)
- Language: PLpgSQL
- Size: 655 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vet Clinic Database
> Database of the veterinary clinic Vet Clinic - In the upcoming projects, we use a relational database to create the data structure for a vet clinic. we start with one table, and step by step, we create a complete database with data about: [animals, animal's owners, clinic employees, visits]
## Diagram
![WhatsApp Image 2022-04-12 at 21 07 49](https://user-images.githubusercontent.com/63915024/163006534-78673535-5d12-4103-95d6-7f78faaddf3c.jpeg)## Diagram Link and Iframe
[Diagram Link](https://dbdiagram.io/d/62558d312514c9790318e7fd)
** Some browser will need special authorization to show the iframe## Optimization
| Before optimization | Optimization | After optimization |
|---|---|---|
| ![image](screenshot/Screenshot_01.png) |`CREATE INDEX visits_animals_index ON visits(animals_id);` | ![image](screenshot/Screenshot_02.png) |
| ![image](screenshot/Screenshot_03.png) | `CREATE INDEX visits_vets_index ON visits(vets_id desc);` | ![image](screenshot/Screenshot_04.png) |
| ![image](screenshot/Screenshot_05.png) | `CREATE INDEX owners_email_index ON owners(email);` | ![image](screenshot/Screenshot_06.png) |## Getting Started
This repository includes files with plain SQL that can be used to recreate a database:
- 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) that contains the querries## How to use this repository
If not installed instal [Git](https://git-scm.com/download/win), and [PostgreSQL](https://www.postgresql.org/download/)
- Clone this repository by typing `git clone https://github.com/david-lafontant/vet-clinic.git`
- Go to the cloned repository by typing `cd vet_clinic`
- Open the `.sql' files by using your favorite editor
- Use PostgreSQL user interface (pgAdmin) or command line to run in the following order:
1 - schemas.sql
2 - data.sql
3 - data.sql## Authors
👤 **David Lafontant**
- GitHub: [@david-lafontant](https://github.com/david-lafontant)
- Twitter: [@manikatex](https://twitter.com/manikatex)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/david-lafontant/)👤 **Muhammad Rizo Abdunazarov**
- GitHub: [@mukhammadrizooff](https://github.com/mukhammadrizooff)
- Twitter: [@Muhammadrizooff](https://twitter.com/Muhammadrizooff)
- LinkedIn: [LinkedIn](https://www.linkedin.com/in/mukhammadrizooff/)## 🤝 Contributing
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
## Show your support
Give a ⭐️ if you like this project!
## Acknowledgments
- Hat tip to anyone whose code was used
## 📝 License
This project is [MIT](./MIT.md) licensed.