2022-11-05 02:32:57 +00:00
|
|
|
package wp
|
2022-08-27 13:21:05 +00:00
|
|
|
|
2022-11-05 14:40:02 +00:00
|
|
|
type TermTaxonomy struct {
|
2022-08-27 13:21:05 +00:00
|
|
|
TermTaxonomyId uint64 `gorm:"column:term_taxonomy_id" db:"term_taxonomy_id" json:"term_taxonomy_id" form:"term_taxonomy_id"`
|
|
|
|
TermId uint64 `gorm:"column:term_id" db:"term_id" json:"term_id" form:"term_id"`
|
|
|
|
Taxonomy string `gorm:"column:taxonomy" db:"taxonomy" json:"taxonomy" form:"taxonomy"`
|
|
|
|
Description string `gorm:"column:description" db:"description" json:"description" form:"description"`
|
|
|
|
Parent uint64 `gorm:"column:parent" db:"parent" json:"parent" form:"parent"`
|
|
|
|
Count int64 `gorm:"column:count" db:"count" json:"count" form:"count"`
|
|
|
|
}
|
|
|
|
|
2022-11-05 14:40:02 +00:00
|
|
|
func (w TermTaxonomy) PrimaryKey() string {
|
2022-08-27 13:21:05 +00:00
|
|
|
return "term_taxonomy_id"
|
|
|
|
}
|
|
|
|
|
2022-11-05 14:40:02 +00:00
|
|
|
func (w TermTaxonomy) Table() string {
|
2022-08-27 13:21:05 +00:00
|
|
|
return "wp_term_taxonomy"
|
|
|
|
}
|