## Copy to .env and adjust. .env is git-ignored.

APP_ENV=development
APP_DEBUG=true
APP_NAME="OrchView 2"
APP_BRAND=ROOKASYSTEMS
APP_URL=http://localhost/orchview2/public
APP_TIMEZONE=Africa/Dar_es_Salaam
APP_KEY=                      # 32+ random chars; used for token & csrf hashing

## Web routing prefix — the path users type in the browser.
##   "/orchview2"  when WAMP serves c:\wamp64\www\orchview2 (default for dev)
##   ""            when an Apache vhost / built-in server points docroot at public/
## Root .htaccess hides the `/public/` segment, so do NOT include it here.
PROOT=/orchview2

## OrchView 2 database (new — created by Phinx migrations)
DB_HOST=localhost
DB_NAME=orchview2
DB_USER=root
DB_PASSWORD=
DB_CHARSET=utf8mb4

## Legacy source database (read-only, used ONLY by the data-migration seeder)
LEGACY_DB_HOST=localhost
LEGACY_DB_NAME=rookpmgt_orch_view
LEGACY_DB_USER=root
LEGACY_DB_PASSWORD=

## Legacy filesystem root — attachments will be mirrored from here.
LEGACY_ATTACHMENTS_ROOT=C:\wamp64\www\orchview.rookasystems.com\attachments

## Session
SESSION_LIFETIME=1800
SESSION_NAME=ov2

## File uploads (path is RELATIVE TO storage/)
UPLOAD_DIR=uploads
UPLOAD_MAX_BYTES=10485760    # 10 MiB

## Multi-tenancy
## MODE=column  → shared DB + tenant_id column (Model A, current default)
## MODE=header  → future: read tenant from subdomain via TenantScope middleware
TENANT_MODE=column
TENANT_DEFAULT_ID=1

## SMS (optional)
SMS_SENDERNAME=INFO
SMS_USERNAME=
SMS_PASSWORD=
SMS_API_KEY=
SMS_SECRET_KEY=

## SMTP (optional)
EMAIL_HOST=
EMAIL_USERNAME=
EMAIL_PASSWORD=
