model-proxy
A safe way to get database models' table name or fields
installation
$ npm i model-proxy
quick start
let $ = $tableA$ === 'tableA'$tableA_ === 'tableA.*'$tableAfield1 === 'tableA.field1' $inexistentTable$ // throws Error$tableAinexistentField // throws Error