diff --git a/main_dc/yalarba/api_yal/internal/models/feedback.go b/main_dc/yalarba/api_yal/internal/models/feedback.go new file mode 100644 index 0000000..cb8f80e --- /dev/null +++ b/main_dc/yalarba/api_yal/internal/models/feedback.go @@ -0,0 +1,19 @@ +package models + +import () + +type Feedback struct { + /*ID, CreatedAt, UpdatedAt, DeletedAt (Update's history)*/ + Base Base `gorm:"embedded"` + + // owner account ID + OwnerID uint `gorm:"not null;index" json:"owner_id"` + Owner Account `gorm:"foreignKey:OwnerID;references:ID" json:"owner,omitempty"` + + // object IO + ObjectID uint `gorm:"not null;index" json:"object_id"` + Object Object `gorm:"foreignKey:ObjectID;references:ID" json:"object,omitempty"` + + // Основная информация + Text string `json:"text"` +}