• You could, of course, also populate a table with all the valid values for the flag combinations and directly foreign key on that.