Minor improvements
This commit is contained in:
@@ -5,7 +5,7 @@ type Post struct {
|
||||
Url string `json:"url"`
|
||||
AccountID string // Foreign key field (must match Account.AccId)
|
||||
Account Account `json:"account" gorm:"foreignKey:AccountID;references:AccId"`
|
||||
Attachments []MediaAttachment `json:"media_attachments" gorm:"foreignKey:PostID;references:ID;index:idx_post_attachments"`
|
||||
Attachments []MediaAttachment `json:"media_attachments" gorm:"foreignKey:PostID;references:ID"`
|
||||
}
|
||||
|
||||
type Account struct {
|
||||
|
Reference in New Issue
Block a user