wp-go/internal/pkg/models/wp_term_taxonomy.go

19 lines
772 B
Go
Raw Permalink Normal View History

2023-01-12 12:42:16 +00:00
package models
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"
}