update codigo referido funcionamiento login, register y dashboard

This commit is contained in:
Juan Felipe Duarte
2025-10-15 16:43:43 -05:00
parent 6d49224d44
commit 5c04a95792
10 changed files with 490 additions and 239 deletions
@@ -0,0 +1,28 @@
<?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::table('users', function (Blueprint $table) {
$table->string('referral_code')->unique()->nullable();
$table->string('parent_id')->nullable();
$table->string('rank_id')->nullable();
});
}
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn([
'referral_code',
'parent_id',
'rank_id',
]);
});
}
};