*/ use HasFactory; protected $primaryKey = 'user_id'; public $incrementing = false; protected $keyType = 'string'; protected $fillable = [ 'user_id', 'balance', ]; public function user(): BelongsTo { return $this->belongsTo(User::class); } protected function casts(): array { return [ 'balance' => 'integer', ]; } }