Assume that there is 2 tables users
and events
.
[ users ]
- id(PK)
- name
[ events ]
- id(PK)
- title
- description
Normally, pivot table(M:N) looks like this.
[ user_event ]
- id(PK)
- user_id(FK to users)
- event_id(FK to events)
Should I insert additional column to user_event
m:n table?
[ user_event ]
- id(PK)
- user_id(FK to users)
- event_id(FK to events)
- is_leave
I have to check if user leave the event or not. So is_leave
column is added to user_event
.
I wonder that, is it a bad way?
Is there any convention here?
Thanks.