ferrero-naming-tool/config.example.php
DJP 7233a49252 Add v2 with PostgreSQL tracking ID system for asset lifecycle management
Implements complete tracking ID system for linking derivative assets to master files with automatic metadata inheritance.

Major features:
- v2 web interface (public-v2/) with tracking ID support
- PostgreSQL database (Docker) for master asset metadata storage
- 6-character alphanumeric tracking IDs with collision-free generation
- OpenText DAM integration with metadata import script
- Upload simulator showing filename transformations (strips job number and tracking ID)
- Visual transformation flow display
- Complete asset lifecycle event logging with triggers
- Database schema with optimized indexes and views
- Helper scripts for database management (db-start.sh, db-stop.sh)

Technical implementation:
- PostgreSQL 15 in Docker on port 5433 (md5 auth for MAMP compatibility)
- PHP PDO with singleton database class
- Automatic event logging via PostgreSQL triggers
- JSON storage for naming convention data (shared with v1)
- Case-sensitive tracking ID input fields

Both v1 (simple) and v2 (tracking) versions coexist for different workflows.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-27 12:24:35 -04:00

38 lines
1.3 KiB
PHP

<?php
/**
* Ferrero Naming Convention Tool - Database Configuration
*
* Copy this file to config.php and update with your database credentials
* DO NOT commit config.php to version control
*/
return [
'database' => [
'host' => 'localhost',
'port' => '5433', // Using port 5433 to avoid conflicts with other PostgreSQL instances
'dbname' => 'ferrero_tracking',
'user' => 'ferrero_user',
'password' => 'ferrero_pass_2025',
'charset' => 'utf8',
'options' => [
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
PDO::ATTR_EMULATE_PREPARES => false,
]
],
// For production, use environment variables:
// 'database' => [
// 'host' => getenv('DB_HOST') ?: 'localhost',
// 'port' => getenv('DB_PORT') ?: '5433',
// 'dbname' => getenv('DB_NAME') ?: 'ferrero_tracking',
// 'user' => getenv('DB_USER') ?: 'ferrero_user',
// 'password' => getenv('DB_PASSWORD'),
// 'charset' => 'utf8',
// 'options' => [
// PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
// PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
// PDO::ATTR_EMULATE_PREPARES => false,
// ]
// ],
];