This commit is contained in:
2024-11-29 04:15:26 +08:00
parent 679f36f109
commit a12cad63e3
2 changed files with 8 additions and 1 deletions

View File

@@ -74,6 +74,7 @@ type Image struct {
Text TextList `json:"text" db:"text" gorm:"type:json"`
User User `json:"user" gorm:"foreignKey:UserID"`
Article Article `json:"article" gorm:"foreignKey:ArticleID"`
Activity bool `json:"activity"`
}
func (Image) TableName() string {