NUEVO: Implementado PROTOTIPO (v0.1) de taller, creado a partir de modelo kanban con columnas de estados. PENDIENTE DE MUCHOS CAMBIOS...

This commit is contained in:
Bryam105
2026-01-23 11:56:27 -03:30
parent bbef546d75
commit b2f2343592
8 changed files with 322 additions and 2 deletions
@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('appointments', function (Blueprint $table) {
// Repuestos estimados (texto simple por ahora)
$table->text('parts_needed')->nullable()->after('problem_description');
// Costo Aproximado (Presupuesto)
$table->decimal('estimated_cost', 10, 2)->nullable()->after('parts_needed');
// Teléfono de contacto rápido (por si es distinto al del cliente registrado)
$table->string('contact_phone')->nullable()->after('client_id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('appointments', function (Blueprint $table) {
$table->dropColumn(['parts_needed', 'estimated_cost', 'contact_phone']);
});
}
};