255], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'user_id' => '用户 ID', 'we7_user_id' => 'We7 User ID', 'app_max_count' => 'App Max Count', 'permissions' => '用户权限', 'remark' => 'Remark', 'is_delete' => 'Is Delete', 'expired_at' => 'Expired At', 'is_default' => '是否使用默认权限', 'secondary_permissions' => '二级权限', ]; } public function getUser() { return $this->hasOne(User::class, ['id' => 'user_id']); } public function getIdentity() { return $this->hasOne(UserIdentity::class, ['user_id' => 'user_id']); } }