recommender/internal/entity/Tag.go

16 lines
384 B
Go
Raw Normal View History

2024-11-07 10:09:13 +00:00
package entity
import "leafdev.top/Ecosystem/recommender/internal/schema"
type Tag struct {
2024-11-09 19:49:53 +00:00
Id schema.EntityId `gorm:"primarykey" json:"id"`
Name string `json:"name"`
Vectorized bool `json:"vectorized"`
//Application *Application
//ApplicationId schema.EntityId `json:"application_id"`
2024-11-07 10:09:13 +00:00
}
func (u *Tag) TableName() string {
return "tags"
}