{"id":28479827,"url":"https://github.com/billwallis/database-crud-example","last_synced_at":"2026-04-24T17:36:05.891Z","repository":{"id":273206513,"uuid":"918975017","full_name":"billwallis/database-crud-example","owner":"billwallis","description":"A simple example of a CRUD implementation for a database layer.","archived":false,"fork":false,"pushed_at":"2025-10-08T05:55:13.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T04:25:47.347Z","etag":null,"topics":["crud","python","sql"],"latest_commit_sha":null,"homepage":"","language":"Python","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/billwallis.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-19T11:40:33.000Z","updated_at":"2025-10-08T05:55:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"56605b9c-3d44-4c91-b3e7-2569840b1018","html_url":"https://github.com/billwallis/database-crud-example","commit_stats":null,"previous_names":["bilbottom/database-crud-example","billwallis/database-crud-example"],"tags_count":0,"template":false,"template_full_name":"billwallis/python-template","purl":"pkg:github/billwallis/database-crud-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billwallis%2Fdatabase-crud-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billwallis%2Fdatabase-crud-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billwallis%2Fdatabase-crud-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billwallis%2Fdatabase-crud-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billwallis","download_url":"https://codeload.github.com/billwallis/database-crud-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billwallis%2Fdatabase-crud-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32234722,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["crud","python","sql"],"created_at":"2025-06-07T18:31:09.148Z","updated_at":"2026-04-24T17:36:05.861Z","avatar_url":"https://github.com/billwallis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![Python](https://img.shields.io/badge/Python-3.11+-blue.svg)](https://www.python.org/downloads/)\n[![tests](https://github.com/billwallis/database-crud-example/actions/workflows/tests.yaml/badge.svg)](https://github.com/billwallis/database-crud-example/actions/workflows/tests.yaml)\n[![coverage](coverage.svg)](https://github.com/dbrgn/coverage-badge)\n[![GitHub last commit](https://img.shields.io/github/last-commit/billwallis/database-crud-example)](https://shields.io/badges/git-hub-last-commit)\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/billwallis/database-crud-example/main.svg)](https://results.pre-commit.ci/latest/github/billwallis/database-crud-example/main)\n[![PostgreSQL](https://img.shields.io/badge/PostgreSQL-17.2-teal.svg)](https://www.postgresql.org/download/)\n\n\u003c/div\u003e\n\n---\n\n# Database CRUD Example\n\nA simple example of a CRUD implementation for a database layer.\n\n## Model\n\nThe model is loan system with accounts, customers, loans, and links between the accounts and customers (\"account-customer bridges\") since accounts can have multiple customers and customers can have multiple accounts.\n\n```mermaid\n---\ntitle: Loan System\n---\nerDiagram\n    accounts {\n        int account_id\n        timestamp created_ts\n        timestamp updated_ts\n        bool deleted\n    }\n    customers {\n        int customer_id\n        varchar forename\n        varchar surname\n        date date_of_birth\n        varchar postcode\n        timestamp created_ts\n        timestamp updated_ts\n        bool deleted\n    }\n    account_customer_bridge {\n        int account_id\n        int customer_id\n        timestamp created_ts\n        timestamp updated_ts\n        bool deleted\n    }\n    loans {\n        int loan_id\n        int account_id\n        decimal amount\n        decimal interest_rate\n        date start_date\n        date end_date\n        decimal current_balance\n        timestamp created_ts\n        timestamp updated_ts\n        bool deleted\n    }\n    customers ||--|{ account_customer_bridge : \"\"\n    accounts ||--|{ account_customer_bridge : \"\"\n    accounts ||--o{ loans : \"opens\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillwallis%2Fdatabase-crud-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillwallis%2Fdatabase-crud-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillwallis%2Fdatabase-crud-example/lists"}