2019-12-11 16:55:18 +01:00
|
|
|
package entity
|
2019-06-05 14:05:21 +02:00
|
|
|
|
|
|
|
// Labels can have zero or more categories with the same or a similar meaning
|
|
|
|
type Category struct {
|
2019-06-09 05:22:53 +02:00
|
|
|
LabelID uint `gorm:"primary_key;auto_increment:false"`
|
2019-06-05 14:05:21 +02:00
|
|
|
CategoryID uint `gorm:"primary_key;auto_increment:false"`
|
2019-06-09 05:22:53 +02:00
|
|
|
Label *Label
|
2019-06-05 14:05:21 +02:00
|
|
|
Category *Label
|
|
|
|
}
|
|
|
|
|
|
|
|
func (Category) TableName() string {
|
|
|
|
return "categories"
|
|
|
|
}
|