I wouldn't recommend T-nuts for this. They're best used on the opposite site from where the bolt is inserted, as they can't resist any sort of pulling force or moments if the foot should get kicked or get bumped while being moved.
I would use a threaded insert. It's a cylindrical piece of metal with threads on both the inside and outside.
The outside is a coarse thread for the wood, and the inside is a finer thread for the metal bolt. Some are also 'key locking' in which there are parts to hammer in to keep the insert from being able to rotate out (or further in), or 'screw locking' in which the outer threads are a bit irregular to create extra friction.
Make sure you buy inserts for the correct material -- they make them for wood, plastic, and particle board.
I have not bough yet the first one so I would consider getting the second one as looks way easier to install.
– nck Oct 10 '21 at 10:44