https://github.com/mahammad-mostafa/vet-clinic
This is the first project in the fourth module of the Microverse program. It is a database for a vet clinic using PostgreSQL.
https://github.com/mahammad-mostafa/vet-clinic
database database-schema indexing joins microverse microverse-projects microverse-students postgresql queries rdbms relational-database sql structured-query-language
Last synced: about 2 months ago
JSON representation
This is the first project in the fourth module of the Microverse program. It is a database for a vet clinic using PostgreSQL.
- Host: GitHub
- URL: https://github.com/mahammad-mostafa/vet-clinic
- Owner: mahammad-mostafa
- License: mit
- Created: 2023-09-26T14:51:58.000Z (over 1 year ago)
- Default Branch: development
- Last Pushed: 2023-10-15T00:03:11.000Z (over 1 year ago)
- Last Synced: 2025-02-02T13:51:20.287Z (4 months ago)
- Topics: database, database-schema, indexing, joins, microverse, microverse-projects, microverse-students, postgresql, queries, rdbms, relational-database, sql, structured-query-language
- Language: PLpgSQL
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 🏷️ Vet Clinic
This is the first project of the fourth module in the **Microverse** program.
Check the below contents for further details about this project.# 📗 Contents
- [Description](#description)
- [Instructions](#instructions)
- [Authors](#authors)
- [Future](#future)
- [Contributions](#contributions)
- [Support](#support)
- [Acknowledgements](#acknowledgements)
- [License](#license)# 📖 Description
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) 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!📌 **Tech Stack:**
- Database built with `PostgreSQL`
- Queries uses `SQL`📌 **Key Features:**
- Table for animals information which include (name / birth date / escape attempts / weight / neutering)
- Each animal is linked with the owners & species tables through foreign keys (owner_id / species_id)
- Table for animal owners information which include (name / age)
- Table for animal species information which include (name)
- Table for vets information which include (name / age / graduation)
- Table for specializations information which is linked with the vets & species tables through foreign keys (vet_id / species_id)
- Table for visits information which include (date)
- Each visit is linked with the vets & species tables through foreign keys (animal_id / vet_id)# 🛠️ Instructions
You can easily download or fork this repository and work on it immadiately!
📌 **Prerequisites:**
- `PostgreSQL` or any other `SQL` database📌 **Installation:**
- Create a new database called `vet_clinic`
- Run queries in [schema.sql](schema.sql) for creating all tables
- Use [data.sql](data.sql) to populate tables with sample data📌 **Development:**
- Check [queries.sql](queries.sql) for examples of queries that can be run on a newly created database# 👥 Authors
📌 **Mahammad:**
- [GitHub](https://github.com/mahammad-mostafa)
- [Twitter](https://twitter.com/mahammad_mostfa)
- [LinkedIn](https://linkedin.com/in/mahammad-mostafa)📌 **Carlos:**
- [GitHub](https://github.com/CarlosZ96)📌 **Austin:**
- [GitHub](https://github.com/stino-x)# 🔭 Future
Some additional features I may implement in the project:
- [ ] Using `Binary` data types in tables
- [ ] Implement stored procedures like `SQL Trigger`# 🤝🏻 Contributions
Wish to contribute to this project?
Contributions, issues, and feature requests are more than welcome!
Feel free to check the [issues](../../issues) page too.# ⭐️ Support
Like this project? Show your support by starring!
# 🙏🏻 Acknowledgements
I thank everyone at **Microverse** for guiding me through this project.
# 📝 License
This project is [MIT](LICENSE.md) licensed.