2022-07-12 13:16:47 +00:00
# Database Schema
2022-07-12 11:37:08 +00:00
2022-07-12 13:31:53 +00:00
*Please keep in mind that some information may be outdated or missing, as these docs were automatically generated from the source code.*
2022-07-12 11:37:08 +00:00
2022-07-12 14:05:27 +00:00
## Entity-Relationship Diagram
2022-07-12 11:37:08 +00:00
↪ [docs.photoprism.app/developer-guide/database/schema/ ](https://docs.photoprism.app/developer-guide/database/schema/ )
2022-07-12 14:05:27 +00:00
## Mermaid.js Markup
2022-07-12 11:37:08 +00:00
[Mermaid ](https://mermaid-js.github.io/ ) lets you create diagrams and visualizations using text and code.
↪ [mariadb.mmd ](mariadb.mmd )
2022-10-15 19:54:11 +00:00
## MariaDB SQL Dump
2023-06-02 15:07:10 +00:00
The following dump was created by running `mariadb-dump --no-data --skip-add-locks --skip-comments --skip-opt --skip-set-charset photoprism > mariadb.sql` in a terminal:
2022-07-12 11:37:08 +00:00
↪ [mariadb.sql ](mariadb.sql )
2022-07-12 14:11:05 +00:00
## Schema Migrations
↪ [docs.photoprism.app/developer-guide/database/migrations/ ](https://docs.photoprism.app/developer-guide/database/migrations/ )
↪ [github.com/photoprism/photoprism/tree/develop/internal/migrate ](https://github.com/photoprism/photoprism/tree/develop/internal/migrate )