premios fixed

This commit is contained in:
Felipe
2024-03-07 10:55:42 -05:00
parent c36c6d44d9
commit cd68c1d966
5 changed files with 99 additions and 4 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
{
public function up()
{
Schema::create('premios_entregados', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('user_id')->nullable();
$table->string('fecha')->nullable();
$table->boolean('entregado')->default(true);
$table->foreign('user_id')
->references('id')
->on('users')
->onDelete('cascade')
->onUpdate('cascade');
$table->timestamps();
});
}
public function down()
{
Schema::dropIfExists('premios_entregados');
}
};