Files
photoprism/internal/entity/category.go
2021-08-15 20:57:26 +02:00

15 lines
408 B
Go

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