photoprism/internal/entity/category.go
Michael Mayer 4e06deda76 Backend: Rename "models" package to "entity"
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2019-12-11 16:55:18 +01:00

13 lines
336 B
Go

package entity
// Labels can have zero or more categories with the same or a similar meaning
type Category struct {
LabelID uint `gorm:"primary_key;auto_increment:false"`
CategoryID uint `gorm:"primary_key;auto_increment:false"`
Label *Label
Category *Label
}
func (Category) TableName() string {
return "categories"
}