Is it a good choice to have unverified users into the users_table
or should I make a temp_users_table
to add the unverified users?
The first option would be to create the row on the users_table
with a column, for instance, account_activated
to hold a integer that defines if the account is verified or not.
The Second option would be to have two identical tables, users_table
and temp_users_table
. Adding the unverified users on the last. When verified the row will be copied to the users_table
and removerd from temp_users_table
.
Which one is better and why?
Edit:
The second table is not meant to stay there for ever, it's temporary and will only exist while the user is not activated. When the user is activated it'll be migrated to the "main" user_table.
So:
users_table: Will have the users that have been verified.
temp_users_table: Will have ONLY the users that are not verified.