photoprism/internal/entity/category.go

15 lines
415 B
Go
Raw Normal View History

package entity
2019-06-05 12:05:21 +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 {
LabelID uint `gorm:"primary_key;auto_increment:false"`
2019-06-05 12:05:21 +00:00
CategoryID uint `gorm:"primary_key;auto_increment:false"`
Label *Label
2019-06-05 12:05:21 +00:00
Category *Label
}
// TableName returns Category table identifier "categories"
2019-06-05 12:05:21 +00:00
func (Category) TableName() string {
return "categories"
}