I'm trying to think about how to structure my database schema in order to store merge fields but running into issues pertaining to different types of values (e.g., unsigned int, string, date) depending on the field name. This is what I have so far:
Customer
----------
PK - id
First Name - String
Last Name - String
Email - String
MergeField
--------------
PK - id
Name - String
CustomerMergeField
-------------------
PK - id,
Customer.ID - id,
MergeField.ID - id
Value - String, unsigned int, date
So for instance there is customer (1, bobby, fischer, bobbyfischer@gmail.com) and these two merge fields (1, birthday) and (2, school)
So in the CustomerMergeField table might have [1, 1, 12-15-2012], [1, 2, 'Columbia'],
I'm wondering how can I better structure this to handle the difference in values types i.e. unsigned int, string, date, etc that can be associated with a mergefield so that it is more uniform