I mean what type of database should I use when using Summernote (if what you said is true that Summernote stores images as database instead of file). Should it be varchar (how big) or text?
You would have to experiment to find out the largest size your images might be (having been converted to Base64), then decide on the most appropriate column type. There are lots of places to find this information, eg this discussion.