mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 10:26:03 +00:00
14 lines
376 B
Go
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"
|
|
}
|