added prefernce business overview

This commit is contained in:
2026-10-22 13:48:48 +02:00
parent 33c81e2ad1
commit c4a3e48dd2
12 changed files with 3777 additions and 206 deletions
@@ -0,0 +1,22 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
/**
* Preferenze di interfaccia per utente: ordine, larghezza e visibilità dei riquadri nelle pagine.
*/
final class CreateUserUiPrefs extends AbstractMigration
{
public function change(): void
{
$this->table('user_ui_prefs', ['comment' => 'Layout pagine personalizzato per utente'])
->addColumn('user_id', 'integer', ['signed' => false])
->addColumn('page', 'string', ['limit' => 50, 'comment' => 'chiave pagina, es. sales_orders_stats'])
->addColumn('layout', 'text', ['null' => true, 'comment' => 'JSON {order, hidden, sizes}'])
->addColumn('updated_at', 'datetime', ['null' => true])
->addIndex(['user_id', 'page'], ['unique' => true])
->create();
}
}