photoprism/internal/entity/category.go
Michael Mayer 6218c7dda6 Docs: Update code comments in internal/entity/category.go and details.go
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-10-02 16:19:57 +02:00

14 lines
376 B
Go

package entity
// Category links labels to a root label representing the shared meaning.
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 table name.
func (Category) TableName() string {
return "categories"
}