check mariadb. a field is there _assign. which contain the list of user who are assign that document.
_assign
This is not correct way.
Use this frappe’s API:
This file have all API related to assignment.