title: How to specify a struct with a multi-column unique index for Gorm?
body: <p>How do I define my <code>struct</code>s to specify a multi-column unique index to Gorm in Go?</p>
  
  <p>Such as:</p>
  
  <pre><code>type Something struct {
      gorm.Model
      First  string `sql:"unique_index:unique_index_with_second"`
      Second string `sql:"unique_index:unique_index_with_first"`
  }
  </code></pre>