title: what is wrong in my mysql 5.7 syntax?
body: <pre><code>CREATE TABLE tt_inv_refresh (
  id int PRIMARY KEY AUTO_INCREMENT,
  cust_id int,
  res_type enum,
  refresh_dtls JSON,
  FOREIGN KEY (cust_id));
  </code></pre>
  
  <p><strong>Giving ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
  refresh_dtls JSON,
  FOREIGN KEY (cust_id))' at line 4</strong></p>
  
  <p>another table is created with <strong>cust_id</strong> as primary key</p>