SCOPE_DEPT
SCOPE_DEPT = 2
本部门(含下级)
用户任职归属(组织轴核心)
职责:记录用户「任职于哪个部门、担任何种岗位」的归属关系。 一人可多部门、可跨组织;任职仅为归属标记(V6.2 起不再携带数据范围—— 范围载体已迁至 td_sys_post_scope / td_sys_user_scope),负责人标记 is_leader 保留。
$id : int
主键ID
$user_id : int
用户ID
$dept_id : int
部门ID
$post_id : int
任职岗位ID
$scope : int|null
【历史列·备查】V6.2 起业务停用,代码不再读写;存量数据保留
$is_leader : int
是否部门负责人:1 是(全见本部门含下级)
$create_time : string
创建时间
┌────────────────── 分区导航(按此顺序阅读)──────────────────┐ 分区 1 · 常量 scope 历史范围值 分区 2 · 表名与属性 $table / $fillable / casts 分区 3 · 关联关系 user / dept / post └────────────────────────────────────────────────────────────┘