I'm making form-generating app in php. I have Widget table with type_id (html input) field, and I would like to add options field, like width/height, step, range, etc. Different widgets do have different options though.
I can think of two options:
- Use separate meta table for every input type (20+)
- Use serialized array as a meta
Option 1 seem more "legal", but option 2 would be easier to implement and maintain(?).
Would performance be considerably better with option 1?
EDIT: This widget table will be accessed only through widget_id and used to render html. Changes are possible, but they shouldn't happen that often.