{"id":13552713,"url":"https://github.com/mutanthost/plex_schema","last_synced_at":"2025-04-03T03:32:48.862Z","repository":{"id":78824961,"uuid":"196380522","full_name":"mutanthost/plex_schema","owner":"mutanthost","description":"Experiment in examining my Plex sqlite schema, importing into SQLiteStudio, exporting into MySql and Object Modeling","archived":false,"fork":false,"pushed_at":"2019-07-15T06:39:53.000Z","size":4395,"stargazers_count":36,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-03T23:35:05.340Z","etag":null,"topics":["object-modeling","plex-media-server","sqlite-mysql"],"latest_commit_sha":null,"homepage":"","language":"TSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mutanthost.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-11T11:22:10.000Z","updated_at":"2024-07-29T21:50:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a41a9ae-dbe4-4c15-93ce-44aaabc8d800","html_url":"https://github.com/mutanthost/plex_schema","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutanthost%2Fplex_schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutanthost%2Fplex_schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutanthost%2Fplex_schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mutanthost%2Fplex_schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mutanthost","download_url":"https://codeload.github.com/mutanthost/plex_schema/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246933421,"owners_count":20857049,"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":["object-modeling","plex-media-server","sqlite-mysql"],"created_at":"2024-08-01T12:02:08.289Z","updated_at":"2025-04-03T03:32:43.811Z","avatar_url":"https://github.com/mutanthost.png","language":"TSQL","funding_links":[],"categories":["TSQL"],"sub_categories":[],"readme":"# plex_schema\nExperiment in examining my Plex sqlite schema, exporting into MySql and Object Modeling\n\nI've been fiddling with version 8 of MySQL, and have always been a visual learner with databases.\nSo, I imported one of my old Plex Sqlite databases into SQLiteStudio, exported that as a .sql file then imported the accompanying \ntables, indexes, etc into MySQL. (This was pretty dirty, with \u003e 200 syntax errors out of \u003e 2100 lines of SQL I whacked through)\nHowever, I finally got it to import with the plex3.sql file.\nI'm also including the unedited plexschema.sql file for anyone interested. \nI will probably use it against a Postgres instance sometime soon, and see how messy or clean that turns out.\nAfter the MySQL import, I used the workbench and 'reverse engineered' this into a skeleton Object Relationship Model to get a better sense\nof how the innards of my favorite media player works behind the scenes.\nThe smaller pdf of the same name of the high-res image below is also included if you ever want to play connect the dots;)\n![Image ](/images/plex_object_relational_model_skeleton.jpg)\n# Update 07.15.2019\nPostgres had no problem reading the unedited plexschema.sql\n![Image ](/images/plex_postgres.jpg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutanthost%2Fplex_schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmutanthost%2Fplex_schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmutanthost%2Fplex_schema/lists"}