35 lines
887 B
PHP
35 lines
887 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('ingresos', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->bigInteger('numero');
|
|
$table->bigInteger('numero_z');
|
|
$table->bigInteger('ingreso_inicial');
|
|
$table->bigInteger('ingreso_final');
|
|
$table->bigInteger('total');
|
|
$table->text('tipo_ingreso');
|
|
$table->foreignId('turno_id')->constrained('turnos')->cascadeOnDelete();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('ingresos');
|
|
}
|
|
};
|