dazioOriginal post
@everyone
I want to create new user as employee. I want store data like date of birth, salary, address etc .
These data should go to different table so we can later update and also employee can login into application later.
Summary
Solution:
- It is not possible to directly create a new user as an employee.
- You will still need to use Appwrite built-in Auth. However, you can load the logged-in user and match their document in the employee collection.
- To store additional details like date of birth, salary, and address, create a new collection specifically for employee details and store the data along with the userId.
- This way, you can later update the employee details separately and the employee can also log in to the application later.