title: Foreign key on source struct?
body: <p>I'm starting with Gorm and trying to model the following:</p>
  
  <pre><code>type MyLink struct {
      gorm.Model
      Title             string
      Url               string
  }
  
  // group of links under a single title
  type MyLinkSection struct {
      gorm.Model
      Title string
      Links []MyLink
  }
  
  type MyPage struct {
      gorm.Model
      PageUrl     MyLink
      Artists     []MyLinkSection
  }
  </code></pre>
  
  <p>As you can see I want to be able to refer to the same struct, <code>MyLink</code> as both a foreign keyed object from <code>MyPage</code> but also as a one-to-many from <code>MyLinkSection</code>.</p>
  
  <p>It seems I have to declare the foreign key ID in <code>MyLink</code> which would seem to make this not possible.</p>
  
  <p>Is there any way of setting up tables like this? With a normal DB I'd just have a field in <code>MyPage</code> called <code>my_link_id</code>, with something similar for <code>MyLinkSection</code>.</p>