{"id":26870074,"url":"https://github.com/jvegar/sql-movie-app","last_synced_at":"2026-01-11T02:37:47.969Z","repository":{"id":250395082,"uuid":"833218229","full_name":"jvegar/sql-movie-app","owner":"jvegar","description":"Entity Relationship Diagram for Movie app","archived":false,"fork":false,"pushed_at":"2024-07-27T04:29:01.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T06:33:00.323Z","etag":null,"topics":["entity-relationship-diagram","sql"],"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/jvegar.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-07-24T15:30:19.000Z","updated_at":"2025-03-04T12:50:35.000Z","dependencies_parsed_at":"2024-07-27T04:24:42.568Z","dependency_job_id":"347bfbd5-850f-4303-9d69-4d92d86645c6","html_url":"https://github.com/jvegar/sql-movie-app","commit_stats":null,"previous_names":["jvegar/movie-app-db-sql","jvegar/sql-movie-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvegar%2Fsql-movie-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvegar%2Fsql-movie-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvegar%2Fsql-movie-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jvegar%2Fsql-movie-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jvegar","download_url":"https://codeload.github.com/jvegar/sql-movie-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429452,"owners_count":20775805,"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":["entity-relationship-diagram","sql"],"created_at":"2025-03-31T06:33:05.654Z","updated_at":"2025-03-31T06:33:06.739Z","avatar_url":"https://github.com/jvegar.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# movie-app-db-sql\n\n## ER Diagram\n\n```mermaid\n        erDiagram\n        USER {\n            serial id PK\n            string username\n            string first_name\n            string last_name\n            string email\n            string password\n            integer avatar_id FK\n        }\n        AVATAR {\n            serial id PK\n            integer file_id FK\n        }\n        USER ||--|| AVATAR: \"[USER.avatar_id] to [AVATAR.id]\"\n        AVATAR ||--|| FILE: \"[AVATAR.file_id] to [FILE.id]\"\n\n        FILE {\n            serial file_id PK\n            string file_name\n            string mime_type\n            string key\n            string url\n        }\n        MOVIE {\n            serial id PK\n            string title\n            string description\n            money budget\n            date release_date\n            integer duration\n            integer director_id FK\n            integer country_id FK\n            integer poster_id FK\n        }\n        CHARACTER_MOVIE {\n            serial id PK\n            integer movie_id FK\n            integer character_id FK\n        }\n        MOVIE ||--|{ CHARACTER_MOVIE: \"[MOVIE.id] to [CHARACTER_MOVIE.movie_id]\"\n        CHARACTER_MOVIE ||--|| CHARACTER: \"[CHARACTER_MOVIE.character_id] to. [CHARACTER.id]\"\n\n        CHARACTER ||--o| ACTOR: \"[CHARACTER.person_id] to [ACTOR.id]\"\n        CHARACTER {\n            serial id PK\n            string name\n            text description\n            string role \"Enum type: leading, supporting, background\"\n            integer actor_id FK\n        }\n        MOVIE ||-- |{ GENRE_MOVIE: \"[MOVIE.id] to [GENRE_MOVIE.movie_id]\"\n        GENRE_MOVIE {\n            serial id PK\n            integer movie_id FK\n            integer genre_id FK\n        }\n        GENRE_MOVIE ||-- || GENRE: \"[GENRE_MOVIE.genre_id] to [GENRE.id]\"\n        GENRE {\n            serial id PK\n            string name\n        }\n        MOVIE ||--o| POSTER: \"[MOVIE.poster_id] to  [POSTER.id]\"\n        POSTER {\n            serial id PK\n            integer file_id FK\n        }\n        POSTER ||--|| FILE: \"[POSTER.file_id] to [FILE.id]\"\n        MOVIE ||--|| COUNTRY: \"[MOVIE.country_id] to [COUNTRY.id]\"\n        COUNTRY {\n            serial id PK\n            string name\n        }\n        MOVIE ||--|| DIRECTOR: \"[MOVIE.director_id] to  [DIRECTOR.id]\"\n\n        DIRECTOR {\n            serial id PK\n            integer person_id FK\n        }\n        ACTOR {\n            serial id PK\n            integer person_id FK\n        }\n        ACTOR ||--|| PERSON: \"[ACTOR.person_id] to [PERSON.id]\"\n        DIRECTOR ||--|| PERSON: \"[DIRECTOR.person_id] to [PERSON.id]\"\n        PERSON {\n            serial id PK\n            string first_name\n            string last_name\n            text biography\n            date date_of_birth\n            string gender \"enum type: male, female, other\"\n            integer country_id FK\n        }\n        PERSON ||--|| COUNTRY: \"[PERSON.country_id] to [COUNTRY.id]\"\n\n        PHOTO_PERSON {\n            serial id PK\n            string type \"enum type: primary, secundary\"\n            integer person_id FK\n            integer file_id FK\n        }\n        PERSON ||--o{ PHOTO_PERSON: \"[PERSON.id] to [PHOTO.person_id]\"\n        PHOTO_PERSON||--|| FILE: \"[PHOTO.file_id] to [FILE.id]\"\n\n    EXTRA_CHARACTER {\n        serial id PK\n        string type \"enum type: crowd, background\"\n        integer movie_id FK\n        integer actor_id FK\n    }\n\n    MOVIE ||--o| EXTRA_CHARACTER: \"[MOVIE.id] to [EXTRA_CHARACTER.movie_id]\"\n    EXTRA_CHARACTER ||--|| ACTOR: \"[EXTRA_CHARACTER.person_id] to [ACTOR.id]\"\n\n    FAVORITE_MOVIE {\n        serial id PK\n        integer movie_id FK\n        integer user_id FK\n    }\n    USER ||--o{ FAVORITE_MOVIE: \"[USER.id] to [FAVORITE_MOVIE.user_id]\"\n    FAVORITE_MOVIE ||--|| MOVIE: \"[FAVORITE_MOVIE.movie_id] to [MOVIE.id]\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvegar%2Fsql-movie-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjvegar%2Fsql-movie-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjvegar%2Fsql-movie-app/lists"}