Document the Database scheme
Build LinkLog Development Image / development-image (push) Successful in 24s
Build LinkLog Development Image / development-image (push) Successful in 24s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user