Is it OK to use table column names as keys in a key/val pair on the JS side when making XHR/AJAX requests?In JS, I'll do something like this, where I specify the data to insert into the table, using actual table column names as keys in the key/val pair:function createAccount() {  var params = {    name : 'John Smith',    city : 'New Orleans',    phone : '000-111-2222'  };  makeApiCall('/account', params, 'POST');}Then in the middle tier, I'll do something like this, where I simply pass the data right into the code that inserts into the DB ($args):  public function createAccount($response, $args) {    $trans = $this->db->insert('accounts', $args);  }This certainly is much easier for me. Less code to write, but am wondering what the cons are to doing this?
Bad practice to use table column names as keys in JS when making XHR requests?
programming practices;ajax