Document the Database scheme
Build LinkLog Development Image / development-image (push) Successful in 24s

This commit is contained in:
2026-09-05 08:05:44 +02:00
parent 495d5c3907
commit 48c60e00a2
4 changed files with 373 additions and 0 deletions
+1
View File
@@ -51,6 +51,7 @@ On Windows PowerShell, activate the environment with:
The SQLite database is created automatically at `backend/data/linklog.db` when the application starts. On a fresh installation, open `/setup` and create the first administrator. No default user accounts are created by the application. The setup page also collects SMTP settings and requires a successful test email before creating the administrator.
The database schema is versioned with SQLite `PRAGMA user_version`. Application startup applies all pending migrations in order, so updating the application does not require deleting an existing database. New schema changes should be added as a new numbered migration in `backend/app/database.py`; existing migration entries must remain unchanged.
The current schema, table reference, migration history, and Mermaid ERD are documented in [DATABASE.md](DATABASE.md).
## Run The Backend
Activate the virtual environment, then run uvicorn from the repository root: