Files
zenithar/database/migrations/2025_01_05_053040_create_documentos_table.php
2025-01-05 15:50:44 -03:00

32 lines
748 B
PHP

<?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::create('documentos', function (Blueprint $table) {
$table->id();
$table->text('descripcion');
$table->bigInteger('valor');
$table->text('tipo_documento');
$table->foreignId('turno_id')->constrained('turnos')->cascadeOnDelete();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('documentos');
}
};