15 lines
358 B
Go
15 lines
358 B
Go
package entity
|
|
|
|
import "leafdev.top/Ecosystem/recommender/internal/schema"
|
|
|
|
type TagMapping struct {
|
|
Id schema.EntityId `gorm:"primarykey" json:"id"`
|
|
TagId *schema.EntityId `gorm:"primarykey" json:"tag_id"`
|
|
Tag *Tag `json:"tag"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
func (u *TagMapping) TableName() string {
|
|
return "tag_mappings"
|
|
}
|