title: gorm primary key dont appear in database
body: <p>im a beginner in golang. when im using <code>gorm:&quot;primaryKey&quot;</code> <a href="https://i.stack.imgur.com/fsne4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fsne4.png" alt="enter image description here" /></a></p>
  <p>i dont see any field that use primary key</p>
  <p>this is my model</p>
  <pre><code>type Orders struct {
      OrderID      uint64    `gorm:&quot;primaryKey&quot; json:&quot;orderId&quot;`
      CustomerName string    `json:&quot;customerName&quot;`
      OrderedAt    time.Time `json:&quot;orderedAt&quot; example:&quot;2020-01-09T21:21:46+00:00&quot;`
      Items        []Items   `json:&quot;items&quot;`
  }
  
  type Items struct {
      ItemID      uint64 `gorm:&quot;primaryKey&quot; json:&quot;lineItemId&quot;`
      Item_code   string `json:&quot;itemCode&quot;`
      Description string `json:&quot;description&quot;`
      Quantity    int    `json:&quot;quantity&quot;`
  }
  </code></pre>
  <p>which part do i wrong?
  and do i need relational database for items field?</p>