I am developing a system that registers employees of companies.
In this system I have the employee and user tables.
Employees table I have the data
id|nome|empresa|data_cadastro|user_view|user_edit
User table I have the data
id|nome|empresa
User accessing the system with email and password, saves the user ID session.
I would like when users view the employee's profile, it writes its ID to the employee's table in the user_view column. Which in the case are at least 5 users, to know who saw each profile.
How to write to the employee table? To view which users have already viewed your profile. Same function to know if the employee profile was edited by any user. I can write one ID at a time through an Insert in the table, but how to write multiple IDs in a single column, or another way that can perform the same process.