Dashboard
psionusa_bws20 - Phase 1 prototype
Businesses
-
Active listings
Leads
-
Total captured
Members
-
Registered accounts
Media Files
-
In media library
Categories
-
Defined in system
Industries
-
Classification buckets
Recent Leads
Name Email Business Message Status Date
Loading leads...
Businesses
All active business listings
All Businesses
Name Category Location Rating Status Action
Loading...
Categories
33 categories - sourced from categories.json
Category Registry
IDNameSlugIndustry
Loading...
Industries
16 industries - sourced from industries.json
Industry Registry
IDIndustrySlug
Loading...
Media Library
Business logos and gallery images - uploads/
Media Files
PreviewBusinessTypePrimaryOrder
Loading...
Leads
All contact form submissions from business profiles
All Leads
Name Email Business Message Status Date
Loading...
Loading...
Members
Registered platform accounts
Member management requires the authentication layer - coming in Phase 2.
Loading...
Loading...
Loading...
Loading...
Settings
Platform configuration
Settings panel coming in Phase 2.
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Dev Tools
Developer utilities: migrations, diagnostics, and database sync.
Run Migrations

Apply all pending SQL & PHP migration files from database/migrations/. Safe to run repeatedly — already-applied migrations are skipped automatically.

Run Migrations
👁Dry Run (Preview)

Preview which migrations are pending without applying them. Use before running against production to verify what will change.

Preview
📡Module Status API

View the raw JSON from the module status endpoint — shows which modules are active, their config, and current feature flags.

View JSON
📋Full Module Registry

Complete registry with all fields including uninstalled modules. Useful for auditing what's available vs. what's currently enabled.

View JSON
🔎Raw Data Mode

Add ?ui=0 to any PHP page URL to bypass the UI layer and see the raw API output. Great for debugging what the server actually returns.

Manual — append ?ui=0 to any page URL
🛠Debug Overlay

Add ?dev=1 to any PHP page to show a debug overlay with query count, total execution time, and the active module list for that request.

Manual — append ?dev=1 to any page URL
Sync scope:
Push to Online

Export the selected scope from local and apply it non-destructively to production via INSERT IGNORE. Requires BWS_REMOTE_URL in api/admin/db-sync.php.

Pull from Online

Fetch the selected scope from production and apply it non-destructively to local. Requires BWS_REMOTE_URL configured.

💾Export (Download)

Download a SQL file of the selected scope from the current database. Use to manually transfer data between environments.

📥Import SQL File

Upload a SQL export and apply it non-destructively using INSERT IGNORE — duplicate records are skipped. Safe to run without backing up first.

💿Backup Current DB

Download a full SQL backup of the current (local) database — CREATE TABLE + all data. Always do this before running any risky sync or restore.

🧠Smart Import

Upload any SQL dump (including past migrations or backups). Creates missing tables, adds missing columns to existing tables, and inserts new rows with INSERT IGNORE — your members, leads, and edits are never overwritten.

🚀Smart Push to Online

Backs up the local DB, then sends it to production using the same smart merge — missing tables and columns are added, existing user data on the remote is left untouched.

Backup Online DB

Trigger a full backup of the production database and download the SQL. Requires BWS_REMOTE_URL configured.

Restore from SQL

Destructive. Upload a full backup SQL and apply it to the current database. Runs DROP TABLE + CREATE TABLE as-is. Always back up first.

📊Table Status

View all database tables with row counts, storage sizes, and sync group assignments (content / users / other).

Section
This section is in the build queue.
is planned but not yet built.
See seed_bws_backend.md for the build sequence and priority.