{"id":19557587,"url":"https://github.com/alemorro/museum-db","last_synced_at":"2026-06-12T08:32:55.528Z","repository":{"id":250037739,"uuid":"753298329","full_name":"AleMorro/museum-DB","owner":"AleMorro","description":"Database suitable for managing a museum's data with various possibilities for user interactions. ","archived":false,"fork":false,"pushed_at":"2024-07-24T17:34:01.000Z","size":965,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-20T08:32:50.980Z","etag":null,"topics":["dbms","postgresql","query","relational-databases"],"latest_commit_sha":null,"homepage":"","language":null,"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/AleMorro.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-05T21:04:38.000Z","updated_at":"2024-07-24T17:38:27.000Z","dependencies_parsed_at":"2024-07-24T21:29:36.072Z","dependency_job_id":"b7f02841-cd14-41ae-b584-5325774944b5","html_url":"https://github.com/AleMorro/museum-DB","commit_stats":null,"previous_names":["alemorro/museum-db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AleMorro/museum-DB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleMorro%2Fmuseum-DB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleMorro%2Fmuseum-DB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleMorro%2Fmuseum-DB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleMorro%2Fmuseum-DB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AleMorro","download_url":"https://codeload.github.com/AleMorro/museum-DB/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleMorro%2Fmuseum-DB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34236551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["dbms","postgresql","query","relational-databases"],"created_at":"2024-11-11T04:43:05.694Z","updated_at":"2026-06-12T08:32:55.489Z","avatar_url":"https://github.com/AleMorro.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Museum-DB\nDatabase suitable for managing a museum's data with various possibilities for user interactions. Languages: SQL Database: PostgreSQL \n## Introduction\nVarious scripts to implement a relational Database, including the part of defining tables, populating and testing queries\n## Description\nThe database is designed to manage a platform for a museum. Users who visit it have the ability to both comment on artworks and make stories about multiple artworks to give a personal opinion.\nThe various SQL scripts implement various pieces of the database:\n* DDL: to define the various tables and integrity constraints\n* DMLPOP: to populate various tables with fake data\n* DMLUPD: to update various table rows\n* SQL: to test the various features of the system by making different types of queries\n\nBelow are the various scheme describing the structure of the database.\n\n### ER Scheme\n![screen](./assets/schema_logico.jpg)\n### Relational Scheme\n![screen](./assets/schema_relazionale.jpg)\n### Integrity Constraints\n| Num  |  Description  |\n|:-----|:--------:|\n| R1   | One _Annotazione_ must be created by a _Utente_ |\n| R2   | One _Annotazione_ must refer to an existant _Opera_  |\n| R3   | A _Domanda_ must refer to an _Annotazione_, if the _Utente_ has decided to enter it. |\n| R4   | A _Storia_ must be created by a _Utente_. |\n| R5   | A _Storia_ must be associated with a minimum of 2, maximum of 3 Works. |\n| R6   | A _Storia_ must have an ID that identifies it. |\n| R7   | A _Opera_ must have an Artist. |\n| R8   | An _Artista_ must be the author of at least 1 Work. |\n| R9   | A _Raccomandazione_ must reference another _Storia_ characterized by a relationship between the first and second _Storia_ (similar, equal, opposite). |\n| R10   | A _Ranking_ to a _Storia_ can exist only if the _Storia_ exists. |\n| R11  | A _Gruppo_ must have only 1 Supervisor. |\n| R12   | _Users_ must register by providing email, name, gender, date of birth. |\n## Contributing\nContribution to budget-app is welcome! If you have an idea for a new feature or bug fix, please open an issue or a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falemorro%2Fmuseum-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falemorro%2Fmuseum-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falemorro%2Fmuseum-db/lists"}