This is a good example on how to add custom fields to an article. I didn't found anything for that, but only this.
It work very good, but I didn't see the SQL structure, so i was forced to do some reverse engineering to create the tables, after that they worked :)