Agregando datos base
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?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');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user