Your question is too vague to give a meaningful answer. What has your research found so far, and what have you tried to do so far?, what version of Moodle are you using, what is your background. There is a significant amount of document for Moodle programmers. If you give more information we may be able to help.
General developer forum
Adding a new field in table of moodle 2.4 database
This discussion has been locked so you can no longer reply to it.