Update user table

This commit is contained in:
Dayamond
2025-10-21 16:45:39 +02:00
parent ef775c70fe
commit c691f81ebb
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -19,8 +19,12 @@ class User extends Authenticatable
*/ */
protected $fillable = [ protected $fillable = [
'name', 'name',
'lastname',
'email', 'email',
'password', 'password',
'phone',
'validate',
'role',
]; ];
/** /**
@@ -14,8 +14,12 @@ return new class extends Migration
Schema::create('users', function (Blueprint $table) { Schema::create('users', function (Blueprint $table) {
$table->id(); $table->id();
$table->string('name'); $table->string('name');
$table->string('lastname');
$table->string('email')->unique(); $table->string('email')->unique();
$table->string('password'); $table->string('password');
$table->string('phone')->nullable();
$table->integer('validate');
$table->integer('role');
$table->timestamps(); $table->timestamps();
}); });
} }