{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/insuremo-com/json-schema/insuremo-com-user-entity-schema.json",
  "title": "UserEntity",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/insuremo-com-appurp-openapi.yml#/components/schemas/UserEntity",
  "type": "object",
  "properties": {
    "@pk": {
      "type": "integer",
      "format": "int64"
    },
    "AccountCreateNotifyFlg": {
      "type": "string"
    },
    "Address": {
      "type": "string"
    },
    "AgentAcountFlag": {
      "type": "integer",
      "format": "int32"
    },
    "AllowOperation": {
      "type": "boolean"
    },
    "AllowResetPassword": {
      "type": "boolean"
    },
    "ArticleCode": {
      "type": "string"
    },
    "AssignRoleCount": {
      "type": "integer",
      "format": "int64"
    },
    "AuthenticationFlag": {
      "type": "string"
    },
    "AutoCreate": {
      "type": "boolean"
    },
    "B2bAgreementNo": {
      "type": "string"
    },
    "B2bBelongToOrgId": {
      "type": "integer",
      "format": "int64"
    },
    "B2bContractId": {
      "type": "integer",
      "format": "int64"
    },
    "B2bExtBranchNo": {
      "type": "string"
    },
    "B2bPlanCode": {
      "type": "string"
    },
    "B2bProdCode": {
      "type": "string"
    },
    "BranchId": {
      "type": "integer",
      "format": "int64"
    },
    "BudinessObjectId": {
      "type": "integer",
      "format": "int64"
    },
    "Children": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserEntity"
      }
    },
    "ComCode": {
      "type": "string"
    },
    "DefaultLanguage": {
      "type": "string"
    },
    "DefualtUserInfoTag": {
      "type": "string"
    },
    "DeptCode": {
      "type": "string"
    },
    "DeptId": {
      "type": "string"
    },
    "DisableDate": {
      "type": "string",
      "format": "date-time"
    },
    "DynamicFields": {
      "type": "string"
    },
    "Email": {
      "type": "string"
    },
    "EmployeeFlag": {
      "type": "string"
    },
    "ExtranetSingleFlag": {
      "type": "integer",
      "format": "int32"
    },
    "Flag": {
      "type": "string"
    },
    "InsertBy": {
      "type": "integer",
      "format": "int64"
    },
    "InsertTime": {
      "type": "string",
      "format": "date-time"
    },
    "InvalidLogin": {
      "type": "integer",
      "format": "int64"
    },
    "IsCallGateway": {
      "type": "boolean"
    },
    "IsDomainAccount": {
      "type": "boolean"
    },
    "LoginAuthType": {
      "type": "string"
    },
    "MakeCode": {
      "type": "string"
    },
    "Mobile": {
      "type": "string"
    },
    "NeedChangePassword": {
      "type": "boolean"
    },
    "NewUserCode": {
      "type": "string"
    },
    "OldPrimaryKey": {
      "type": "integer",
      "format": "int64"
    },
    "Onleave": {
      "type": "boolean"
    },
    "OrgCode": {
      "type": "string"
    },
    "OrgId": {
      "type": "integer",
      "format": "int64"
    },
    "PartyCode": {
      "type": "string"
    },
    "PasswordChangeDate": {
      "type": "string",
      "format": "date-time"
    },
    "Position": {
      "type": "integer",
      "format": "int32"
    },
    "PrintTime": {
      "type": "string",
      "format": "date-time"
    },
    "PtyId": {
      "type": "integer",
      "format": "int64"
    },
    "PwOverDueAlertTimeIdentify": {
      "type": "string",
      "format": "date-time"
    },
    "PwOverdueTime": {
      "type": "string",
      "format": "date-time"
    },
    "RealName": {
      "type": "string"
    },
    "RedirectUri": {
      "type": "string"
    },
    "RegisterCode": {
      "type": "string"
    },
    "RegisterExpireDate": {
      "type": "string",
      "format": "date-time"
    },
    "ResetUrl": {
      "type": "string"
    },
    "RoleNames": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "RoleNamesWithSSO": {
      "type": "string"
    },
    "RolePolicy": {
      "type": "string"
    },
    "SalesFlag": {
      "type": "integer",
      "format": "int32"
    },
    "SparePassword": {
      "type": "string"
    },
    "Status": {
      "type": "string"
    },
    "Supervisor": {
      "type": "integer",
      "format": "int64"
    },
    "Sync2ContainerFlag": {
      "type": "boolean"
    },
    "Tel": {
      "type": "string"
    },
    "TempData": {
      "type": "object",
      "additionalProperties": {
        "type": "object"
      }
    },
    "TenantUri": {
      "type": "string"
    },
    "UpdateBy": {
      "type": "integer",
      "format": "int64"
    },
    "UpdateTime": {
      "type": "string",
      "format": "date-time"
    },
    "UpdateType": {
      "type": "string"
    },
    "UserCallType": {
      "type": "string"
    },
    "UserCheckFlag": {
      "type": "boolean"
    },
    "UserId": {
      "type": "integer",
      "format": "int64"
    },
    "UserName": {
      "type": "string"
    },
    "UserNo": {
      "type": "string"
    },
    "UserOriginFlag": {
      "type": "string"
    },
    "UserRoleCode": {
      "type": "string"
    },
    "UserType": {
      "type": "integer",
      "format": "int32"
    },
    "ValidStatus": {
      "type": "integer",
      "format": "int32"
    },
    "VocationCode": {
      "type": "string"
    },
    "password": {
      "type": "string",
      "writeOnly": true
    }
  },
  "$defs": {
    "UserEntity": {
      "type": "object",
      "properties": {
        "@pk": {
          "type": "integer",
          "format": "int64"
        },
        "AccountCreateNotifyFlg": {
          "type": "string"
        },
        "Address": {
          "type": "string"
        },
        "AgentAcountFlag": {
          "type": "integer",
          "format": "int32"
        },
        "AllowOperation": {
          "type": "boolean"
        },
        "AllowResetPassword": {
          "type": "boolean"
        },
        "ArticleCode": {
          "type": "string"
        },
        "AssignRoleCount": {
          "type": "integer",
          "format": "int64"
        },
        "AuthenticationFlag": {
          "type": "string"
        },
        "AutoCreate": {
          "type": "boolean"
        },
        "B2bAgreementNo": {
          "type": "string"
        },
        "B2bBelongToOrgId": {
          "type": "integer",
          "format": "int64"
        },
        "B2bContractId": {
          "type": "integer",
          "format": "int64"
        },
        "B2bExtBranchNo": {
          "type": "string"
        },
        "B2bPlanCode": {
          "type": "string"
        },
        "B2bProdCode": {
          "type": "string"
        },
        "BranchId": {
          "type": "integer",
          "format": "int64"
        },
        "BudinessObjectId": {
          "type": "integer",
          "format": "int64"
        },
        "Children": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UserEntity"
          }
        },
        "ComCode": {
          "type": "string"
        },
        "DefaultLanguage": {
          "type": "string"
        },
        "DefualtUserInfoTag": {
          "type": "string"
        },
        "DeptCode": {
          "type": "string"
        },
        "DeptId": {
          "type": "string"
        },
        "DisableDate": {
          "type": "string",
          "format": "date-time"
        },
        "DynamicFields": {
          "type": "string"
        },
        "Email": {
          "type": "string"
        },
        "EmployeeFlag": {
          "type": "string"
        },
        "ExtranetSingleFlag": {
          "type": "integer",
          "format": "int32"
        },
        "Flag": {
          "type": "string"
        },
        "InsertBy": {
          "type": "integer",
          "format": "int64"
        },
        "InsertTime": {
          "type": "string",
          "format": "date-time"
        },
        "InvalidLogin": {
          "type": "integer",
          "format": "int64"
        },
        "IsCallGateway": {
          "type": "boolean"
        },
        "IsDomainAccount": {
          "type": "boolean"
        },
        "LoginAuthType": {
          "type": "string"
        },
        "MakeCode": {
          "type": "string"
        },
        "Mobile": {
          "type": "string"
        },
        "NeedChangePassword": {
          "type": "boolean"
        },
        "NewUserCode": {
          "type": "string"
        },
        "OldPrimaryKey": {
          "type": "integer",
          "format": "int64"
        },
        "Onleave": {
          "type": "boolean"
        },
        "OrgCode": {
          "type": "string"
        },
        "OrgId": {
          "type": "integer",
          "format": "int64"
        },
        "PartyCode": {
          "type": "string"
        },
        "PasswordChangeDate": {
          "type": "string",
          "format": "date-time"
        },
        "Position": {
          "type": "integer",
          "format": "int32"
        },
        "PrintTime": {
          "type": "string",
          "format": "date-time"
        },
        "PtyId": {
          "type": "integer",
          "format": "int64"
        },
        "PwOverDueAlertTimeIdentify": {
          "type": "string",
          "format": "date-time"
        },
        "PwOverdueTime": {
          "type": "string",
          "format": "date-time"
        },
        "RealName": {
          "type": "string"
        },
        "RedirectUri": {
          "type": "string"
        },
        "RegisterCode": {
          "type": "string"
        },
        "RegisterExpireDate": {
          "type": "string",
          "format": "date-time"
        },
        "ResetUrl": {
          "type": "string"
        },
        "RoleNames": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "RoleNamesWithSSO": {
          "type": "string"
        },
        "RolePolicy": {
          "type": "string"
        },
        "SalesFlag": {
          "type": "integer",
          "format": "int32"
        },
        "SparePassword": {
          "type": "string"
        },
        "Status": {
          "type": "string"
        },
        "Supervisor": {
          "type": "integer",
          "format": "int64"
        },
        "Sync2ContainerFlag": {
          "type": "boolean"
        },
        "Tel": {
          "type": "string"
        },
        "TempData": {
          "type": "object",
          "additionalProperties": {
            "type": "object"
          }
        },
        "TenantUri": {
          "type": "string"
        },
        "UpdateBy": {
          "type": "integer",
          "format": "int64"
        },
        "UpdateTime": {
          "type": "string",
          "format": "date-time"
        },
        "UpdateType": {
          "type": "string"
        },
        "UserCallType": {
          "type": "string"
        },
        "UserCheckFlag": {
          "type": "boolean"
        },
        "UserId": {
          "type": "integer",
          "format": "int64"
        },
        "UserName": {
          "type": "string"
        },
        "UserNo": {
          "type": "string"
        },
        "UserOriginFlag": {
          "type": "string"
        },
        "UserRoleCode": {
          "type": "string"
        },
        "UserType": {
          "type": "integer",
          "format": "int32"
        },
        "ValidStatus": {
          "type": "integer",
          "format": "int32"
        },
        "VocationCode": {
          "type": "string"
        },
        "password": {
          "type": "string",
          "writeOnly": true
        }
      }
    }
  }
}