You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
374 B

package user
type Tree struct {
ID uint64 `gorm:"column:id;primary_key" json:"id"`
UserID uint `gorm:"column:user_id" json:"userId"`
RootID uint `gorm:"column:root_id" json:"rootId"`
Depth uint `gorm:"column:depth" json:"depth"`
}
// TableName sets the insert table name for this struct type
func (r *Tree) TableName() string {
return "recook_user_tree"
}