{"id":23646842,"url":"https://github.com/anthgrim/sql-scripts","last_synced_at":"2026-02-02T10:11:19.339Z","repository":{"id":131248640,"uuid":"572806114","full_name":"anthgrim/sql-scripts","owner":"anthgrim","description":"SQL Scripts","archived":false,"fork":false,"pushed_at":"2022-12-01T04:32:14.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T13:53:54.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/anthgrim.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":"2022-12-01T04:13:18.000Z","updated_at":"2022-12-01T04:13:18.000Z","dependencies_parsed_at":"2023-03-10T15:30:51.689Z","dependency_job_id":null,"html_url":"https://github.com/anthgrim/sql-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anthgrim/sql-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthgrim%2Fsql-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthgrim%2Fsql-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthgrim%2Fsql-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthgrim%2Fsql-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anthgrim","download_url":"https://codeload.github.com/anthgrim/sql-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anthgrim%2Fsql-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29009754,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T08:40:12.472Z","status":"ssl_error","status_checked_at":"2026-02-02T08:40:10.926Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-12-28T13:40:38.002Z","updated_at":"2026-02-02T10:11:19.316Z","avatar_url":"https://github.com/anthgrim.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# MySQL - Database Diagram Scripts\n\n## Description\n\nBasic database modeling with MySql Diagrams and sql scripts\n\n## Tables\n\n### user\n\n- id Int (pk)\n- username varchar(16)\n- email varchar(255)\n- password varchar(32)\n\n### product\n\n- id Int (pk)\n- name varchar(50)\n- brandId Int (fk)\n- createdBy Int (fk)\n\n### brand\n\n- id Int (pk)\n- name varchar(45)\n\n### order\n\n- id Int (pk)\n- userId Int (fk)\n\n### order_detail\n\n- id Int (pk)\n- order_id (fk)\n- product_id (fk)\n\n## Relations\n\n### user 1 \u003c--\u003e n product\n\n### brand 1 \u003c--\u003e n product\n\n### order n \u003c--\u003e n product\n\n## Diagram\n\n![](./diagram.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthgrim%2Fsql-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanthgrim%2Fsql-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanthgrim%2Fsql-scripts/lists"}