Greetings,
I have two mirroring deployments (Dev & Prod) of postgres with postgis extsnsion (i.e. not esri enterprise geodatabase) on AWS rd servers . The database on Prod was accidently deleted and then restored from old backup files each taken for individual schemas. Now, when I drag the database tables as query layers to ArcGIS Pro, it doesn't recognise the spatial properties despite having geom column. Instead it gets added to TOC as standalone table:

I got in contact with Esri tech support and by comparing Dev instance that's still working normally to Prod instance, they suggested that the login/user connecting to the database on Prod doesn't have enough permissions on the database objects (db, schema, extension, functions, etc) to that on Dev. However, when I gave that user access to all items to replicate Dev setup, ArcGIS Pro still doesn't recognise spatial properties.
Some troubleshooting steps I did before esri's involvment was to make sure geom column is existing, SRID is existing.
Any idea on what I can check to view data spatially from Prod?