2023-01-12 12:42:16 +00:00
|
|
|
package models
|
2023-01-10 12:09:55 +00:00
|
|
|
|
|
|
|
type Postmeta struct {
|
|
|
|
MetaId uint64 `db:"meta_id" json:"meta_id" form:"meta_id"`
|
|
|
|
PostId uint64 `db:"post_id" json:"post_id" form:"post_id"`
|
|
|
|
MetaKey string `db:"meta_key" json:"meta_key" form:"meta_key"`
|
|
|
|
MetaValue string `db:"meta_value" json:"meta_value" form:"meta_value"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p Postmeta) PrimaryKey() string {
|
|
|
|
return "meta_id"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (p Postmeta) Table() string {
|
|
|
|
return "wp_postmeta"
|
|
|
|
}
|