Minor improvements

This commit is contained in:
2025-07-11 17:59:38 +03:30
parent 09772a423c
commit 15485b03d4
3 changed files with 3 additions and 3 deletions

View File

@@ -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 {