2022-07-12 15:16:47 +02:00
# Database Schema
2022-07-12 13:37:08 +02:00
2022-07-12 15:31:53 +02: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 13:37:08 +02:00
2022-07-12 16:05:27 +02:00
## Entity-Relationship Diagram
2022-07-12 13:37:08 +02:00
↪ [docs.photoprism.app/developer-guide/database/schema/ ](https://docs.photoprism.app/developer-guide/database/schema/ )
2022-07-12 16:05:27 +02:00
## Mermaid.js Markup
2022-07-12 13:37:08 +02:00
[Mermaid ](https://mermaid-js.github.io/ ) lets you create diagrams and visualizations using text and code.
↪ [mariadb.mmd ](mariadb.mmd )
2022-10-15 21:54:11 +02:00
## MariaDB SQL Dump
The following dump was created by running `mysqldump --no-data --skip-add-locks --skip-comments --skip-opt --skip-set-charset photoprism > mariadb.sql` in a terminal:
2022-07-12 13:37:08 +02:00
↪ [mariadb.sql ](mariadb.sql )
2022-07-12 16:11:05 +02: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 )