package main
import ()
type User struct { Id int64 Contacts []User `gorm:"many2many:user_contacts;"`}
func main() { fmt.Println("Hello, playground")}
// Getting "pq: column "user_id" specified more than once"// How to define a self-referencing relationship using gorm?type User struct {
Id int64
Contacts []User `gorm:"foreignkey:user_id;associationforeignkey:contact_id;many2many:user_contacts;"`
}