photoprism/internal/entity/schema
Michael Mayer ebeaaf568b Metadata: Set labels based on matching keywords in the caption #4603
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-01-17 06:24:29 +01:00
..
mariadb.mmd Metadata: Set labels based on matching keywords in the caption #4603 2025-01-17 06:24:29 +01:00
mariadb.sql Metadata: Set labels based on matching keywords in the caption #4603 2025-01-17 06:24:29 +01:00
README.md OIDC: Update database schema docs in /internal/entity/schema #782 2024-07-09 11:06:12 +02:00

Database Schema

This schema description is for illustrative purposes only, e.g. to generate visual relationship diagrams. It should not be used to update or replace an existing production database.

Entity-Relationship Diagram

docs.photoprism.app/developer-guide/database/schema/

Mermaid Markup

With Mermaid.js you can generate visual diagrams from this markup file:

mariadb.mmd

MariaDB SQL Dump

An SQL schema dump can be created using the command shown below, for example:

mariadb.sql

If you need an updated dump, you can run this command in your development environment:

mariadb-dump --no-data --skip-add-locks --skip-comments \
 --skip-opt --skip-set-charset photoprism > mariadb.sql

Please note that the dump we provide is only updated at irregular intervals and should therefore not be used to update or replace an existing production database.

Schema Migrations

docs.photoprism.app/developer-guide/database/migrations/

github.com/photoprism/photoprism/tree/develop/internal/migrate