Fix comment model
Cette révision appartient à :
Parent
34933e0b82
révision
44508c9f82
1 fichiers modifiés avec 2 ajouts et 2 suppressions
|
@ -13,8 +13,8 @@ type Comment struct {
|
||||||
UpdatedAt time.Time `gorm:"column:updated_at"`
|
UpdatedAt time.Time `gorm:"column:updated_at"`
|
||||||
DeletedAt *time.Time
|
DeletedAt *time.Time
|
||||||
|
|
||||||
Torrent *Torrent `gorm:"ForeignKey:torrent_id"`
|
Torrent *Torrent `gorm:"AssociationForeignKey:TorrentID;ForeignKey:torrent_id"`
|
||||||
User *User `gorm:"ForeignKey:user_id"`
|
User *User `gorm:"AssociationForeignKey:UserID;ForeignKey:user_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the total size of memory recursively allocated for this struct
|
// Returns the total size of memory recursively allocated for this struct
|
||||||
|
|
Référencer dans un nouveau ticket