title: How to Convert Existing MySQL Schema to Core Data
body: <p>I have a MySQL database and would like to have a similar structure in Core Data. I am very new with using Core Data with Xcode. I have a few fundamental questions if I am doing the right thing.</p>
  
  <p>My Mysql DB looks similar to this:</p>
  
  <pre><code>table.caveconditions
    visibilityID
    percolationID
    xxxx
  
  table.visibility
    visibilityID
    visibilityValue
  </code></pre>
  
  <p>...and so on. I would then connect the tables using JOINS</p>
  
  <p>Now, I have done the Core Data modeling like this but I am not quite sure if this is the right approach.</p>
  
  <p>Would be great if someone of you could tell me if this is the right way to do it. In the end I would like to use JSON strings to dump the mysql table into core data.</p>
  
  <p>Thanks a lot
  Chris</p>
  
  <p><img src="https://i.stack.imgur.com/PmZxL.png" alt="enter image description here"></p>
  
  <p>I have created the new schema. Is this right?</p>
  
  <p><img src="https://i.stack.imgur.com/CvwIQ.png" alt="enter image description here"></p>