This commit is contained in:
Lizandro Guarnizo
2025-04-14 18:08:49 -05:00
parent c83cd1a72f
commit d1c5dbc90e
7 changed files with 111 additions and 9 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.
*
* @return void
*/
public function up()
{
Schema::create('registros_compras', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('user_id');
$table->string('nombre');
$table->string('email');
$table->decimal('saldo', 15, 2);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('registros_compras');
}
};