e3bb8b19dd
Also improves migrations and updates the db schema docs. Signed-off-by: Michael Mayer <michael@photoprism.app>
25 lines
No EOL
987 B
Markdown
25 lines
No EOL
987 B
Markdown
# Database Schema
|
|
|
|
*Please keep in mind that some information may be outdated or missing, as these docs were automatically generated from the source code.*
|
|
|
|
## Entity-Relationship Diagram
|
|
|
|
↪ [docs.photoprism.app/developer-guide/database/schema/](https://docs.photoprism.app/developer-guide/database/schema/)
|
|
|
|
## Mermaid.js Markup
|
|
|
|
[Mermaid](https://mermaid-js.github.io/) lets you create diagrams and visualizations using text and code.
|
|
|
|
↪ [mariadb.mmd](mariadb.mmd)
|
|
|
|
## 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:
|
|
|
|
↪ [mariadb.sql](mariadb.sql)
|
|
|
|
## 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) |