The walls and other static objects normally do not need a code to function as colliders, unless you want to add some special function, like do some action when the wall is touched. So, it should work as is.
Make sure the collision component half extents are correct, as they are different from the model scale.
Also, Playcanvas doesn’t include a physics engine by default. Make sure you import Ammo from the project settings: