photoprism/internal/models/category.go

14 lines
336 B
Go
Raw Normal View History

2019-06-05 14:05:21 +02:00
package models
// 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"`
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
}
func (Category) TableName() string {
return "categories"
}