{"id":24273401,"url":"https://github.com/benawi/vet-clinic-database","last_synced_at":"2025-09-24T15:30:43.036Z","repository":{"id":181838864,"uuid":"667431290","full_name":"Benawi/Vet-clinic-database","owner":"Benawi","description":"A relational database  used to create the initial data structure for a vet clinic","archived":false,"fork":false,"pushed_at":"2023-07-25T19:46:11.000Z","size":140,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-04-23T19:22:15.876Z","etag":null,"topics":["postgresql"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Benawi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-17T13:41:48.000Z","updated_at":"2023-10-24T13:11:45.000Z","dependencies_parsed_at":"2023-07-17T21:04:31.025Z","dependency_job_id":null,"html_url":"https://github.com/Benawi/Vet-clinic-database","commit_stats":null,"previous_names":["benawi/vet-clinic-database"],"tags_count":0,"template":false,"template_full_name":"microverseinc/curriculum-template-databases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benawi%2FVet-clinic-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benawi%2FVet-clinic-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benawi%2FVet-clinic-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benawi%2FVet-clinic-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Benawi","download_url":"https://codeload.github.com/Benawi/Vet-clinic-database/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234091828,"owners_count":18778502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["postgresql"],"created_at":"2025-01-15T19:50:27.913Z","updated_at":"2025-09-24T15:30:37.715Z","avatar_url":"https://github.com/Benawi.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n### \u003cdiv align=\"center\"\u003e\u003ca href=\"https://github.com/Benawi\"\u003e\u003cimg src=\"https://github.com/Benawi/Benawi/assets/21217148/de823737-5f7f-4de8-b62e-3fe88c238eab\"/\u003e\u003c/a\u003e\n\n \u003c/div\u003e \n\u003cdiv align=\"center\"\u003e🛰Vet-clinic-database🚀\u003c/div\u003e\n\n# 📗 Table of Contents\n\n- [📖 About the Project](#about-project)\n  - [🛠 Built With](#built-with)\n    - [Tech Stack](#tech-stack)\n    - [Key Features](#key-features)\n   \u003c!--  - [Live Demo](#live-demo)\n    - [Walkthrough](#Walkthrough) --\u003e\n- [💻 Getting Started](#getting-started)\n  \u003c!-- - [Setup](#setup)\n  - [Prerequisites](#prerequisites)\n  - [Install](#install)\n  - [Usage](#usage)\n  - [Run tests](#run-tests) --\u003e\n  \u003c!-- - [Deployment](#triangular_flag_on_post-deployment) --\u003e\n- [👥 Authors](#authors)\n- [🔭 Future Features](#future-features)\n- [🤝 Contributing](#contributing)\n- [⭐️ Show your support](#support)\n- [🙏 Acknowledgements](#acknowledgements)\n\n- [📝 License](#license)\n\n# 📖 Vet-clinic-database  \u003ca name=\"about-project\"\u003e\u003c/a\u003e\nThis repository includes files with plain SQL that can be used to recreate a database:\n\n- Use [schema.sql](./schema.sql) to create all tables.\n- Use [data.sql](./data.sql) to populate tables with sample data.\n- Check [queries.sql](./queries.sql) for examples of queries that can be run on a newly created database. \n## 🛠 Built With \u003ca name=\"built-with\"\u003e\u003c/a\u003e\n\n## Tech Stack \u003ca name=\"tech-stack\"\u003e\u003c/a\u003e\n\n\u003cul\u003e\n\n  \u003cli\u003e\u003ca href=\"https://www.postgresql.org/\"\u003ePostgreSQL\u003c/a\u003e\u003c/li\u003e\n  \u003c!-- \u003cli\u003e\u003ca href=\"https://microverse.notion.site/HTML-CSS-Get-a-head-start-275eb85fd34b4416aa06ec635d69cdaf\"\u003eHTML\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003e\u003ca href=\"https://microverse.notion.site/HTML-CSS-Get-a-head-start-275eb85fd34b4416aa06ec635d69cdaf\"\u003eCSS\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"https://microverse.notion.site/HTML-CSS-Get-a-head-start-275eb85fd34b4416aa06ec635d69cdaf\"\u003eJS\u003c/a\u003e\u003c/li\u003e\n      \u003cli\u003e\u003ca href=\"https://react.dev/learn/start-a-new-react-project#create-react-app\"\u003eReact \u003c/a\u003e\u003c/li\u003e\n       \u003cli\u003e\u003ca href=\"https://react-redux.js.org/\"\u003eReact Redux\u003c/a\u003e\n        \u003cli\u003e\u003ca href=\"https://www.npmjs.com/package/redux-logger\"\u003eRedux Logger\u003c/a\u003e\u003c/li\u003e\n         \u003cli\u003e\u003ca href=\"https://github.com/microverseinc/curriculum-react-redux/blob/main/math-magicians/articles/react_router.md\"\u003eReact Router\u003c/a\u003e\u003c/li\u003e --\u003e\n         \n\u003c/ul\u003e\n\n## 🔑 Key Features \u003ca name=\"key-features\"\u003e\u003c/a\u003e\n\n### Vet-clinic-database [Requirements](https://github.com/microverseinc/curriculum-databases/blob/main/db-structure/sneak_peek.md)\n\n- [x] Populate data to the table\n- [x] Transactions allow making changes in isolation and rolling back if needed\n- [x] Demonstrates BEGIN TRANSACTION, COMMIT, and ROLLBACK\n- [x] Allows verifying changes before committing\n- [x] Demonstrates deleting subsets of rows\n- [x] Creates a savepoint within a transaction\n- [x] Allows rolling back to a mid-transaction savepoint\n- [x] Basic aggregation queries like COUNT, AVG, MIN, and MAX functions\n- [x] Conditional filtering WHERE clause to filter result setg, group results by a column like animal type and apply aggregates per group\n- [x] `owners` table to store owner information\n- [x] `species` table to store animal species\n- [x] `animals` table to store animal data, with foreign keys linking to owners and species\n- [x] Queries implemented using SQL JOINS to answer questions like:\n  - What animals belong to an owner\n  - List animals by species\n  - List owners and their animals\n  - Count animals per species\n  - Other analytics like most owned animals\n- [x] Apply types of relationships between tables\n- [x] Database performance audit\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## 👥 Authors \u003ca name=\"authors\"\u003e\u003c/a\u003e\n\n### 👤 Habtamu Alemayehu\n\n- GitHub: [Benawi](https://github.com/Benawi)\n- Linkdin: [Habtamu](https://www.linkedin.com/in/habtamualemayehu/)\n### 👤 Bwambale\n- GitHub: [Benawi](https://github.com/wolterbwamabale)\n- Linkdin: [Bwambale](https://www.linkedin.com/in/Bwambale-benny-wolter/)\n\n## 🔭 Future Features \u003ca name=\"future-features\"\u003e\u003c/a\u003e\n- Database performance audit.💯\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## 🤝 Contributing \u003ca name=\"contributing\"\u003e\u003c/a\u003e\n\nContributions, [issues](https://github.com/Benawi/Vet-clinic-database/issues), and feature requests are welcome!\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## ⭐️ Show your support \u003ca name=\"support\"\u003e\u003c/a\u003e\n\nGive me ⭐️ If you like this project!\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## 🙏 Acknowledgments \u003ca name=\"acknowledgements\"\u003e\u003c/a\u003e\n\n- I  thank the Microverse program for giving us this great chance.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## 📝 License \u003ca name=\"license\"\u003e\u003c/a\u003e\n\nThis project is [MIT](./MIT.md) licensed.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenawi%2Fvet-clinic-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenawi%2Fvet-clinic-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenawi%2Fvet-clinic-database/lists"}