https://github.com/yusufyusie/database-diagram
I will get a database diagram, interpret it, and implement the SQL needed to build that database.
https://github.com/yusufyusie/database-diagram
database database-diagrams database-schema postgresql sql
Last synced: 2 months ago
JSON representation
I will get a database diagram, interpret it, and implement the SQL needed to build that database.
- Host: GitHub
- URL: https://github.com/yusufyusie/database-diagram
- Owner: yusufyusie
- License: other
- Created: 2023-10-12T12:36:20.000Z (over 2 years ago)
- Default Branch: dev
- Last Pushed: 2023-10-12T16:25:20.000Z (over 2 years ago)
- Last Synced: 2025-06-07T13:05:37.280Z (about 1 year ago)
- Topics: database, database-diagrams, database-schema, postgresql, sql
- Homepage:
- Size: 111 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
- [📗 Table of Contents](#-table-of-contents)
- [📖 \[Vet Clinic Database\] ](#-vet-clinic-database-)
- [🛠 Built With ](#-built-with-)
- [Tech Stack ](#tech-stack-)
- [Key Features ](#key-features-)
- [💻 Getting Started ](#-getting-started-)
- [Prerequisites](#prerequisites)
- [Setup](#setup)
- [Usage](#usage)
- [👥 Authors ](#-authors-)
- [🔭 Future Features ](#-future-features-)
- [🤝 Contributing ](#-contributing-)
- [⭐️ Show your support ](#️-show-your-support-)
- [🙏 Acknowledgments ](#-acknowledgments-)
- [❓ FAQ ](#-faq-)
- [📝 License ](#-license-)
Clinic Database is a relational database to get a database diagram, interpret it, and implement the SQL needed to build that database
Database
### Key Features
- **Database named vet-clinic**
- **Table named animal**
- **Run relevant queries to fetch data from the database**
This repository includes file with plain SQL that can be used to recreate a database:
- Use [schema.sql](./schema.sql) to create all tables.
**Important note: this file might include queries that make changes in the database (e.g., remove records). Use them responsibly!**
### Prerequisites
- Postgresql@16:
To install run:
On Linux:
```sh
sudo apt-get install postgresql postgresql-contrib libpq-dev
```
On Windows
Go to [postgres website](https://www.postgresql.org/) and download the installer and follow the installation process
### Setup
Clone this repository to your desired folder:
```sh
git clone git@github.com/yusufyusie/vdatabase-diagram
cd database-diagram
```
### Usage
To run the project, start the Postgresql server first, connect with vet_clininc database and execute the following commands on terminal:
```sh
$ brew services restart postgresql@14
$ psql postgres
postgres=# CREATE DATABASE clinic;
CREATE DATABASE
postgres=# \c clinic;
CREATE DATABASE
```
Exit sql by running
```sh
postgres=# \q
```
Reconnect with database by
```sh
$ psql clinic
=======
postgres=# \q
```
Reconnect with database by
```sh
$ psql clinic
```
👤 **Yesuf Fenta**
- GitHub: [@yusufyusie](https://github.com/yusufyusie)
- Twitter: [@yusufyusiee](https://twitter.com/yusufyusiee)
- LinkedIn: [yusufyusie](https://linkedin.com/in/yusufyusie)
- [ ] **Add Column To Table**
- [ ] **Create Bridge Table**
- [ ] **Add Join queries**
- [ ] **Add multiple tables**
Contributions, issues, and feature requests are welcome!
Feel free to check the [issues page](../../issues/).
## ⭐️ Show your support
If you like this project please don't forget to give me a star
I would like to thank microverse for providing me with the template for this project
- **[Why I use this repository app?]**
- [To create the database for vet_clinic]
This project is [MIT](./LICENSE) licensed.