19 lines
1023 B
Go
19 lines
1023 B
Go
|
|
package model
|
|||
|
|
|
|||
|
|
import (
|
|||
|
|
"github.com/gogf/gf/v2/os/gtime"
|
|||
|
|
)
|
|||
|
|
|
|||
|
|
// Department 三角机构分部表
|
|||
|
|
type Department struct {
|
|||
|
|
Id uint64 `json:"id" orm:"id" description:"自增主键"`
|
|||
|
|
UserId uint64 `json:"userId" orm:"user_id" description:"所属用户ID(对应 users.id)"`
|
|||
|
|
BranchName string `json:"branchName" orm:"branch_name" description:"分部名称"`
|
|||
|
|
TerminalCount int `json:"terminalCount" orm:"terminal_count" description:"分部散逸端的数量"`
|
|||
|
|
Weather string `json:"weather" orm:"weather" description:"分部当前天气/气候描述"`
|
|||
|
|
ManagerName string `json:"managerName" orm:"manager_name" description:"分部经理名称"`
|
|||
|
|
Location string `json:"location" description:"分部地址"`
|
|||
|
|
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"`
|
|||
|
|
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"`
|
|||
|
|
}
|