On Jul 26, 2011, at 10:02 AM, salah jubeh wrote:
You haven't been very clear but it sounds like maybe you're asking how to get both EAV "flexibility" and type safety? There isn't any good way to do that but you might consider something ugly, like: car (id, ...) car_boolean_features (car_id, ....) car_int_features (car_id, ...) A better thing to consider, of course, is how you might avoid the need for anything like EAV in the first place. |