2019-12-11 15:55:18 +00:00
|
|
|
package entity
|
2019-06-05 12:05:21 +00:00
|
|
|
|
2020-02-21 00:14:45 +00:00
|
|
|
// Category of labels regroups labels with the same or a similar meaning using a main/root label
|
2019-06-05 12:05:21 +00:00
|
|
|
type Category struct {
|
2019-06-09 03:22:53 +00:00
|
|
|
LabelID uint `gorm:"primary_key;auto_increment:false"`
|
2019-06-05 12:05:21 +00:00
|
|
|
CategoryID uint `gorm:"primary_key;auto_increment:false"`
|
2019-06-09 03:22:53 +00:00
|
|
|
Label *Label
|
2019-06-05 12:05:21 +00:00
|
|
|
Category *Label
|
|
|
|
}
|
|
|
|
|
2022-09-28 07:01:17 +00:00
|
|
|
// TableName returns the entity table name.
|
2019-06-05 12:05:21 +00:00
|
|
|
func (Category) TableName() string {
|
|
|
|
return "categories"
|
|
|
|
}
|