Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

add md5 gorm column back

Cette révision appartient à :
Eliot Whalan 2017-05-10 21:57:31 +10:00
Parent 68e3a4acfb
révision 5de19ec928

Voir le fichier

@ -22,7 +22,7 @@ type User struct {
Likings []User // Don't work `gorm:"foreignkey:user_id;associationforeignkey:follower_id;many2many:user_follows"`
Liked []User // Don't work `gorm:"foreignkey:follower_id;associationforeignkey:user_id;many2many:user_follows"`
MD5 string `json:"md5"` // Hash of email address, used for Gravatar
MD5 string `json:"md5" gorm:"column:md5"` // Hash of email address, used for Gravatar
Torrents []Torrent `gorm:"ForeignKey:UploaderID"`
}