Create a field programatically with let me to introduce two values
Download the examples module and look through the Field Example module.

It contains extensive code examples that show you in detail how to create a custom field, widget and formatter.