I'm trying to build a database where an admin
Can create lists that have can have tasks, now the tricky part is, all users can set tasks as completed, but only for himself.
Here's my current scheme
Is this a correct way of handling this?
I'm trying to build a database where an admin
Can create lists that have can have tasks, now the tricky part is, all users can set tasks as completed, but only for himself.
Here's my current scheme
Is this a correct way of handling this?
You don't really need the completed
flag, as there wouldn't be a point in adding a row if the task wasn't completed
create table user_list_tasks_completion (
user_id int references users(user_id),
list_task_id int references list_tasks(id),
primary key (user_id, list_task_id)
);