positions.go
380 字节
package models
import "time"
type Positions struct {
Id int64 //ID
CompanyId int64 //公司ID
Name string //职位名称
ParentId int64 `pg:",use_zero"` //父级职位
Path string //职位路径
Level int `pg:",use_zero"` //层级
Remarks string //备注
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt *time.Time `pg:",soft_delete"`
}