I have to show huge table to the user, and I need to allow user to select which fields he wants to see.
The question is: what is the best way to store those fields in the database? The only idea I’ve got so far is to crate a table like this:

and set those fields to 0 or 1, but it seems a bad idea to me.
What’s the beast approach?
Let the table be :
(user_id, field_name, enabled)or if display order is needed too
(user_id, field_name, disp_order, enabled)Pick those records which are
enabledagainst a givenuser_id(sorted bydisp_orderif needed).