recommender/internal/entity/Tag.go

15 lines
338 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-07 18:25:15 +00:00
Id schema.EntityId `gorm:"primarykey" json:"id"`
Name string `json:"name"`
Application *Application
ApplicationId schema.EntityId `json:"application_id"`
2024-11-07 10:09:13 +00:00
}
func (u *Tag) TableName() string {
return "tags"
}