modified: main_dc/yalarba/api_yal/internal/models/feedback.go

upgrade feedback.go, add Platform type and score atributs
This commit is contained in:
2026-02-22 13:53:23 +05:00
parent 45602a4628
commit 7ae2acfd8c
@@ -14,6 +14,12 @@ type Feedback struct {
ObjectID uint `gorm:"not null;index" json:"object_id"` ObjectID uint `gorm:"not null;index" json:"object_id"`
Object Object `gorm:"foreignKey:ObjectID;references:ID" json:"object,omitempty"` Object Object `gorm:"foreignKey:ObjectID;references:ID" json:"object,omitempty"`
// enterprener / tourist
Platform PlatformType `json:"platform"`
// 1 - 5
Score int `json:"score"`
// Основная информация // Основная информация
Text string `json:"text"` Text string `json:"text"`
} }