Flatwork pinned to foundation… Good building practice or code?
Hmmm, lacking photos or other info. I’d say we need more info…
Photos would help. If its an exterior slab doweled to footer/foundation system,common.
Exterior slab doweled to P/T slab,risky not advisable but still done.
No interior slabs should be fastened to the foundation. I do not believe it is code .