Agrego archivos iniciales

This commit is contained in:
Laucha1312
2026-06-04 14:47:50 -03:00
commit ed94601e34
76 changed files with 7737 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class AdminUser extends Model
{
protected $table = 'admin_users';
protected $primaryKey = 'id';
public $timestamps = false;
protected $fillable = [
'username',
'password',
'role',
'id_club',
'reset_token',
'reset_expira',
];
public function club()
{
return $this->belongsTo(Club::class, 'id_club', 'id_club');
}
protected $hidden = [
'password',
'reset_token',
];
protected $casts = [
'role' => 'integer',
'reset_expira' => 'datetime',
];
}