photoprism/internal/entity/category.go

15 lines
399 B
Go
Raw Normal View History

package entity
2019-06-05 14:05:21 +02:00
// Category of labels regroups labels with the same or a similar meaning using a main/root label
2019-06-05 14:05:21 +02:00
type Category struct {
LabelID uint `gorm:"primary_key;auto_increment:false"`
2019-06-05 14:05:21 +02:00
CategoryID uint `gorm:"primary_key;auto_increment:false"`
Label *Label
2019-06-05 14:05:21 +02:00
Category *Label
}
// TableName returns the entity table name.
2019-06-05 14:05:21 +02:00
func (Category) TableName() string {
return "categories"
}