I want to add a column on a table for the visibility. I like the standard YouTube approach, where an item can be public, private or unlisted. I've never done something like this before so I'm curious as to how others may have done it, and what the tradeoffs were for them, before I implement it in my app.
Would it be a bad idea to store these as hard strings like public
, private
, unlisted
, or are there better approaches?
I would be checking that field in a lot of queries, for instance in my feeds I want to show only public items, so there would have to be something like WHERE visibility = 'public'
in those queries.