recommender/internal/entity/TagMapping.go

17 lines
473 B
Go
Raw Permalink Normal View History

2024-11-07 10:09:13 +00:00
package entity
import "leafdev.top/Ecosystem/recommender/internal/schema"
type TagMapping struct {
2024-11-07 18:25:15 +00:00
Id schema.EntityId `gorm:"primarykey" json:"id"`
TagId *schema.EntityId `gorm:"primarykey" json:"tag_id"`
Tag *Tag `json:"tag"`
Name string `json:"name"`
Application *Application
ApplicationId schema.EntityId `json:"application_id"`
2024-11-07 10:09:13 +00:00
}
func (u *TagMapping) TableName() string {
return "tag_mappings"
}